c98058256b
Add new formatting case found in memprofiler.cpp on debug builds to PR3593 patch.
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahUtils.cpp
|
|
@@ -150,5 +150,5 @@
|
|
return value;
|
|
}
|
|
|
|
- return (size_t)1 << (log2_intptr(value) + 1);
|
|
+ return (size_t)1 << (log2_intptr((uintptr_t) value) + 1);
|
|
}
|
|
diff --git openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
|
|
--- openjdk.orig/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
|
|
+++ openjdk/hotspot/src/share/vm/gc_implementation/shenandoah/shenandoahNumberSeq.cpp
|
|
@@ -135,7 +135,7 @@
|
|
void BinaryMagnitudeSeq::add(size_t val) {
|
|
Atomic::add(val, &_sum);
|
|
|
|
- int mag = log2_intptr(val) + 1;
|
|
+ int mag = log2_intptr((uintptr_t)val) + 1;
|
|
|
|
// Defensively saturate for product bits:
|
|
if (mag < 0) {
|