Blame SOURCES/s390-8214206_fix.patch

e74e6c
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
e74e6c
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
e74e6c
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
e74e6c
@@ -150,5 +150,5 @@
e74e6c
     return value;
cdbd41
   }
cdbd41
 
e74e6c
-  return (size_t)1 << (log2_intptr(value) + 1);
e74e6c
+  return (size_t)1 << (log2_intptr((uintptr_t) value) + 1);
e74e6c
 }
cdbd41
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
cdbd41
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
cdbd41
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
cdbd41
@@ -135,7 +135,7 @@
cdbd41
 void BinaryMagnitudeSeq::add(size_t val) {
cdbd41
   Atomic::add(val, &_sum);
cdbd41
 
cdbd41
-  int mag = log2_intptr(val) + 1;
cdbd41
+  int mag = log2_long(val) + 1;
cdbd41
 
cdbd41
   // Defensively saturate for product bits:
cdbd41
   if (mag < 0) {
e74e6c
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
e74e6c
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
e74e6c
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
e74e6c
@@ -659,7 +659,7 @@
cdbd41
 }
cdbd41
 
e74e6c
 size_t ShenandoahHeap::soft_max_capacity() const {
e74e6c
-  size_t v = OrderAccess::load_acquire((volatile size_t*)&_soft_max_size);
e74e6c
+  size_t v = OrderAccess::load_acquire((volatile jlong*)&_soft_max_size);
e74e6c
   assert(min_capacity() <= v && v <= max_capacity(),
e74e6c
          err_msg("Should be in bounds: " SIZE_FORMAT " <= " SIZE_FORMAT " <= " SIZE_FORMAT,
e74e6c
                  min_capacity(), v, max_capacity()));
e74e6c
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
e74e6c
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
e74e6c
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
e74e6c
@@ -155,7 +155,7 @@
e74e6c
 private:
e74e6c
            size_t _initial_size;
e74e6c
            size_t _minimum_size;
e74e6c
-  volatile size_t _soft_max_size;
e74e6c
+  volatile jlong  _soft_max_size;
e74e6c
   shenandoah_padding(0);
e74e6c
   volatile jlong  _used;
e74e6c
   volatile size_t _committed;