Integrated: 8307196: Dangling pointer warning for MetadataAllocationRequest
Kim Barrett
kbarrett at openjdk.org
Fri May 5 06:25:53 UTC 2023
On Thu, 4 May 2023 05:14:28 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Please review this change to work around a false positive -Wdangling-pointer
> warning from gcc13.1. The approach being taken is to suppress the warning,
> with a comment describing why it's a false positive.
>
> As with JDK-8307147 I tried various code modifications to avoid the warning,
> but they were either obscure, or didn't seem reliably future-proof against
> further changes in gcc's analysis.
>
> Testing:
> mach5 tier1-3 with gcc11.2 (current default in Oracle's CI)
>
> Local (linux-x64) tier1 with gcc13.1, and verified the relevant warnings are
> not reported during the build. This required disabling compiler warnings as
> errors, as there are other new warnings from gcc13.1: JDK-8307210.
This pull request has now been integrated.
Changeset: e19cf26d
Author: Kim Barrett <kbarrett at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e19cf26d656bc2de947aa42c418bdbbf549f8865
Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod
8307196: Dangling pointer warning for MetadataAllocationRequest
Reviewed-by: dholmes, eosterlund
-------------
PR: https://git.openjdk.org/jdk/pull/13789
More information about the hotspot-runtime-dev
mailing list