From 7cae6c35648c0f7ccfd7b2955e82c8aa1fcb1184 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Sun, 26 Jan 2020 17:08:40 +0100 Subject: [PATCH] 8237847: Zero builds fail after JDK-8237637 (Remove dubious type conversions from oop) Reviewed-by: dcubed --- src/hotspot/share/interpreter/bytecodeInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp b/src/hotspot/share/interpreter/bytecodeInterpreter.cpp index 0ad1b949e09..12542199b87 100644 --- a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp +++ b/src/hotspot/share/interpreter/bytecodeInterpreter.cpp @@ -2173,7 +2173,7 @@ run: if (result != NULL) { // Initialize object (if nonzero size and need) and then the header if (need_zero ) { - HeapWord* to_zero = (HeapWord*) result + sizeof(oopDesc) / oopSize; + HeapWord* to_zero = cast_from_oop(result) + sizeof(oopDesc) / oopSize; obj_size -= sizeof(oopDesc) / oopSize; if (obj_size > 0 ) { memset(to_zero, 0, obj_size * HeapWordSize);