On Wed, 12 May 2021 08:04:24 GMT, Robbin Ehn <r...@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

Reply via email to