RFR: JDK-8293346: Add NoThreadCurrentMark to simulate non-attached threads

Thomas Stuefe stuefe at openjdk.org
Wed Sep 21 06:33:43 UTC 2022


On Wed, 21 Sep 2022 02:51:22 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Sorry Thomas but this seems far too disruptive and complex just to support the usecase you outlined.

I was afraid you would dislike the changes to TLS initialization.

> As you are simulating non-attached thread by attached threads why can't use just have a debug-only field in Thread that is set/cleared by the NTCM, and have Thread::current examine that field?

I can try this. This would be simpler. Has to support nesting though. Lets see.

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

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


More information about the hotspot-dev mailing list