Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/java.cpp @ 2925:b78b4ae0757c
Also call Compiler shutdown hook in case of System.exit call. Draft VMExits.Sandbox class.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 09 Jun 2011 14:42:24 +0200 |
parents | 23ae54207126 |
children | 1e13559b112d |
line wrap: on
line diff
--- a/src/share/vm/runtime/java.cpp Thu Jun 09 14:02:28 2011 +0200 +++ b/src/share/vm/runtime/java.cpp Thu Jun 09 14:42:24 2011 +0200 @@ -30,6 +30,7 @@ #include "compiler/compileBroker.hpp" #include "compiler/compilerOracle.hpp" #include "interpreter/bytecodeHistogram.hpp" +#include "graal/graalCompiler.hpp" #include "memory/genCollectedHeap.hpp" #include "memory/oopFactory.hpp" #include "memory/universe.hpp" @@ -418,6 +419,10 @@ #define BEFORE_EXIT_DONE 2 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; + if (UseGraal) { + GraalCompiler::instance()->exit(); + } + // Note: don't use a Mutex to guard the entire before_exit(), as // JVMTI post_thread_end_event and post_vm_death_event will run native code. // A CAS or OSMutex would work just fine but then we need to manipulate