diff --git a/src/hotspot/share/opto/chaitin.cpp b/src/hotspot/share/opto/chaitin.cpp index f882a90951437..fc12d4db903fb 100644 --- a/src/hotspot/share/opto/chaitin.cpp +++ b/src/hotspot/share/opto/chaitin.cpp @@ -368,8 +368,8 @@ void PhaseChaitin::Register_Allocate() { _matcher._allocation_started = true; // Explicitly use right constructor - ResourceArea split_arena(&CompilerThread::current()->_chaitin_memory1, mtCompiler); // Arena for Split local resources - ResourceArea live_arena(&CompilerThread::current()->_chaitin_memory2, mtCompiler); // Arena for liveness & IFG info + ResourceArea split_arena(/*&CompilerThread::current()->_chaitin_memory1,*/ mtCompiler); // Arena for Split local resources + ResourceArea live_arena(/*&CompilerThread::current()->_chaitin_memory2,*/ mtCompiler); // Arena for liveness & IFG info ResourceMark rm(&live_arena); // Need live-ness for the IFG; need the IFG for coalescing. If the diff --git a/src/hotspot/share/opto/compile.cpp b/src/hotspot/share/opto/compile.cpp index 7508e92c71700..0d8b5b54517e9 100644 --- a/src/hotspot/share/opto/compile.cpp +++ b/src/hotspot/share/opto/compile.cpp @@ -631,7 +631,7 @@ Compile::Compile( ciEnv* ci_env, ciMethod* target, int osr_bci, _has_method_handle_invokes(false), _clinit_barrier_on_entry(false), _stress_seed(0), - _comp_arena(mtCompiler, &CompilerThread::current()->_compiler_memory), + _comp_arena(mtCompiler/*, &CompilerThread::current()->_compiler_memory*/), _barrier_set_state(BarrierSet::barrier_set()->barrier_set_c2()->create_barrier_state(comp_arena())), _env(ci_env), _directive(directive), @@ -649,8 +649,8 @@ Compile::Compile( ciEnv* ci_env, ciMethod* target, int osr_bci, NOT_PRODUCT(_igv_printer(nullptr) COMMA) _unique(0), _dead_node_count(0), - _node_arena_one(mtCompiler, &CompilerThread::current()->_narena_mem_one, Arena::Tag::tag_node), - _node_arena_two(mtCompiler, &CompilerThread::current()->_narena_mem_two, Arena::Tag::tag_node), + _node_arena_one(mtCompiler/*, &CompilerThread::current()->_narena_mem_one*/, Arena::Tag::tag_node), + _node_arena_two(mtCompiler/*, &CompilerThread::current()->_narena_mem_two*/, Arena::Tag::tag_node), _node_arena(&_node_arena_one), _mach_constant_base_node(nullptr), _Compile_types(mtCompiler), @@ -919,7 +919,7 @@ Compile::Compile( ciEnv* ci_env, _has_method_handle_invokes(false), _clinit_barrier_on_entry(false), _stress_seed(0), - _comp_arena(mtCompiler, &CompilerThread::current()->_compiler_memory), + _comp_arena(mtCompiler/*, &CompilerThread::current()->_compiler_memory*/), _barrier_set_state(BarrierSet::barrier_set()->barrier_set_c2()->create_barrier_state(comp_arena())), _env(ci_env), _directive(directive), @@ -930,8 +930,8 @@ Compile::Compile( ciEnv* ci_env, _unique(0), _dead_node_count(0), _dead_node_list(comp_arena()), - _node_arena_one(mtCompiler, &CompilerThread::current()->_narena_mem_one), - _node_arena_two(mtCompiler, &CompilerThread::current()->_narena_mem_two), + _node_arena_one(mtCompiler/*, &CompilerThread::current()->_narena_mem_one*/), + _node_arena_two(mtCompiler/*, &CompilerThread::current()->_narena_mem_two*/), _node_arena(&_node_arena_one), _mach_constant_base_node(nullptr), _Compile_types(mtCompiler), diff --git a/src/hotspot/share/opto/gcm.cpp b/src/hotspot/share/opto/gcm.cpp index 7571a2f0cf795..399be1b738266 100644 --- a/src/hotspot/share/opto/gcm.cpp +++ b/src/hotspot/share/opto/gcm.cpp @@ -1564,7 +1564,7 @@ void PhaseCFG::global_code_motion() { // Enabling the scheduler for register pressure plus finding blocks of size to schedule for it // is key to enabling this feature. PhaseChaitin regalloc(C->unique(), *this, _matcher, true); - ResourceArea live_arena(&CompilerThread::current()->_cfg_memory, mtCompiler); // Arena for liveness + ResourceArea live_arena(/*&CompilerThread::current()->_cfg_memory,*/ mtCompiler); // Arena for liveness ResourceMark rm_live(&live_arena); PhaseLive live(*this, regalloc._lrg_map.names(), &live_arena, true); PhaseIFG ifg(&live_arena); diff --git a/src/hotspot/share/opto/matcher.cpp b/src/hotspot/share/opto/matcher.cpp index 9c8ce717905b4..da4bf2ae89951 100644 --- a/src/hotspot/share/opto/matcher.cpp +++ b/src/hotspot/share/opto/matcher.cpp @@ -61,7 +61,7 @@ const uint Matcher::_end_rematerialize = _END_REMATERIALIZE; //---------------------------Matcher------------------------------------------- Matcher::Matcher() : PhaseTransform( Phase::Ins_Select ), - _states_arena(Chunk::medium_size, &CompilerThread::current()->_matcher_memory, mtCompiler), + _states_arena(Chunk::medium_size, /*&CompilerThread::current()->_matcher_memory,*/ mtCompiler), _new_nodes(C->comp_arena()), _visited(&_states_arena), _shared(&_states_arena), diff --git a/src/hotspot/share/opto/phaseX.cpp b/src/hotspot/share/opto/phaseX.cpp index 632a0ca96b485..2630b6bfc317c 100644 --- a/src/hotspot/share/opto/phaseX.cpp +++ b/src/hotspot/share/opto/phaseX.cpp @@ -1793,7 +1793,7 @@ void PhaseCCP::analyze() { // CCP worklist is placed on a local arena, so that we can allow ResourceMarks on "Compile::current()->resource_arena()". // We also do not want to put the worklist on "Compile::current()->comp_arena()", as that one only gets de-allocated after // Compile is over. The local arena gets de-allocated at the end of its scope. - ResourceArea local_arena(&CompilerThread::current()->_phaseccp_memory, mtCompiler); + ResourceArea local_arena(/*&CompilerThread::current()->_phaseccp_memory,*/ mtCompiler); Unique_Node_List worklist(&local_arena); DEBUG_ONLY(Unique_Node_List worklist_verify(&local_arena);)