Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalCodeInstaller.cpp @ 18226:6eda3b299460
Record compilation dependencies with +LogCompilation
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Fri, 31 Oct 2014 12:20:56 -0700 |
parents | ff1f1481b367 |
children | e04712c8928a |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Fri Oct 31 11:25:32 2014 -0700 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Fri Oct 31 12:20:56 2014 -0700 @@ -390,8 +390,10 @@ } void CodeInstaller::initialize_assumptions(oop compiled_code) { + JavaThread* thread = JavaThread::current(); + CompilerThread* compilerThread = thread->is_Compiler_thread() ? thread->as_CompilerThread() : NULL; _oop_recorder = new OopRecorder(&_arena, true); - _dependencies = new Dependencies(&_arena, _oop_recorder); + _dependencies = new Dependencies(&_arena, _oop_recorder, compilerThread != NULL ? compilerThread->log() : NULL); Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); if (!assumptions_handle.is_null()) { objArrayHandle assumptions(Thread::current(), Assumptions::list(assumptions_handle()));