Blame SOURCES/s390-8214206_fix.patch

3dea0a
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/g1/g1BiasedArray.hpp openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BiasedArray.hpp
3dea0a
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/g1/g1BiasedArray.hpp
3dea0a
+++ openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BiasedArray.hpp
3dea0a
@@ -78,7 +78,8 @@
3dea0a
     size_t num_target_elems = pointer_delta(end, bottom, mapping_granularity_in_bytes);
3dea0a
     idx_t bias = (uintptr_t)bottom / mapping_granularity_in_bytes;
3dea0a
     address base = create_new_base_array(num_target_elems, target_elem_size_in_bytes);
3dea0a
-    initialize_base(base, num_target_elems, bias, target_elem_size_in_bytes, log2_intptr(mapping_granularity_in_bytes));
3dea0a
+    initialize_base(base, num_target_elems, bias, target_elem_size_in_bytes,
3dea0a
+                    log2_intptr((uintptr_t) mapping_granularity_in_bytes));
3dea0a
   }
3dea0a
 
3dea0a
   size_t bias() const { return _bias; }
3dea0a
diff --git openjdk.orig/hotspot/src/share/vm/runtime/os.cpp openjdk/hotspot/src/share/vm/runtime/os.cpp
3dea0a
--- openjdk.orig/hotspot/src/share/vm/runtime/os.cpp
3dea0a
+++ openjdk/hotspot/src/share/vm/runtime/os.cpp
3dea0a
@@ -1284,7 +1284,7 @@
3dea0a
 }
3dea0a
 
3dea0a
 void os::set_memory_serialize_page(address page) {
3dea0a
-  int count = log2_intptr(sizeof(class JavaThread)) - log2_int(64);
3dea0a
+  int count = log2_intptr((uintptr_t) sizeof(class JavaThread)) - log2_int(64);
3dea0a
   _mem_serialize_page = (volatile int32_t *)page;
3dea0a
   // We initialize the serialization page shift count here
3dea0a
   // We assume a cache line size of 64 bytes
1d78cc
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
1d78cc
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
1d78cc
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
1d78cc
@@ -135,7 +135,7 @@
3dea0a
 void BinaryMagnitudeSeq::add(size_t val) {
3dea0a
   Atomic::add(val, &_sum);
3dea0a
 
3dea0a
-  int mag = log2_intptr(val) + 1;
1d78cc
+  int mag = log2_long(val) + 1;
3dea0a
 
3dea0a
   // Defensively saturate for product bits:
3dea0a
   if (mag < 0) {