RFR(XXS): 8213902: com/sun/jdi/SetLocalWhileThreadInNative.java times out

Reingruber, Richard richard.reingruber at sap.com
Thu Nov 15 22:32:26 UTC 2018


Hi,

could I please get reviews for the following small patch? It fixes a bug in the test
com/sun/jdi/SetLocalWhileThreadInNative.java that causes a deadlock when executed with
-vmoption:-Xcomp.

Deadlock:

Debuggee (SetLocalWhileThreadInNativeTarget):
  - running with -Xcomp
  - still in early start-up
  - printed a lot on tty already, because -XX:+PrintCompilation -XX:+PrintInlining are given
  - java thread waits for compiler thread to finish compile task
  - compiler thread is blocked in write on tty. tty buffer is full, because debugger is not yet
    reading debuggee's output

Debugger
  - waiting until connection to debugger is established

The fix is to remove -XX:+PrintCompilation -XX:+PrintInlining. In addition it excludes the test if
running with -Xcomp, because that mode does not add a lot of value, as the test actually only needs
dontinline_testMethod() to be compiled. Running with -Xcomp just wastes energy.

Webrev: http://cr.openjdk.java.net/~rrich/webrevs/2018/8213902/webrev.01/
Bug:    https://bugs.openjdk.java.net/browse/JDK-8213902

The contribution needs to be sponsored as well, please.

Thanks, Richard.


More information about the serviceability-dev mailing list