Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 17377:44b83285b645
Deduplicate constant oops during code installation
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 08 Oct 2014 11:50:00 -0700 |
parents | 508e88b5f1d3 |
children | 9a804ec7f707 |
comparison
equal
deleted
inserted
replaced
17376:9928ad27a80e | 17377:44b83285b645 |
---|---|
368 | 368 |
369 return new MonitorValue(owner_value, lock_data_loc, eliminated); | 369 return new MonitorValue(owner_value, lock_data_loc, eliminated); |
370 } | 370 } |
371 | 371 |
372 void CodeInstaller::initialize_assumptions(oop compiled_code) { | 372 void CodeInstaller::initialize_assumptions(oop compiled_code) { |
373 _oop_recorder = new OopRecorder(&_arena); | 373 _oop_recorder = new OopRecorder(&_arena, true); |
374 _dependencies = new Dependencies(&_arena, _oop_recorder); | 374 _dependencies = new Dependencies(&_arena, _oop_recorder); |
375 Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); | 375 Handle assumptions_handle = CompilationResult::assumptions(HotSpotCompiledCode::comp(compiled_code)); |
376 if (!assumptions_handle.is_null()) { | 376 if (!assumptions_handle.is_null()) { |
377 objArrayHandle assumptions(Thread::current(), (objArrayOop)Assumptions::list(assumptions_handle())); | 377 objArrayHandle assumptions(Thread::current(), (objArrayOop)Assumptions::list(assumptions_handle())); |
378 int length = assumptions->length(); | 378 int length = assumptions->length(); |