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