Skip to content

Commit 1d7b9ad

Browse files
committedMay 4, 2023
8303069: Memory leak in CompilerOracle::parse_from_line
Backport-of: 384a8b85a7266b920242ea73baf578577ca588ec
1 parent 820030a commit 1d7b9ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/hotspot/share/compiler/compilerOracle.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ static void register_command(TypedMethodOptionMatcher* matcher,
308308

309309
if (option == CompileCommand::Blackhole && !UnlockExperimentalVMOptions) {
310310
warning("Blackhole compile option is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions");
311+
// Delete matcher as we don't keep it
312+
delete matcher;
311313
return;
312314
}
313315

0 commit comments

Comments
 (0)
Please sign in to comment.