RFR: 8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()

Alan Bateman alanb at openjdk.java.net
Tue Oct 5 17:47:09 UTC 2021


On Tue, 5 Oct 2021 17:16:56 GMT, Florian Weimer <fweimer at openjdk.org> wrote:

> I'm invoking jtreg directly, following [Running tests using jtreg](http://openjdk.java.net/jtreg/runtests.html). That page doesn't mention `-timeoutFactor`.

Okay, I think RunTests.gmk sets it to 4 but it can be overridden.

> How important is exception correctness in the test code? Is it acceptable to leak resources on VM errors?

The tests usually run in agentvm mode so if failing tests leak then it may have knock impact to tests that run later in the same VM. So if we can clean up then we should.  Sometimes we have tests that can't reliably cleanup, they can run in othervm mode that is runs just the one test.

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

PR: https://git.openjdk.java.net/jdk/pull/5824


More information about the nio-dev mailing list