changeset 16771:b60c111b43f9

made AllocSpy public
author Doug Simon <doug.simon@oracle.com>
date Mon, 11 Aug 2014 15:42:32 +0200
parents 3507ad1b0c44
children 5992012d3bca
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/AllocSpy.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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<AllocSpy> current = new ThreadLocal<>();
 
@@ -70,6 +70,10 @@
         }
     }
 
+    public static boolean isEnabled() {
+        return ENABLED;
+    }
+
     static String prop(String sfx) {
         return AllocSpy.class.getSimpleName() + "." + sfx;
     }