RFR: 8299419: Thread.sleep(millis) may throw OOME [v2]
Alan Bateman
alanb at openjdk.org
Wed Sep 11 06:05:04 UTC 2024
On Wed, 11 Sep 2024 02:28:45 GMT, David Holmes <dholmes at openjdk.org> wrote:
> With regards to the nsk tests, are `beforeSleep` and `afterSleep` still potential candidates now that it is impossible for them to throw OOME?
These tests are sampling and checking for specific methods and call stacks, I don't think they are provoke OOME. So the changes just are cleanup as these it won't sample frames with these methods with the code change. I don't think ThreadSleepEvent.<clinit> will be sampled now but maybe ThreadSleepEvent.<init> will.
These tests are crying out to be replaced as they make too hard to do changes in this area.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20923#issuecomment-2342693403
More information about the core-libs-dev
mailing list