changeset 14102:43a80ad2730a

rename BeginEnqueue to Enqueueing
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 06 Mar 2014 18:41:48 -0800
parents 2ec05c3f773b
children 9d8aaa3200a3
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java	Thu Mar 06 18:41:42 2014 -0800
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java	Thu Mar 06 18:41:48 2014 -0800
@@ -73,8 +73,8 @@
         return withinEnqueue == null || withinEnqueue.get();
     }
 
-    public static class BeginEnqueue implements Closeable {
-        public BeginEnqueue() {
+    public static class Enqueueing implements Closeable {
+        public Enqueueing() {
             assert !withinEnqueue.get();
             withinEnqueue.set(Boolean.TRUE);
         }
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Thu Mar 06 18:41:42 2014 -0800
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Thu Mar 06 18:41:48 2014 -0800
@@ -39,6 +39,7 @@
 import com.oracle.graal.debug.internal.*;
 import com.oracle.graal.graph.*;
 import com.oracle.graal.hotspot.*;
+import com.oracle.graal.hotspot.CompilationTask.Enqueueing;
 import com.oracle.graal.hotspot.CompileTheWorld.Config;
 import com.oracle.graal.hotspot.debug.*;
 import com.oracle.graal.hotspot.meta.*;
@@ -98,14 +99,14 @@
         }
 
         public long getCompletedTaskCount() {
-            try (CompilationTask.BeginEnqueue beginEnqueue = new CompilationTask.BeginEnqueue()) {
+            try (Enqueueing enqueueing = new Enqueueing()) {
                 // Don't allow new enqueues while reading the state of queue.
                 return executor.getCompletedTaskCount();
             }
         }
 
         public long getTaskCount() {
-            try (CompilationTask.BeginEnqueue beginEnqueue = new CompilationTask.BeginEnqueue()) {
+            try (Enqueueing enqueueing = new Enqueueing()) {
                 // Don't allow new enqueues while reading the state of queue.
                 return executor.getTaskCount();
             }
@@ -355,7 +356,7 @@
     }
 
     public void shutdownCompiler() throws Exception {
-        try (CompilationTask.BeginEnqueue beginEnqueue = new CompilationTask.BeginEnqueue()) {
+        try (Enqueueing enqueueing = new Enqueueing()) {
             // We have to use a privileged action here because shutting down the compiler might be
             // called from user code which very likely contains unprivileged frames.
             AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@@ -575,7 +576,7 @@
 
         // Don't allow blocking compiles from CompilerThreads
         boolean block = blocking && !(Thread.currentThread() instanceof CompilerThread);
-        try (CompilationTask.BeginEnqueue beginEnqueue = new CompilationTask.BeginEnqueue()) {
+        try (Enqueueing enqueueing = new Enqueueing()) {
             if (method.tryToQueueForCompilation()) {
                 assert method.isQueuedForCompilation();