RFR: 8333354: ubsan: frame.inline.hpp:91:25: and src/hotspot/share/runtime/frame.inline.hpp:88:29: runtime error: member call on null pointer of type 'const struct SmallRegisterMap'

Matthias Baesken mbaesken at openjdk.org
Wed Jul 24 13:14:32 UTC 2024


On Wed, 24 Jul 2024 09:19:22 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> I think this is intended. No instances of SmallRegisterMap are ever created.
Probably it is better just to switch off ubsan for the method, if it's intended.

On the other hand for SmallRegisterMap  in_cont  returns always false (so we could at least avoid this  `reg_map->in_cont()`  call for SmallRegisterMap) 
cpu/aarch64/smallRegisterMap_aarch64.inline.hpp:80:  bool in_cont()       const { return false; }
cpu/arm/smallRegisterMap_arm.inline.hpp:73:  bool in_cont()       const { return false; }
cpu/ppc/smallRegisterMap_ppc.inline.hpp:79:  bool in_cont()       const { return false; }
cpu/s390/smallRegisterMap_s390.inline.hpp:73:  bool in_cont()       const { return false; }
cpu/x86/smallRegisterMap_x86.inline.hpp:80:  bool in_cont()       const { return false; }
cpu/zero/smallRegisterMap_zero.inline.hpp:73:  bool in_cont()       const { return false; }
cpu/riscv/smallRegisterMap_riscv.inline.hpp:80:  bool in_cont()       const { return false; }

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20296#issuecomment-2247888008


More information about the hotspot-dev mailing list