On Fri, 19 Dec 2025 06:43:05 GMT, Hao Sun <[email protected]> wrote:

> `get_source(const AOTClassLocation* cl, JavaThread* jt)` is only used by 
> `JfrClassDefineEvent::on_restoration()` within an `INCLUDE_CDS` guard.
> 
> Add the same `INCLUDE_CDS` guard to mitigate the GCC warning.
> 
> Tests: JDK build with CDS disabled passed on both x86_64 and aarch64.
>        tier1~3 passed on both x86_64 and aarch64.

This pull request has now been integrated.

Changeset: e1d81c09
Author:    Hao Sun <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/e1d81c0946364a266a006481a8fbbac24c7e6c6a
Stats:     28 lines in 1 file changed: 14 ins; 14 del; 0 mod

8373122: JFR build failure with CDS disabled due to -Werror=unused-function 
after JDK-8365400

Reviewed-by: mgronlun, jiefu, fandreuzzi

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

PR: https://git.openjdk.org/jdk/pull/28917

Reply via email to