[crac] RFR: [TEST] check if some j.l.* methods time out on restore immediately
Anton Kozlov
akozlov at openjdk.java.net
Thu Mar 3 14:27:35 UTC 2022
On Fri, 4 Feb 2022 15:44:33 GMT, Alexander Stepanov <avstepan at openjdk.org> wrote:
> add a test to check if Thread.join(timeout), Thread.sleep(timeout) and Object.wait(timeout) will be completed on restore immediately if their end time fell on the CRaC pause period
>
> checked on Ubuntu 20.04 Linux (x86-64), passed
For the record, the intention of the test is to specify and check the behavior of methods which wait with the timeout, as written in the test description. I think these methods are a good start. AFAICS together with j.l.Process.waitFor() and j.l.r.ReferenceQueue.remove they consist complete set of such methods in java.lang package.The Process.waitFor() and ReferenceQueue.remove() are implemented via tested methods, so omitted.
-------------
PR: https://git.openjdk.java.net/crac/pull/15
More information about the crac-dev
mailing list