Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 7014:b618f7c63d17
removed AddressMap utility
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 23 Nov 2012 09:02:12 +0100 |
parents | e9f69041ac38 |
children | 89df4e71940a c2a3b92c9e79 |
comparison
equal
deleted
inserted
replaced
7005:45029b3ac59f | 7014:b618f7c63d17 |
---|---|
526 long offset = HotSpotGraalRuntime.getInstance().getConfig().graalMirrorInClassOffset; | 526 long offset = HotSpotGraalRuntime.getInstance().getConfig().graalMirrorInClassOffset; |
527 if (!unsafe.compareAndSwapObject(javaMirror, offset, null, type)) { | 527 if (!unsafe.compareAndSwapObject(javaMirror, offset, null, type)) { |
528 // lost the race - return the existing value instead | 528 // lost the race - return the existing value instead |
529 type = (HotSpotResolvedJavaType) unsafe.getObject(javaMirror, offset); | 529 type = (HotSpotResolvedJavaType) unsafe.getObject(javaMirror, offset); |
530 } | 530 } |
531 AddressMap.log(metaspaceKlass, type.toJava().getName()); | |
532 return type; | 531 return type; |
533 } | 532 } |
534 | 533 |
535 @Override | 534 @Override |
536 public Constant createConstant(Kind kind, long value) { | 535 public Constant createConstant(Kind kind, long value) { |