8224573: Fix windows build after JDK-8221507
authorclanger
Wed, 22 May 2019 08:42:00 +0100
changeset 54975 6b976a59ee87
parent 54974 22961d673487
child 54976 b1f070f4a4ae
8224573: Fix windows build after JDK-8221507 Reviewed-by: shade, stuefe
src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp
src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp
--- 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());