--- src/hotspot/share/runtime/sharedRuntime.cpp 2020-01-15 19:29:57.000000000 +0100 +++ src/hotspot/share/runtime/sharedRuntime.cpp 2020-03-20 20:48:24.848005000 +0100 @@ -2806,7 +2806,7 @@ if (buf != NULL) { CodeBuffer buffer(buf); double locs_buf[20]; - buffer.insts()->initialize_shared_locs((relocInfo*)locs_buf, sizeof(locs_buf) / sizeof(relocInfo)); + buffer.insts()->initialize_shared_locs((relocInfo*)locs_buf, (sizeof(locs_buf)) / (sizeof(relocInfo))); MacroAssembler _masm(&buffer); // Fill in the signature array, for the calling-convention call.