8234602: ZGC: Windows compile error in ZHeuristic
authorstefank
Mon, 25 Nov 2019 15:00:32 +0100
changeset 59255 a74627659f96
parent 59254 58f842703bc5
child 59256 aa516a7cf95e
child 59258 4c2557ab304e
8234602: ZGC: Windows compile error in ZHeuristic Reviewed-by: pliden, eosterlund
src/hotspot/share/gc/z/zHeuristics.cpp
--- a/src/hotspot/share/gc/z/zHeuristics.cpp	Mon Nov 25 14:57:03 2019 +0100
+++ b/src/hotspot/share/gc/z/zHeuristics.cpp	Mon Nov 25 15:00:32 2019 +0100
@@ -46,7 +46,7 @@
     ZPageSizeMedium             = size;
     ZPageSizeMediumShift        = log2_intptr(ZPageSizeMedium);
     ZObjectSizeLimitMedium      = ZPageSizeMedium / 8;
-    ZObjectAlignmentMediumShift = ZPageSizeMediumShift - 13;
+    ZObjectAlignmentMediumShift = (int)ZPageSizeMediumShift - 13;
     ZObjectAlignmentMedium      = 1 << ZObjectAlignmentMediumShift;
 
     log_info(gc, init)("Medium Page Size: " SIZE_FORMAT "M", ZPageSizeMedium / M);