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