RFR: 8306006: strace001.java fails due to unknown methods on stack
David Holmes
dholmes at openjdk.org
Mon Apr 17 01:37:43 UTC 2023
On Sun, 16 Apr 2023 08:06:32 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> The observer calling java.lang.management.ThreadInfo::getStackTrace could sample the thread in Thread.sleep at any time so I think it may see afterSleep in the stack.
Thanks @AlanBateman -Yes, sorry, the test doesn't do what I expected - the sleep is actually incidental so it copuld be sampled anywhere.
> and add the two SleepEvent methods to the expected list.
I see now those two methods are already present, so just the stack depth check needs updating.
Of course if this test were ever run with these events enabled then it could fail for a variety of reasons.
BTW the comments in TestDescription.java for strace00* are all inaccurate with regards to this:
2. The length of a trace must not be greater than (depth + 3).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13476#issuecomment-1510571422
More information about the serviceability-dev
mailing list