Hi Serguei,
The just seems like an odd coding pattern to me: // Block until the suspender thread competes the tested threads suspension agent_lock(jni); agent_unlock(jni); Wouldn't you normally use wait/notify in this situation? Some like: agent_lock(jni); if (!suspenderDone) { agent_wait(jni); } agent_unlock(jni); I think maybe you left out the middle part because you know that this code will never grab the agent_lock before the suspender thread does, and therefore once this code gets the lock you know the suspender thread is done (is that actually the case?). thanks, Chris On 10/8/19 11:50 AM, serguei.spit...@oracle.com wrote: Ping... |
- Re: RFR (M): 8231595 ... serguei . spitsyn
- Re: RFR (M): 8231595 ... serguei . spitsyn
- Re: RFR (M): 8231595 ... David Holmes
- Re: RFR (M): 8231595 ... serguei . spitsyn
- Re: RFR (M): 8231595 ... David Holmes
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... Alex Menkov
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... serguei . spitsyn
- Re: RFR (M): 8231595 ... Chris Plummer
- Re: RFR (M): 8231595 ... serguei . spitsyn
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... Chris Plummer
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... Alex Menkov
- Re: RFR (M): 8231595 ... Chris Plummer
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 ... David Holmes
- Re: RFR (M): 8231595 ... serguei.spit...@oracle.com
- Re: RFR (M): 8231595 [TEST] develop a test case... David Holmes