diff --git a/fix_g1uncommit_ygc_expand_crash.patch b/fix_g1uncommit_ygc_expand_crash.patch new file mode 100755 index 0000000000000000000000000000000000000000..47b9a212f0b48b02e84a7763a028f8a863c86436 --- /dev/null +++ b/fix_g1uncommit_ygc_expand_crash.patch @@ -0,0 +1,15 @@ +diff --git a/hotspot/src/share/vm/gc_implementation/g1/heapRegionManager.cpp b/hotspot/src/share/vm/gc_implementation/g1/heapRegionManager.cpp +index 6ad85596..818f6681 100644 +--- a/hotspot/src/share/vm/gc_implementation/g1/heapRegionManager.cpp ++++ b/hotspot/src/share/vm/gc_implementation/g1/heapRegionManager.cpp +@@ -241,8 +241,8 @@ uint HeapRegionManager::expand_at(uint start, uint num_regions) { + uint HeapRegionManager::expand_on_preferred_node(uint preferred_index) { + uint expand_candidate = UINT_MAX; + for (uint i = 0; i < max_length(); i++) { +- if (is_available(i)) { +- // Already in use continue ++ if (!can_expand(i)) { ++ // Already in use or in uncommit list continue + continue; + } + // Always save the candidate so we can expand later on. diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec index a6b9a3bf49fa89c94216b33bef02efb1e7b3abd8..53e16ab330600616b296895e5a97d61552bbdc6a 100644 --- a/openjdk-1.8.0.spec +++ b/openjdk-1.8.0.spec @@ -916,7 +916,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r Name: java-%{javaver}-%{origin} Version: %{javaver}.%{updatever}.%{buildver} -Release: 1 +Release: 2 # 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 @@ -1102,6 +1102,7 @@ Patch202: Fix-RSACipher-memory-usage.patch # 8u302 Patch203: fix-lock-ordering-issue-when-calling-JVMTI-GetLoaded.patch Patch204: 8069191.patch +Patch205: fix_g1uncommit_ygc_expand_crash.patch ############################################# # @@ -1552,6 +1553,7 @@ pushd %{top_level_dir_name} %patch202 -p1 %patch203 -p1 %patch204 -p1 +%patch205 -p1 popd # System library fixes @@ -2167,6 +2169,9 @@ require "copy_jdk_configs.lua" %endif %changelog +* Fri Aug 20 2021 kuenking111 - 1:1.8.0.302-b07.2 +- add fix_g1uncommit_ygc_expand_crash.patch + * Thu Aug 19 2021 eapen - 1:1.8.0.302-b07.1 - delete 8266929_huawei_add_oid_mapping_common_sig_types.patch