RFR: 8265753: Remove manual JavaThread transitions to blocked [v2]

Richard Reingruber rrich at openjdk.java.net
Wed May 12 08:31:13 UTC 2021


On Wed, 12 May 2021 08:04:24 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

>> src/hotspot/share/runtime/interfaceSupport.inline.hpp line 230:
>> 
>>> 228: };
>>> 229: 
>>> 230: template <typename PRE_PROC>
>> 
>> When you mentioned doing this with templates, I was having
>> nightmares, but this one is not bad at all...
>
> :)

Any reason why you don't use a ThreadClosure instead of the template parameter. I reckon it cannot be performance since it is only used on the slow path.

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

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


More information about the serviceability-dev mailing list