Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/thread.cpp @ 16270:d56a09df1a1f
implemented eager checking of Graal options (GRAAL-807)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 27 Jun 2014 19:55:54 +0200 |
parents | e9998e2be7f5 |
children | ad431bf0de07 |
comparison
equal
deleted
inserted
replaced
16269:f5437f2db322 | 16270:d56a09df1a1f |
---|---|
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 #ifdef GRAAL | 32 #ifdef GRAAL |
33 #include "graal/graalCompiler.hpp" | 33 #include "graal/graalCompiler.hpp" |
34 #include "graal/graalRuntime.hpp" | |
34 #endif | 35 #endif |
35 #include "interpreter/interpreter.hpp" | 36 #include "interpreter/interpreter.hpp" |
36 #include "interpreter/linkResolver.hpp" | 37 #include "interpreter/linkResolver.hpp" |
37 #include "interpreter/oopMapCache.hpp" | 38 #include "interpreter/oopMapCache.hpp" |
38 #include "jvmtifiles/jvmtiEnv.hpp" | 39 #include "jvmtifiles/jvmtiEnv.hpp" |
3729 | 3730 |
3730 if (CleanChunkPoolAsync) { | 3731 if (CleanChunkPoolAsync) { |
3731 Chunk::start_chunk_pool_cleaner_task(); | 3732 Chunk::start_chunk_pool_cleaner_task(); |
3732 } | 3733 } |
3733 | 3734 |
3735 #ifdef GRAAL | |
3736 status = GraalRuntime::check_arguments(main_thread); | |
3737 if (status != JNI_OK) { | |
3738 *canTryAgain = false; // don't let caller call JNI_CreateJavaVM again | |
3739 return status; | |
3740 } | |
3741 #endif | |
3742 | |
3734 // initialize compiler(s) | 3743 // initialize compiler(s) |
3735 #if defined(COMPILER1) || defined(COMPILER2) || defined(SHARK) || defined(COMPILERGRAAL) | 3744 #if defined(COMPILER1) || defined(COMPILER2) || defined(SHARK) || defined(COMPILERGRAAL) |
3736 CompileBroker::compilation_init(); | 3745 CompileBroker::compilation_init(); |
3737 #endif | 3746 #endif |
3738 | 3747 |