hotspot/src/share/vm/jvmci/jvmciCompiler.cpp
changeset 38666 5ff19807abd5
parent 38218 f5ba1dea04eb
child 38674 eacc567feae8
--- a/hotspot/src/share/vm/jvmci/jvmciCompiler.cpp	Tue May 10 23:08:42 2016 +0000
+++ b/hotspot/src/share/vm/jvmci/jvmciCompiler.cpp	Tue May 10 11:48:06 2016 +0200
@@ -189,6 +189,15 @@
   }
 }
 
+CompLevel JVMCIRuntime::adjust_comp_level(methodHandle method, bool is_osr, CompLevel level, JavaThread* thread) {
+  if (!thread->adjusting_comp_level()) {
+    thread->set_adjusting_comp_level(true);
+    level = adjust_comp_level_inner(method, is_osr, level, thread);
+    thread->set_adjusting_comp_level(false);
+  }
+  return level;
+}
+
 /**
  * Aborts the VM due to an unexpected exception.
  */