Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 19321:98592ae4b1fa
only record method dependencies if JVMTI hotswapping or breakpointing is enabled
don't verify dependencies if the SystemDictionary was not updated during compilation
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 Feb 2015 16:54:12 +0100 |
parents | c307546c7b0a |
children | 18be6264186f |
comparison
equal
deleted
inserted
replaced
19320:49605c649beb | 19321:98592ae4b1fa |
---|---|
103 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); | 103 tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled); |
104 } | 104 } |
105 _bootstrapping = false; | 105 _bootstrapping = false; |
106 } | 106 } |
107 | 107 |
108 void GraalCompiler::compile_method(methodHandle method, int entry_bci, CompileTask* task) { | 108 void GraalCompiler::compile_method(methodHandle method, int entry_bci, GraalEnv* env) { |
109 GRAAL_EXCEPTION_CONTEXT | 109 GRAAL_EXCEPTION_CONTEXT |
110 | 110 |
111 bool is_osr = entry_bci != InvocationEntryBci; | 111 bool is_osr = entry_bci != InvocationEntryBci; |
112 if (_bootstrapping && is_osr) { | 112 if (_bootstrapping && is_osr) { |
113 // no OSR compilations during bootstrap - the compiler is just too slow at this point, | 113 // no OSR compilations during bootstrap - the compiler is just too slow at this point, |
120 ResourceMark rm; | 120 ResourceMark rm; |
121 JavaValue result(T_VOID); | 121 JavaValue result(T_VOID); |
122 JavaCallArguments args; | 122 JavaCallArguments args; |
123 args.push_long((jlong) (address) method()); | 123 args.push_long((jlong) (address) method()); |
124 args.push_int(entry_bci); | 124 args.push_int(entry_bci); |
125 args.push_long((jlong) (address) task); | 125 args.push_long((jlong) (address) env); |
126 args.push_int(task->compile_id()); | 126 args.push_int(env->task()->compile_id()); |
127 JavaCalls::call_static(&result, SystemDictionary::CompilationTask_klass(), vmSymbols::compileMetaspaceMethod_name(), vmSymbols::compileMetaspaceMethod_signature(), &args, CHECK_ABORT); | 127 JavaCalls::call_static(&result, SystemDictionary::CompilationTask_klass(), vmSymbols::compileMetaspaceMethod_name(), vmSymbols::compileMetaspaceMethod_signature(), &args, CHECK_ABORT); |
128 | 128 |
129 _methodsCompiled++; | 129 _methodsCompiled++; |
130 } | 130 } |
131 | 131 |