RFR [8057744] (process) Synchronize exiting of threads and process [win]

Daniel D. Daugherty daniel.daugherty at oracle.com
Sun Sep 7 16:58:56 UTC 2014


On 9/7/14 12:07 AM, Ivan Gerasimov wrote:
> Hello!
>
> This is a proposal to address issue with wrong exit codes from a Java 
> processes on Windows.
> In order to avoid a race, calls to _endthread(), exit and _exit() are 
> explicitly synchronized.
> We allow simultaneous calls to _endthread() by multiple threads.
> However, at the time exit() or _exit() is called, no calls to 
> _endthread() are allowed.
>
> Some instrumentation added with JDK-8055338 remain in the code to help 
> diagnose the failures if they still occur.
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8057744
> WEBREV: http://cr.openjdk.java.net/~igerasim/8057744/0/webrev/

src/os/aix/vm/os_aix.inline.hpp
     No comments.

src/os/bsd/vm/os_bsd.inline.hpp
     No comments.

src/os/linux/vm/os_linux.inline.hpp
     No comments.

src/os/solaris/vm/os_solaris.inline.hpp
     No comments.

src/os/windows/vm/os_windows.cpp
     No comments.

src/os/windows/vm/os_windows.hpp
     No comments.

src/os/windows/vm/os_windows.inline.hpp
     No comments.

src/share/vm/runtime/java.cpp
     No comments.

src/share/vm/runtime/os.hpp
     No comments.

Thumbs up!

Dan


>
> Sincerely yours,
> Ivan



More information about the serviceability-dev mailing list