Skip to content

Commit 5491436

Browse files
committed
8328085: C2: Use after free in PhaseChaitin::Register_Allocate()
Backport-of: a21862ab00317842da006eae453865badd4dc30f
1 parent 59f98c1 commit 5491436

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/hotspot/share/opto/postaloc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ bool PhaseChaitin::eliminate_copy_of_constant(Node* val, Node* n,
403403
// as they get encountered with the merge node and keep adding these defs to the merge inputs.
404404
void PhaseChaitin::merge_multidefs() {
405405
Compile::TracePhase tp("mergeMultidefs", &timers[_t_mergeMultidefs]);
406-
ResourceMark rm;
407406
// Keep track of the defs seen in registers and collect their uses in the block.
408407
RegToDefUseMap reg2defuse(_max_reg, _max_reg, RegDefUse());
409408
for (uint i = 0; i < _cfg.number_of_blocks(); i++) {

0 commit comments

Comments
 (0)