RFR: 8331731: ubsan: relocInfo.cpp:155:30: runtime error: applying non-zero offset 18446744073709551614 to null pointer [v2]
Vladimir Kozlov
kvn at openjdk.org
Thu May 30 18:18:01 UTC 2024
On Thu, 30 May 2024 14:31:28 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> The miss here seems to be that `has_loc` does not mean "This CodeSection has relocatations". But means "This CodeSection has allocated a relocations buffer". I believe the correct check would be `cs->locs_count() == 0`
This suggestion seems correct because we may allocate relocation buffer in section which does not have relocations [codeBuffer.cpp#L169](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/asm/codeBuffer.cpp#L169).
But this is different issue for different RFE.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19424#issuecomment-2140538618
More information about the hotspot-compiler-dev
mailing list