Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java @ 6367:cc402f4396f4
deleted caching of initial mark word in HotSpotResolvedJavaType. This value is modified by the biased locking mechanism and so it not constant for a Klass
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Sep 2012 23:50:37 +0200 |
parents | f0f2013be1c9 |
children | 1d7c73b5d787 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java Wed Sep 12 23:37:39 2012 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java Wed Sep 12 23:50:37 2012 +0200 @@ -55,11 +55,6 @@ private boolean isInitialized; private ResolvedJavaType arrayOfType; - /** - * Initial value for the mark word in a new object of this type. - */ - private long initialMarkWord; - private HotSpotResolvedJavaType() { throw new GraalInternalError(HotSpotResolvedJavaType.class + " should only be created from C++ code"); } @@ -294,6 +289,6 @@ } public long initialMarkWord() { - return initialMarkWord; + return HotSpotGraalRuntime.getInstance().getCompilerToVM().JavaType_initialMarkWord(this); } }