diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotMethodResolvedImpl.java @ 5176:af59b4dfc9e4

compilation queue changes: * new CiCompilationStatistics * added new HotSpot compilation policy (-XX:CompilationPolicyChoice=4) * compile queue prioritizing (-G:+PriorityCompileQueue) * low-priority compilation threads (-G:+SlowCompileThreads) * dynamic compilation thread priority adjustment (-G:+DynamicCompilePriority)
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 29 Mar 2012 18:43:30 +0200
parents c7d57d0d668a
children cce31bc56c00
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotMethodResolvedImpl.java	Thu Mar 29 13:23:34 2012 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotMethodResolvedImpl.java	Thu Mar 29 18:43:30 2012 +0200
@@ -31,6 +31,7 @@
 import com.oracle.max.cri.ri.*;
 import com.oracle.max.criutils.*;
 import com.oracle.graal.compiler.*;
+import com.oracle.graal.hotspot.*;
 import com.oracle.graal.java.bytecode.*;
 
 /**
@@ -59,6 +60,8 @@
     private boolean canBeInlined;
     private int compilationComplexity;
 
+    private CompilationTask currentTask;
+
     private HotSpotMethodResolvedImpl() {
         super(null);
         throw new IllegalStateException("this constructor is never actually called, because the objects are allocated from within the VM");
@@ -362,4 +365,14 @@
     public int vtableEntryOffset() {
         return compiler.getVMEntries().RiMethod_vtableEntryOffset(this);
     }
+
+    @Override
+    public void setCurrentTask(CompilationTask task) {
+        currentTask = task;
+    }
+
+    @Override
+    public CompilationTask currentTask() {
+        return currentTask;
+    }
 }