8234602: ZGC: Windows compile error in ZHeuristic

Reviewed-by: pliden, eosterlund
This commit is contained in:
Stefan Karlsson 2019-11-25 15:00:32 +01:00
parent e36fa7783f
commit b468726bdc

View File

@ -46,7 +46,7 @@ void ZHeuristics::set_medium_page_size() {
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);