Blame SOURCES/s390-8214206_fix.patch

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