RFR: 8337987: Relocate jfr and throw_exception stubs from StubGenerator to SharedRuntime [v3]

Andrew Dinn adinn at openjdk.org
Tue Sep 24 09:53:44 UTC 2024


On Fri, 20 Sep 2024 14:22:12 GMT, Hao Sun <haosun at openjdk.org> wrote:

>> @RealFYang Thanks!
>
> Hi @adinn , I encountered Client build failure on AArch64 after this commit. Could you help take a look at it when you have spare time? Thanks.
> 
> Here shows the configuration
> 
> ====================================================
> The existing configuration has been successfully updated in
> /tmp/test123/build-release
> using configure arguments '--with-debug-level=release --with-version-opt=git-fe80618bf3f --with-jvm-variants=client'.
> 
> Configuration summary:
> * Name:           /tmp/test123/build-release
> * Debug level:    release
> * HS debug level: product
> * JVM variants:   client
> * JVM features:   client: 'cds compiler1 epsilongc g1gc jfr jni-check jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc' 
> * OpenJDK target: OS: linux, CPU architecture: aarch64, address length: 64
> * Version string: 24-internal-git-fe80618bf3f (24-internal)
> * Source date:    1726841146 (2024-09-20T14:05:46Z)
> 
> Tools summary:
> * Boot JDK:       openjdk version "22.0.2" 2024-07-16 OpenJDK Runtime Environment (build 22.0.2+9-70) OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing) (at /usr/lib/jvm/jdk-22.0.2)
> * Toolchain:      gcc (GNU Compiler Collection)
> * C Compiler:     Version 13.2.0 (at /usr/bin/gcc)
> * C++ Compiler:   Version 13.2.0 (at /usr/bin/g++)
> 
> Build performance summary:
> * Build jobs:     72
> * Memory limit:   587068 MB
> 
> 
> And here shows the error msg:
> 
> === Output from failing command(s) repeated here ===
> * For target hotspot_variant-client_libjvm_objs_sharedRuntime_aarch64.o:
> /tmp/test123/jdk-src/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp: In static member function ‘static RuntimeStub* SharedRuntime::generate_throw_exception(const char*, address)’:
> /tmp/test123/jdk-src/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp:2809:3: error: ‘TraceTime’ was not declared in this scope; did you mean ‘traceid’?
>  2809 |   TraceTime timer(timer_msg, TRACETIME_LOG(Info, startuptime));
>       |   ^~~~~~~~~
>       |   traceid
> 
> * All command lines available in /tmp/test123/build-release/make-support/failure-logs.
> === End of repeated output ===

@shqking Thanks for reporting this problem. I reproduced the same failure on aarch64 and have noticed that the problem also arises on arm. File `sharedRuntime_aarch64.cpp` needs to include the header that declares class TraceTime as does `sharedRuntime_arm.cpp`.

I raised JDK-8340793 and will push a patch to fix it.

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

PR Comment: https://git.openjdk.org/jdk/pull/20566#issuecomment-2370806327


More information about the hotspot-dev mailing list