25 lines
824 B
Diff
25 lines
824 B
Diff
Date: Sat, 27 May 2023 17:39:02 +0800
|
|
Subject: add
|
|
8303069-Memory-leak-in-CompilerOracle-parse_from_lin.patch
|
|
|
|
---
|
|
src/hotspot/share/compiler/compilerOracle.cpp | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/hotspot/share/compiler/compilerOracle.cpp b/src/hotspot/share/compiler/compilerOracle.cpp
|
|
index 69a327873..5149121c5 100644
|
|
--- a/src/hotspot/share/compiler/compilerOracle.cpp
|
|
+++ b/src/hotspot/share/compiler/compilerOracle.cpp
|
|
@@ -308,6 +308,8 @@ static void register_command(TypedMethodOptionMatcher* matcher,
|
|
|
|
if (option == CompileCommand::Blackhole && !UnlockExperimentalVMOptions) {
|
|
warning("Blackhole compile option is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions");
|
|
+ // Delete matcher as we don't keep it
|
|
+ delete matcher;
|
|
return;
|
|
}
|
|
|
|
--
|
|
2.22.0
|
|
|