diff src/share/vm/graal/graalVMExits.cpp @ 2901:d577d07cedec

Added time measurement for phases.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 08 Jun 2011 17:01:16 +0200
parents 75a99b4f1c98
children c3faf3b842bb
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMExits.cpp	Wed Jun 08 14:50:55 2011 +0200
+++ b/src/share/vm/graal/graalVMExits.cpp	Wed Jun 08 17:01:16 2011 +0200
@@ -110,6 +110,17 @@
   check_pending_exception("Error while calling compileMethod");
 }
 
+void VMExits::shutdownCompiler() {
+  assert(!name.is_null(), "just checking");
+  JavaThread* THREAD = JavaThread::current();
+  JavaValue result(T_VOID);
+  JavaCallArguments args;
+  args.push_oop(instance());
+  JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::shutdownCompiler_name(), vmSymbols::void_method_signature(), &args, THREAD);
+  check_pending_exception("Error while calling shutdownCompiler");
+}
+
+
 oop VMExits::createRiMethodResolved(jlong vmId, Handle name, TRAPS) {
   assert(!name.is_null(), "just checking");
   JavaValue result(T_OBJECT);