RFR: 8272345: macos doesn't check `os::set_boot_path()` result

Igor Ignatyev iignatyev at openjdk.java.net
Wed Aug 11 22:31:38 UTC 2021

Hi all,

could you please review this small fix?

from JBS:
> we don't check `os::set_boot_path()` return value on macos, which leads to a crash/assert down the road in case we weren't able to set BCP. on all other OSes, we terminate JVM w/ "Failed setting boot class path." error message.

- [x] tier1
- [x] `runtime/cds/appcds/MoveJDKTest.java`

-- Igor


Commit messages:
 - 8272345

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

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

More information about the hotspot-runtime-dev mailing list