Hi Dan,
On 6/20/19 16:17, Daniel D. Daugherty wrote: On 6/19/19 9:59 PM, serguei.spit...@oracle.com wrote: The only one event can come at the time. It is because one worker thread is waiting for event to happen (does the check at line 164) and the other worker thread is expected to get the MonitorContendedEnter event. To make it a little bit simpler I can change it to: if (enterEventsCount() > lastEnterEventsCount) { L170: if (enterEventsCount() != lastEnterEventsCount + 1) { It is taken, thanks! I like it because it is a little bit simpler. :) Please, see the answer above. test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC04/tc04t001/tc04t001.cpp Thanks a lot for review, Dan! Serguei
|
- 13 RFR (S): 8223736: serguei . spitsyn
- RFR (S): 8223736:jvmti/scenarios/contentio... serguei . spitsyn
- Re: RFR (S): 8223736: jvmti/scenarios/... serguei.spit...@oracle.com
- Re: RFR (S): 8223736: jvmti/scenar... Chris Plummer
- Re: RFR (S): 8223736: jvmti/sc... serguei.spit...@oracle.com
- Re: RFR (S): 8223736:jvmti/scenarios/c... Daniel D. Daugherty
- Re: RFR (S): 8223736:jvmti/scenari... serguei.spit...@oracle.com
- Re: RFR (S): 8223736:jvmti/scenarios/c... Alex Menkov
- Re: RFR (S): 8223736:jvmti/scenari... serguei.spit...@oracle.com
- Re: RFR (S): 8223736:jvmti/sce... Alex Menkov
- Re: RFR (S): 8223736:jvmt... serguei.spit...@oracle.com
- Re: RFR (S): 8223736:jvmti/sce... Daniel D. Daugherty
- Re: RFR (S): 8223736:jvmt... serguei.spit...@oracle.com