Blame SOURCES/s390-8214206_fix.patch

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