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