Integrated: 8369468: Rdtsc: Move getCPUIDBrandString_stub into VM_Version stub area
Axel Boldt-Christmas
aboldtch at openjdk.org
Mon Oct 13 07:51:14 UTC 2025
On Thu, 9 Oct 2025 05:59:54 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> Currently these stubs are created in `Rdtsc::initialize` which may be called from the first ElapsedCounter now call. This causes problems with lock ranks as we may be holding a lock while taking time, because we need to lock the code cache to create a stub.
>
> I suggest we move the `getCPUIDBrandString_stub` next to the other `VM_Version` stubs and generate them together. This is done at the earliest point we can, right after the CodeCache system has been initialized.
This pull request has now been integrated.
Changeset: a6f624b0
Author: Axel Boldt-Christmas <aboldtch at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a6f624b0743a1e0a3df4e8323c13b0d1fd6d0002
Stats: 29 lines in 3 files changed: 4 ins; 24 del; 1 mod
8369468: Rdtsc: Move getCPUIDBrandString_stub into VM_Version stub area
Reviewed-by: mgronlun, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/27711
More information about the hotspot-dev
mailing list