RFR 8193150: Create a jtreg version of the test from JDK-8187143
Paru Somashekar
parvathi.somashekar at oracle.com
Fri Feb 2 17:35:37 UTC 2018
Hi,
Please review the fix for JDK-8193150.
The fix introduces a new jtreg test, NashornPopFrameTest. It is based on
the original test from JDK-8187143
<https://bugs.openjdk.java.net/browse/JDK-8187143> that was provided by
the customer.
Bug : https://bugs.openjdk.java.net/browse/JDK-8193150
<https://bugs.openjdk.java.net/browse/JDK-8193150>
Webrev : http://cr.openjdk.java.net/~psomashe/8193150/webrev/
<http://cr.openjdk.java.net/%7Epsomashe/8193150/webrev/>
Here is a brief description of what the test does :-
* The debuggee, creates and uses a Nashorn engine to evaluate a simple
script.
* The debugger tries to set a breakpoint in Nashorn's internal DEBUGGER
method.
* When the breakpoint is reached, it looks for stack frame whose
method's declaring type name starts with (nashorn dynamically generated
classes) "jdk.nashorn.internal.scripts.Script$".
* It then pops stack frames using the ThreadReference.popFrames() call,
up to and including the above stackframe.
* The execution of the debuggee application is resumed after the needed
frames have been popped.
This test is included in the ProblemList as it fails under some
circumstances (bug JDK-8187143)
<https://bugs.openjdk.java.net/browse/JDK-8187143>. Is always passes
with the -Xint flag however always fails with -Xcomp. It fails
intermittently with the -Xmixed (default).
thanks,
Paru.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20180202/b44daedb/attachment.html>
More information about the serviceability-dev
mailing list