Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 19251:063e8873bd14
changed type of assumptions field in CompilationResult from Assumptions to Assumption[]
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 11 Feb 2015 11:38:22 +0100 |
parents | 3fc907b46313 |
children | a0a760b0fb5f |
comparison
equal
deleted
inserted
replaced
19250:8ab925a6f724 | 19251:063e8873bd14 |
---|---|
387 void CodeInstaller::initialize_assumptions(oop compiled_code) { | 387 void CodeInstaller::initialize_assumptions(oop compiled_code) { |
388 JavaThread* thread = JavaThread::current(); | 388 JavaThread* thread = JavaThread::current(); |
389 CompilerThread* compilerThread = thread->is_Compiler_thread() ? thread->as_CompilerThread() : NULL; | 389 CompilerThread* compilerThread = thread->is_Compiler_thread() ? thread->as_CompilerThread() : NULL; |
390 _oop_recorder = new OopRecorder(&_arena, true); | 390 _oop_recorder = new OopRecorder(&_arena, true); |
391 _dependencies = new Dependencies(&_arena, _oop_recorder, compilerThread != NULL ? compilerThread->log() : NULL); | 391 _dependencies = new Dependencies(&_arena, _oop_recorder, compilerThread != NULL ? compilerThread->log() : NULL); |
392 Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); | 392 objArrayHandle assumptions = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); |
393 if (!assumptions_handle.is_null()) { | 393 if (!assumptions.is_null()) { |
394 objArrayHandle assumptions(Thread::current(), Assumptions::list(assumptions_handle())); | |
395 int length = assumptions->length(); | 394 int length = assumptions->length(); |
396 for (int i = 0; i < length; ++i) { | 395 for (int i = 0; i < length; ++i) { |
397 Handle assumption = assumptions->obj_at(i); | 396 Handle assumption = assumptions->obj_at(i); |
398 if (!assumption.is_null()) { | 397 if (!assumption.is_null()) { |
399 if (assumption->klass() == Assumptions_MethodContents::klass()) { | 398 if (assumption->klass() == Assumptions_MethodContents::klass()) { |