@@ -1242,8 +1242,7 @@ void PhaseMacroExpand::expand_allocate_common(
1242
1242
initial_slow_test = BoolNode::make_predicate (initial_slow_test, &_igvn);
1243
1243
}
1244
1244
1245
- if (C->env ()->dtrace_alloc_probes () ||
1246
- (!UseTLAB && !Universe::heap ()->supports_inline_contig_alloc ())) {
1245
+ if (!UseTLAB && !Universe::heap ()->supports_inline_contig_alloc ()) {
1247
1246
// Force slow-path allocation
1248
1247
expand_fast_path = false ;
1249
1248
initial_slow_test = NULL ;
@@ -1631,7 +1630,7 @@ void PhaseMacroExpand::expand_initialize_membar(AllocateNode* alloc, InitializeN
1631
1630
1632
1631
void PhaseMacroExpand::expand_dtrace_alloc_probe (AllocateNode* alloc, Node* oop,
1633
1632
Node*& ctrl, Node*& rawmem) {
1634
- if (C->env ()->dtrace_extended_probes ()) {
1633
+ if (C->env ()->dtrace_alloc_probes ()) {
1635
1634
// Slow-path call
1636
1635
int size = TypeFunc::Parms + 2 ;
1637
1636
CallLeafNode *call = new CallLeafNode (OptoRuntime::dtrace_object_alloc_Type (),
@@ -1648,7 +1647,7 @@ void PhaseMacroExpand::expand_dtrace_alloc_probe(AllocateNode* alloc, Node* oop,
1648
1647
call->init_req (TypeFunc::Parms + 1 , oop);
1649
1648
call->init_req (TypeFunc::Control, ctrl);
1650
1649
call->init_req (TypeFunc::I_O , top ()); // does no i/o
1651
- call->init_req (TypeFunc::Memory , ctrl );
1650
+ call->init_req (TypeFunc::Memory , rawmem );
1652
1651
call->init_req (TypeFunc::ReturnAdr, alloc->in (TypeFunc::ReturnAdr));
1653
1652
call->init_req (TypeFunc::FramePtr, alloc->in (TypeFunc::FramePtr));
1654
1653
transform_later (call);
0 commit comments