Skip to content

Commit

Permalink
8237847: Zero builds fail after JDK-8237637 (Remove dubious type conv…
Browse files Browse the repository at this point in the history
…ersions from oop)

Reviewed-by: dcubed
  • Loading branch information
shipilev committed Jan 26, 2020
1 parent 49dc57c commit 7cae6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/interpreter/bytecodeInterpreter.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 7cae6c3

Please sign in to comment.