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

David Holmes david.holmes at oracle.com
Wed May 12 13:00:03 UTC 2021


On 12/05/2021 8:56 pm, Robbin Ehn wrote:
> On Wed, 12 May 2021 08:27:33 GMT, Richard Reingruber <rrich at openjdk.org> wrote:
> 
>> Hi Robbin,
>>
>> I haven't found the time for a proper review yet but I've experimented a little bit with lambdas. I could not make it work because g++ created references to ::new which isn't allowed.
>>
>> Thanks, Richard.
> 
> Hi Richard,
> I tested lamdba, which is just a fancy way to write a crazy typed functor, we need to capture the lamdba so we can run it in the destructor. AFAICT the way to do that is using std::function.
>   
> Regarding ThreadClosure, we could use it, maybe that is preferable?!

Isn't a ThreadClosure for applying an operation to a set of threads? 
That is not what we are doing here.

David

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


More information about the serviceability-dev mailing list