# HG changeset patch # User Doug Simon # Date 1407764552 -7200 # Node ID b60c111b43f93f9b90e200dd299be301c66dcc50 # Parent 3507ad1b0c4425a6a36952bcfc434f3c09686bad made AllocSpy public diff -r 3507ad1b0c44 -r b60c111b43f9 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java Mon Aug 11 14:29:56 2014 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java Mon Aug 11 15:42:32 2014 +0200 @@ -51,7 +51,7 @@ * @see #BarSize * @see #NumberSize */ -final class AllocSpy implements AutoCloseable { +public final class AllocSpy implements AutoCloseable { static ThreadLocal current = new ThreadLocal<>(); @@ -70,6 +70,10 @@ } } + public static boolean isEnabled() { + return ENABLED; + } + static String prop(String sfx) { return AllocSpy.class.getSimpleName() + "." + sfx; }