Revise Shenandoah PR3634 patch following upstream discussion.

This commit is contained in:
Andrew John Hughes 2018-11-19 16:54:37 +00:00
parent e68876bb37
commit 66b29a9af5
2 changed files with 18 additions and 17 deletions

View File

@ -966,7 +966,7 @@ Provides: java-%{javaver}-%{origin}-accessibility = %{epoch}:%{version}-%{releas
Name: java-%{javaver}-%{origin} Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver} Version: %{javaver}.%{updatever}.%{buildver}
Release: 9%{?dist} Release: 10%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # 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 # 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 # also included the epoch in their virtual provides. This created a
@ -2328,6 +2328,9 @@ require "copy_jdk_configs.lua"
%endif %endif
%changelog %changelog
* Tue Nov 13 2018 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.191.b12-10
- Revise Shenandoah PR3634 patch following upstream discussion.
* Wed Nov 07 2018 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.191.b12-9 * Wed Nov 07 2018 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.191.b12-9
- headfull suggests of cups, replaced by Requires of cups-libs in headless - headfull suggests of cups, replaced by Requires of cups-libs in headless

View File

@ -1,16 +1,14 @@
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoah_globals.hpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoah_globals.hpp diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeapRegion.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeapRegion.cpp
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoah_globals.hpp --- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeapRegion.cpp
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoah_globals.hpp +++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeapRegion.cpp
@@ -55,10 +55,10 @@ @@ -524,8 +524,8 @@
"Size of the Shenandoah regions. " \ region_size = max_heap_size / ShenandoahTargetNumRegions;
"Determined automatically by default.") \
\ // Now make sure that we don't go over or under our limits.
- experimental(uintx, ShenandoahMinRegionSize, 256 * K, \ - region_size = MAX2(ShenandoahMinRegionSize, region_size);
+ experimental(size_t, ShenandoahMinRegionSize, 256 * K, \ - region_size = MIN2(ShenandoahMaxRegionSize, region_size);
"Minimum heap region size. ") \ + region_size = MAX2<size_t>(ShenandoahMinRegionSize, region_size);
\ + region_size = MIN2<size_t>(ShenandoahMaxRegionSize, region_size);
- experimental(uintx, ShenandoahMaxRegionSize, 32 * M, \
+ experimental(size_t, ShenandoahMaxRegionSize, 32 * M, \ } else {
"Maximum heap region size. ") \ if (ShenandoahHeapRegionSize > initial_heap_size / MIN_NUM_REGIONS) {
\
experimental(intx, ShenandoahHumongousThreshold, 100, \