|
|
935881 |
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
|
935881 |
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
|
935881 |
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
|
935881 |
@@ -150,5 +150,5 @@
|
|
|
935881 |
return value;
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
935881 |
- return (size_t)1 << (log2_intptr(value) + 1);
|
|
|
935881 |
+ return (size_t)1 << (log2_intptr((uintptr_t) value) + 1);
|
|
|
935881 |
}
|
|
|
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) {
|
|
|
935881 |
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
|
|
|
935881 |
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
|
|
|
935881 |
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.cpp
|
|
|
935881 |
@@ -659,7 +659,7 @@
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
935881 |
size_t ShenandoahHeap::soft_max_capacity() const {
|
|
|
935881 |
- size_t v = OrderAccess::load_acquire((volatile size_t*)&_soft_max_size);
|
|
|
935881 |
+ size_t v = OrderAccess::load_acquire((volatile jlong*)&_soft_max_size);
|
|
|
935881 |
assert(min_capacity() <= v && v <= max_capacity(),
|
|
|
935881 |
err_msg("Should be in bounds: " SIZE_FORMAT " <= " SIZE_FORMAT " <= " SIZE_FORMAT,
|
|
|
935881 |
min_capacity(), v, max_capacity()));
|
|
|
935881 |
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
|
|
|
935881 |
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
|
|
|
935881 |
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahHeap.hpp
|
|
|
935881 |
@@ -155,7 +155,7 @@
|
|
|
935881 |
private:
|
|
|
935881 |
size_t _initial_size;
|
|
|
935881 |
size_t _minimum_size;
|
|
|
935881 |
- volatile size_t _soft_max_size;
|
|
|
935881 |
+ volatile jlong _soft_max_size;
|
|
|
935881 |
shenandoah_padding(0);
|
|
|
935881 |
volatile jlong _used;
|
|
|
935881 |
volatile size_t _committed;
|