changeset 55008:6b976a59ee87

8224573: Fix windows build after JDK-8221507 Reviewed-by: shade, stuefe
author clanger
date Wed, 22 May 2019 08:42:00 +0100
parents 22961d673487
children b1f070f4a4ae
files src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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());