RFR: 8300317: vmTestbase/nsk/stress/strace/strace* tests fail with "ERROR: wrong lengths of stack traces"

David Holmes dholmes at openjdk.org
Tue Mar 14 04:37:45 UTC 2023


On Tue, 14 Mar 2023 00:45:03 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> The same bug as https://bugs.openjdk.org/browse/JDK-8295099 vmTestbase/nsk/stress/strace/strace013.java failed with "TestFailure: wrong lengths of stack traces: strace013Thread0: NNN strace013Thread83: MMM"
> 
> The test starts failing after changing implementation of Object.wait() method in loom. This method might call Object.wait() and increase stack length of dump.

Given that StraceBase doesn't even check specific methods any more I don't see that the stacktrace length check in these tests serves any purpose. As long as only the expected classes appear then the actual methods (and number thereof) seems irrelevant.

But in terms of fixing this in the same way as the other test this seems fine.

Note that the main test comments on this test (and likely the others) is no longer accurate.

Thanks.

-------------

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.org/jdk/pull/13008


More information about the hotspot-runtime-dev mailing list