RFR: 8376106: TestObjectDescription.java intermittent fails Unable to replace class name
Robert Toyonaga
duke at openjdk.org
Fri Feb 27 16:27:42 UTC 2026
On Fri, 27 Feb 2026 02:54:26 GMT, SendaoYan <syan at openjdk.org> wrote:
> After apply the proposed patch, test run timed out.
Thanks for checking! It looks like `testThreadGroupName` timed out. Not related our changes to `testClassName`.
The problem is that all the tests in this class, `TestObjectDescription`, rely on probabilistic sampling. So they are flakey. There's a chance that the desired objects never gets sampled.
I've pushed another commit disabling TLABs `-XX:-UseTLAB`. This should force each allocation to get sampled. I also reduced the number of allocations per iteration (since sampling is now guaranteed). The only way we can time-out now is if undesired allocations push all the desired allocations out of the leak profiler queue.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29945#issuecomment-3973821215
More information about the hotspot-jfr-dev
mailing list