RFR: 8295851: Do not use ttyLock in BytecodeTracer::trace [v4]

David Holmes dholmes at openjdk.org
Fri Jun 27 04:12:38 UTC 2025


On Wed, 25 Jun 2025 21:32:25 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> > You could use a ThreadLocal for the current method being printed.
> 
> Oh yes that would be better, but I hate to add things to Thread for just one use. 

No I literally meant a THREAD_LOCAL ie.

static THREAD_LOCAL Method* _method_currently_being_printed = nullptr;

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

PR Comment: https://git.openjdk.org/jdk/pull/25915#issuecomment-3011566930


More information about the hotspot-runtime-dev mailing list