Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v6]

2022-06-07 Thread Johan Sjölén
stead? We can do this in this PR, imho, but I'm hoping to get > some input on this. > > > Passes tier1. Running tier2-5. Johan Sjölén has updated the pull request incrementally with one additional commit since the last revision: Move assert up and remove other assert, rem

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v4]

2022-06-07 Thread Johan Sjölén
On Mon, 6 Jun 2022 16:36:01 GMT, Daniel D. Daugherty wrote: >> We also no longer need L358 as `current` is now unused. > > JavaThread *target = state->get_thread(); > Thread *current = Thread::current(); > > assert(state != NULL, "sanity check"); > > The `assert()` on L360 is in the wrong p

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v5]

2022-06-07 Thread Johan Sjölén
On Tue, 7 Jun 2022 09:58:11 GMT, Johan Sjölén wrote: >> Please review this PR for fixing JDK-8287281. >> >> If a thread is handshake safe we immediately execute the closure, instead of >> going through the regular Handshake process. >> >> Finally: Should

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v5]

2022-06-07 Thread Johan Sjölén
stead? We can do this in this PR, imho, but I'm hoping to get > some input on this. > > > Passes tier1. Running tier2-5. Johan Sjölén has updated the pull request incrementally with two additional commits since the last revision: - Remove unused variable - Use current inst

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v4]

2022-06-07 Thread Johan Sjölén
On Mon, 6 Jun 2022 07:15:45 GMT, David Holmes wrote: >> Johan Sjölén has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - do_thread(target) not self >> - Remove checks for is_handshake_for, instead call H

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v4]

2022-06-05 Thread Johan Sjölén
On Fri, 3 Jun 2022 09:45:31 GMT, Johan Sjölén wrote: >> Please review this PR for fixing JDK-8287281. >> >> If a thread is handshake safe we immediately execute the closure, instead of >> going through the regular Handshake process. >> >> Finally: Should

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v4]

2022-06-03 Thread Johan Sjölén
be done. > > Finally: Should `VirtualThreadGetThreadClosure` and its `do_thread()` body > be inlined instead? We can do this in this PR, imho, but I'm hoping to get > some input on this. > > > Currently running tier1-5 to check if I'm missing something. Johan Sjölén has

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v3]

2022-06-03 Thread Johan Sjölén
be done. > > Finally: Should `VirtualThreadGetThreadClosure` and its `do_thread()` body > be inlined instead? We can do this in this PR, imho, but I'm hoping to get > some input on this. > > > Currently running tier1-5 to check if I'm missing something. Johan Sjölén h

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current

2022-06-03 Thread Johan Sjölén
On Thu, 2 Jun 2022 13:47:23 GMT, Johan Sjölén wrote: > Please review this PR for fixing JDK-8287281. > > I chose a different solution than the one suggested. Looking at all callers > of `Handshake::execute`, it seems that only one depends on `target == > current`. The rest sp

Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v2]

2022-06-03 Thread Johan Sjölén
be done. > > Finally: Should `VirtualThreadGetThreadClosure` and its `do_thread()` body > be inlined instead? We can do this in this PR, imho, but I'm hoping to get > some input on this. > > > Currently running tier1-5 to check if I'm missing something. Johan Sjölén h

RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current

2022-06-02 Thread Johan Sjölén
Please review this PR for fixing JDK-8287281. I chose a different solution than the one suggested. Looking at all callers of `Handshake::execute`, it seems that only one depends on `target == current`. The rest special case that by calling `is_handshake_safe_for` and `do_thread` directly. I co