--- a/src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp Wed May 22 09:33:22 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp Wed May 22 08:42:00 2019 +0100
@@ -684,7 +684,7 @@
void ShenandoahHeapRegion::set_state(RegionState to) {
EventShenandoahHeapRegionStateChange evt;
if (evt.should_commit()){
- evt.set_index(region_number());
+ evt.set_index((unsigned)region_number());
evt.set_start((uintptr_t)bottom());
evt.set_used(used());
evt.set_from(_state);
--- a/src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp Wed May 22 09:33:22 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp Wed May 22 08:42:00 2019 +0100
@@ -57,7 +57,7 @@
public:
virtual void heap_region_do(ShenandoahHeapRegion* r) {
EventShenandoahHeapRegionInformation evt;
- evt.set_index(r->region_number());
+ evt.set_index((unsigned)r->region_number());
evt.set_state((u8)r->state());
evt.set_start((uintptr_t)r->bottom());
evt.set_used(r->used());