RFR 8235515: TestBasicLogOutput.java crashes due to EXCEPTION_ACCESS_VIOLATION in HandshakeThreadsOperation::do_handshake

Daniel D. Daugherty daniel.daugherty at oracle.com
Tue Dec 10 17:43:06 UTC 2019


On 12/10/19 10:06 AM, Patricio Chilano wrote:
> Hi,
>
> Could you review this small fix? Signaling the _done semaphore has to 
> be done after logging, otherwise we could be accessing an already 
> destroyed HandshakeThreadsOperation object when executing name().
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8235515
> Webrev: http://cr.openjdk.java.net/~pchilanomate/8235515/v01/webrev/

src/hotspot/share/runtime/handshake.cpp
     No comments.

Nice catch! Looks like that "name()" call in the logging message
is the culprit here.

Thumbs up. I think this qualifies as a trivial fix.

Dan



>
> Thanks!
> Patricio



More information about the hotspot-runtime-dev mailing list