Skip to content
Permalink
Browse files

8237847: Zero builds fail after JDK-8237637 (Remove dubious type conv…

…ersions from oop)

Reviewed-by: dcubed
  • Loading branch information
shipilev committed Jan 26, 2020
1 parent 49dc57c commit 7cae6c35648c0f7ccfd7b2955e82c8aa1fcb1184
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/interpreter/bytecodeInterpreter.cpp
@@ -2173,7 +2173,7 @@ BytecodeInterpreter::run(interpreterState istate) {
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<HeapWord*>(result) + sizeof(oopDesc) / oopSize;
obj_size -= sizeof(oopDesc) / oopSize;
if (obj_size > 0 ) {
memset(to_zero, 0, obj_size * HeapWordSize);

0 comments on commit 7cae6c3

Please sign in to comment.