Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
18225:40074f6ac788 | 18226:6eda3b299460 |
---|---|
388 | 388 |
389 return new MonitorValue(owner_value, lock_data_loc, eliminated); | 389 return new MonitorValue(owner_value, lock_data_loc, eliminated); |
390 } | 390 } |
391 | 391 |
392 void CodeInstaller::initialize_assumptions(oop compiled_code) { | 392 void CodeInstaller::initialize_assumptions(oop compiled_code) { |
393 JavaThread* thread = JavaThread::current(); | |
394 CompilerThread* compilerThread = thread->is_Compiler_thread() ? thread->as_CompilerThread() : NULL; | |
393 _oop_recorder = new OopRecorder(&_arena, true); | 395 _oop_recorder = new OopRecorder(&_arena, true); |
394 _dependencies = new Dependencies(&_arena, _oop_recorder); | 396 _dependencies = new Dependencies(&_arena, _oop_recorder, compilerThread != NULL ? compilerThread->log() : NULL); |
395 Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); | 397 Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); |
396 if (!assumptions_handle.is_null()) { | 398 if (!assumptions_handle.is_null()) { |
397 objArrayHandle assumptions(Thread::current(), Assumptions::list(assumptions_handle())); | 399 objArrayHandle assumptions(Thread::current(), Assumptions::list(assumptions_handle())); |
398 int length = assumptions->length(); | 400 int length = assumptions->length(); |
399 for (int i = 0; i < length; ++i) { | 401 for (int i = 0; i < length; ++i) { |