Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk20u Public archive

Commit f703356

Browse files
committed
8303069: Memory leak in CompilerOracle::parse_from_line
Backport-of: 384a8b85a7266b920242ea73baf578577ca588ec
1 parent 2556e13 commit f703356

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
@@ -309,6 +309,8 @@ static void register_command(TypedMethodOptionMatcher* matcher,
309309

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

0 commit comments

Comments
 (0)