Integrated: 8254842: [JVMCI] copy thread name when attaching libgraal thread to HotSpot

Doug Simon dnsimon at openjdk.java.net
Tue Oct 20 08:41:14 UTC 2020


On Thu, 15 Oct 2020 13:29:39 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

> This PR modifies `HotSpotJVMCIRuntime.attachCurrentThread` when it is called from within libgraal so that the name of
> the thread in the libgraal heap is used as the name of the peer thread created in HotSpot.
> This useful when viewing output such as `-XX:JVMCITraceLevel=1`. For example, here's sample output without this PR:
> JVMCITrace-1[Thread-0]: initializing JVMCI runtime -1
> JVMCITrace-1[Thread-0]: initialized JVMCI runtime -1
> and then with:
> JVMCITrace-1[LibGraalHotSpotGraalManagementInitialization]: initializing JVMCI runtime -1
> JVMCITrace-1[LibGraalHotSpotGraalManagementInitialization]: initialized JVMCI runtime -1

This pull request has now been integrated.

Changeset: 017d151e
Author:    Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/017d151e
Stats:     20 lines in 3 files changed: 14 ins; 0 del; 6 mod

8254842: [JVMCI] copy thread name when attaching libgraal thread to HotSpot

Reviewed-by: kvn, never

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

PR: https://git.openjdk.java.net/jdk/pull/684


More information about the hotspot-compiler-dev mailing list