src/hotspot/share/opto/bytecodeInfo.cpp
changeset 47551 4d034d861e13
parent 47216 71c04702a3d5
child 48002 0c88cd009b5f
--- a/src/hotspot/share/opto/bytecodeInfo.cpp	Thu Sep 28 01:01:42 2017 +0000
+++ b/src/hotspot/share/opto/bytecodeInfo.cpp	Thu Sep 28 11:02:55 2017 +0200
@@ -644,7 +644,8 @@
       C->log()->elem("inline_level_discount caller='%d' callee='%d'", id1, id2);
     }
   }
-  InlineTree* ilt = new InlineTree(C, this, callee_method, caller_jvms, caller_bci, recur_frequency, _max_inline_level + max_inline_level_adjust);
+  // Allocate in the comp_arena to make sure the InlineTree is live when dumping a replay compilation file
+  InlineTree* ilt = new (C->comp_arena()) InlineTree(C, this, callee_method, caller_jvms, caller_bci, recur_frequency, _max_inline_level + max_inline_level_adjust);
   _subtrees.append(ilt);
 
   NOT_PRODUCT( _count_inlines += 1; )