[jdk17] RFR: 8268612: a few runtime/memory tests don't check exit code

Igor Ignatyev iignatyev at openjdk.java.net
Fri Jun 18 11:00:51 UTC 2021


Hi all,

could you please review this small patch that adds checks of exit code to a few `runtime/memory` tests?
from JBS:
> `ReserveMemory.java`, `ReadFromNoaccessArea.java` and `TestLargePagesFlags.java` tests spawn new JVMs but don't check their exit code which might lead to both type-I and type-II errors

in `ReadFromNoaccessArea.java`, the patch removes throwing of an exception in `DummyClassWithMainTryingToReadFromNoaccessArea` (child process), so we will get 0 as an exit code if/when we don't crash.

testing: `runtime/memory` tests on `{linux,windows,macosx}-x64`

Thanks,
-- Igor

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

Commit messages:
 - 8268612

Changes: https://git.openjdk.java.net/jdk17/pull/97/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=97&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8268612
  Stats: 4 lines in 3 files changed: 3 ins; 1 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/97.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/97/head:pull/97

PR: https://git.openjdk.java.net/jdk17/pull/97


More information about the hotspot-runtime-dev mailing list