OpenJDK / jdk / jdk
changeset 57837:4ba527676961
8237847: Zero builds fail after JDK-8237637 (Remove dubious type conversions from oop)
Reviewed-by: dcubed
author | shade |
---|---|
date | Sun, 26 Jan 2020 17:08:40 +0100 |
parents | d3cdf4b2b45b |
children | 972e523f8309 |
files | src/hotspot/share/interpreter/bytecodeInterpreter.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp Fri Jan 24 21:57:19 2020 +0000 +++ b/src/hotspot/share/interpreter/bytecodeInterpreter.cpp Sun Jan 26 17:08:40 2020 +0100 @@ -2173,7 +2173,7 @@ 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);