RFR: 8271869: AArch64: build errors with GCC11 in frame::saved_oop_result
Nick Gasson
ngasson at openjdk.java.net
Mon Aug 9 09:38:30 UTC 2021
On Thu, 5 Aug 2021 14:14:38 GMT, Alan Hayward <github.com+4146708+a74nh at openjdk.org> wrote:
> GCC11 warns that r0 is null. It does not complain if r1 is used instead.
>
> AIUI, it is undefined behaviour in C++ to call member functions without
> a valid this pointer. So, technically GCC is correct to warn.
This looks ok to me as it's the same workaround as JDK-8270083 but @kimbarrett probably ought check it too.
-------------
Marked as reviewed by ngasson (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5020
More information about the hotspot-dev
mailing list