Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java @ 24106:1439a6614a10
8174957: [JVMCI] jaotc is broken in Xcomp mode
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 15 Feb 2017 15:36:48 +0100 |
parents | 37a27e859428 |
children | dfad13b97c0b |
comparison
equal
deleted
inserted
replaced
24105:1b7ea4ac489c | 24106:1439a6614a10 |
---|---|
74 if (call.target instanceof HotSpotForeignCallTarget) { | 74 if (call.target instanceof HotSpotForeignCallTarget) { |
75 long address = ((HotSpotForeignCallTarget) call.target).address; | 75 long address = ((HotSpotForeignCallTarget) call.target).address; |
76 HotSpotVMConfigStore store = runtime.getConfigStore(); | 76 HotSpotVMConfigStore store = runtime.getConfigStore(); |
77 for (Map.Entry<String, VMField> e : store.getFields().entrySet()) { | 77 for (Map.Entry<String, VMField> e : store.getFields().entrySet()) { |
78 VMField field = e.getValue(); | 78 VMField field = e.getValue(); |
79 if (field.isStatic() && field.value != null && field.value == address) { | 79 if (field.isStatic() && field.value != null && field.value instanceof Long && ((Long) field.value) == address) { |
80 return e.getValue() + ":0x" + Long.toHexString(address); | 80 return e.getValue() + ":0x" + Long.toHexString(address); |
81 } | 81 } |
82 } | 82 } |
83 } | 83 } |
84 return CodeCacheProvider.super.getTargetName(call); | 84 return CodeCacheProvider.super.getTargetName(call); |