--- src/hotspot/share/runtime/sharedRuntime.cpp 2020-01-16 20:50:30.000000000 +0100 +++ src/hotspot/share/runtime/sharedRuntime.cpp 2020-03-21 18:29:20.554600000 +0100 @@ -2871,7 +2871,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.