Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.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 | d577d07cedec |
children | 8b0236cbed14 |
comparison
equal
deleted
inserted
replaced
2924:9d4e5b492521 | 2925:b78b4ae0757c |
---|---|
27 #include "classfile/javaClasses.hpp" | 27 #include "classfile/javaClasses.hpp" |
28 #include "classfile/systemDictionary.hpp" | 28 #include "classfile/systemDictionary.hpp" |
29 #include "classfile/vmSymbols.hpp" | 29 #include "classfile/vmSymbols.hpp" |
30 #include "code/scopeDesc.hpp" | 30 #include "code/scopeDesc.hpp" |
31 #include "compiler/compileBroker.hpp" | 31 #include "compiler/compileBroker.hpp" |
32 #include "graal/graalCompiler.hpp" | |
33 #include "interpreter/interpreter.hpp" | 32 #include "interpreter/interpreter.hpp" |
34 #include "interpreter/linkResolver.hpp" | 33 #include "interpreter/linkResolver.hpp" |
35 #include "jvmtifiles/jvmtiEnv.hpp" | 34 #include "jvmtifiles/jvmtiEnv.hpp" |
36 #include "memory/oopFactory.hpp" | 35 #include "memory/oopFactory.hpp" |
37 #include "memory/universe.inline.hpp" | 36 #include "memory/universe.inline.hpp" |
3658 } else { | 3657 } else { |
3659 // run Java level shutdown hooks | 3658 // run Java level shutdown hooks |
3660 thread->invoke_shutdown_hooks(); | 3659 thread->invoke_shutdown_hooks(); |
3661 } | 3660 } |
3662 | 3661 |
3663 if (UseGraal) { | |
3664 GraalCompiler::instance()->exit(); | |
3665 } | |
3666 before_exit(thread); | 3662 before_exit(thread); |
3667 | 3663 |
3668 thread->exit(true); | 3664 thread->exit(true); |
3669 | 3665 |
3670 // Stop VM thread. | 3666 // Stop VM thread. |