changeset 6323:f0f2013be1c9

Avoid executing code in the static constructor of HotSpotResolvedType.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 06 Sep 2012 19:19:55 +0200
parents 8c4b96100f6a
children 2529d4ebb5e2
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java	Thu Sep 06 18:21:18 2012 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedJavaType.java	Thu Sep 06 19:19:55 2012 +0200
@@ -285,10 +285,8 @@
         return klassOopCache;
     }
 
-    private static final int SECONDARY_SUPER_CACHE_OFFSET = HotSpotGraalRuntime.getInstance().getConfig().secondarySuperCacheOffset;
-
     public boolean isPrimaryType() {
-        return SECONDARY_SUPER_CACHE_OFFSET != superCheckOffset;
+        return HotSpotGraalRuntime.getInstance().getConfig().secondarySuperCacheOffset != superCheckOffset;
     }
 
     public int superCheckOffset() {