# HG changeset patch # User Christos Kotselidis # Date 1384029211 -3600 # Node ID ad2434911b69b16a77ddfd6a27f727cb20e09764 # Parent b699233403adce0316aeac32322bfd0452e795fb Disable Boxing substitutions when hprof is enabled diff -r b699233403ad -r ad2434911b69 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReplacementsImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReplacementsImpl.java Sat Nov 09 21:32:51 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotReplacementsImpl.java Sat Nov 09 21:33:31 2013 +0100 @@ -47,7 +47,11 @@ @Override protected ResolvedJavaMethod registerMethodSubstitution(Member originalMethod, Method substituteMethod) { - if (substituteMethod.getDeclaringClass() == IntegerSubstitutions.class || substituteMethod.getDeclaringClass() == LongSubstitutions.class) { + if (substituteMethod.getDeclaringClass().getDeclaringClass() == BoxingSubstitutions.class) { + if (config.useHeapProfiler) { + return null; + } + } else if (substituteMethod.getDeclaringClass() == IntegerSubstitutions.class || substituteMethod.getDeclaringClass() == LongSubstitutions.class) { if (substituteMethod.getName().equals("bitCount")) { if (!config.usePopCountInstruction) { return null;