Skip to content

Commit 19404e4

Browse files
author
duke
committedDec 3, 2021
Automatic merge of jdk:master into master
2 parents b226316 + f723779 commit 19404e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/hotspot/share/opto/macro.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,7 @@ void PhaseMacroExpand::expand_allocate_common(
12421242
initial_slow_test = BoolNode::make_predicate(initial_slow_test, &_igvn);
12431243
}
12441244

1245-
if (C->env()->dtrace_alloc_probes() ||
1246-
(!UseTLAB && !Universe::heap()->supports_inline_contig_alloc())) {
1245+
if (!UseTLAB && !Universe::heap()->supports_inline_contig_alloc()) {
12471246
// Force slow-path allocation
12481247
expand_fast_path = false;
12491248
initial_slow_test = NULL;
@@ -1631,7 +1630,7 @@ void PhaseMacroExpand::expand_initialize_membar(AllocateNode* alloc, InitializeN
16311630

16321631
void PhaseMacroExpand::expand_dtrace_alloc_probe(AllocateNode* alloc, Node* oop,
16331632
Node*& ctrl, Node*& rawmem) {
1634-
if (C->env()->dtrace_extended_probes()) {
1633+
if (C->env()->dtrace_alloc_probes()) {
16351634
// Slow-path call
16361635
int size = TypeFunc::Parms + 2;
16371636
CallLeafNode *call = new CallLeafNode(OptoRuntime::dtrace_object_alloc_Type(),
@@ -1648,7 +1647,7 @@ void PhaseMacroExpand::expand_dtrace_alloc_probe(AllocateNode* alloc, Node* oop,
16481647
call->init_req(TypeFunc::Parms + 1, oop);
16491648
call->init_req(TypeFunc::Control, ctrl);
16501649
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);
16521651
call->init_req(TypeFunc::ReturnAdr, alloc->in(TypeFunc::ReturnAdr));
16531652
call->init_req(TypeFunc::FramePtr, alloc->in(TypeFunc::FramePtr));
16541653
transform_later(call);

0 commit comments

Comments
 (0)
Please sign in to comment.