From 5a1b78f3f092b7088ab6bb2e467b38f27e4544cf Mon Sep 17 00:00:00 2001 From: wuyafang Date: Mon, 16 Jun 2025 15:38:09 +0800 Subject: [PATCH] set JProfilecache feature experimental --- openjdk-1.8.0.spec | 7 +- set-JProfilecache-feature-experimental.patch | 71 ++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 set-JProfilecache-feature-experimental.patch diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec index ad0972d..4422b51 100644 --- a/openjdk-1.8.0.spec +++ b/openjdk-1.8.0.spec @@ -953,7 +953,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r Name: java-%{javaver}-%{origin} Version: %{javaver}.%{updatever}.%{buildver} -Release: 2 +Release: 3 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -1371,6 +1371,7 @@ Patch458: 8352716-tz-Update-Timezone-Data-to-2025b.patch #452 Patch459: heapdump-bug-fix.patch +Patch460: set-JProfilecache-feature-experimental.patch ############################################# # @@ -2050,6 +2051,7 @@ pushd %{top_level_dir_name} %patch457 -p1 %patch458 -p1 %patch459 -p1 +%patch460 -p1 %endif %ifarch loongarch64 @@ -2717,6 +2719,9 @@ cjc.mainProgram(args) -- the returns from copy_jdk_configs.lua should not affect %endif %changelog +* Mon Jun 16 2025 huangjie -1:1.8.0.452.b09-3 +- add set-JProfilecache-feature-experimental.patch + * Sat May 17 2025 Benshuai5D -1:1.8.0.452.b09-2 - add heapdump-bug-fix.patch diff --git a/set-JProfilecache-feature-experimental.patch b/set-JProfilecache-feature-experimental.patch new file mode 100644 index 0000000..cc328e8 --- /dev/null +++ b/set-JProfilecache-feature-experimental.patch @@ -0,0 +1,71 @@ +From e5dca33c4c7d793ea114d8c15d9b5f18ff90055c Mon Sep 17 00:00:00 2001 +Date: Mon, 16 Jun 2025 14:39:55 +0800 +Subject: [PATCH] set JProfilecache feature experimental + +--- + hotspot/src/share/vm/runtime/globals.hpp | 24 ++++++++++++------------ + 1 file changed, 12 insertions(+), 12 deletions(-) + +diff --git a/hotspot/src/share/vm/runtime/globals.hpp b/hotspot/src/share/vm/runtime/globals.hpp +index 77af67ad3..69aadbf37 100644 +--- a/hotspot/src/share/vm/runtime/globals.hpp ++++ b/hotspot/src/share/vm/runtime/globals.hpp +@@ -4200,32 +4200,32 @@ class CommandLineFlags { + diagnostic(bool, PrintAsyncGCLog, false, \ + "Print some information of Async GC Log") \ + \ +- lp64_product(bool, JProfilingCacheRecording, false, \ ++ experimental(bool, JProfilingCacheRecording, false, \ + "Collect profiling information for JProfilingCache") \ + \ +- lp64_product(bool, JProfilingCacheCompileAdvance, false, \ ++ experimental(bool, JProfilingCacheCompileAdvance, false, \ + "Enable JProfilingCacheCompileAdvance from a log file") \ + \ +- lp64_product(ccstr, ProfilingCacheLogLevel, "info", \ ++ experimental(ccstr, ProfilingCacheLogLevel, "info", \ + "Log level for JProfilingCache") \ + \ +- lp64_product(ccstr, ProfilingCacheFile, NULL, \ ++ experimental(ccstr, ProfilingCacheFile, NULL, \ + "Log file name for JProfilingCache") \ + \ +- lp64_product(uintx, JProfilingCacheRecordTime, 0, \ ++ experimental(uintx, JProfilingCacheRecordTime, 0, \ + "Sleep time (in seconds) before flushing profling " \ + "information to log file ") \ + \ +- lp64_product(uintx, CompilationProfileCacheAppID, 0, \ ++ experimental(uintx, CompilationProfileCacheAppID, 0, \ + "Application ID written in log file for verification ") \ + \ +- lp64_product(ccstr, CompilationProfileCacheExclude, NULL, \ ++ experimental(ccstr, CompilationProfileCacheExclude, NULL, \ + "JProfilingCacheCompileAdvance excluding list ") \ + \ +- lp64_product(bool, CompilationProfileCacheExplicitDeopt, false, \ ++ experimental(bool, CompilationProfileCacheExplicitDeopt, false, \ + "Deoptimize JProfileCache methods by explicit api") \ + \ +- lp64_product(uintx, JProfilingCacheDeoptTime, 1200, \ ++ experimental(uintx, JProfilingCacheDeoptTime, 1200, \ + "Sleep time (in seconds) before deoptimizing methods " \ + "compiled by JProfileCache ") \ + \ +@@ -4239,10 +4239,10 @@ class CommandLineFlags { + diagnostic(bool, CompilationProfileCacheResolveClassEagerly, true, \ + "resolve class from constant pool eagerly") \ + \ +- lp64_product(bool, DeoptimizeBeforeProfileCache, false, \ +- "Deoptimize recorded methods before JProfileCache compilation") \ ++ experimental(bool, DeoptimizeBeforeProfileCache, false, \ ++ "Deoptimize recorded methods before JProfileCache compilation") \ + \ +- lp64_product(intx, CompilationProfileCacheRecordMinLevel, 3, \ ++ experimental(intx, CompilationProfileCacheRecordMinLevel, 3, \ + "Minimal compilation level recorded in JProfileCache recording phase") \ + /* + * Macros for factoring of globals +-- +2.49.0 + -- Gitee