[lworld] RFR: 8368802: [lworld] C1 compilation fails with SIGSEGV in ciObjArrayKlass::make_impl

Tobias Hartmann thartmann at openjdk.org
Mon Oct 6 08:58:36 UTC 2025


If we are OOM, `element_klass->get_Klass()->array_klass(THREAD)` will return `nullptr`. We need to check `HAS_PENDING_EXCEPTION` before using the return value.

Thanks,
Tobias

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

Commit messages:
 - 8368802: [lworld] C1 compilation fails with SIGSEGV in ciObjArrayKlass::make_impl

Changes: https://git.openjdk.org/valhalla/pull/1661/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1661&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8368802
  Stats: 8 lines in 1 file changed: 4 ins; 4 del; 0 mod
  Patch: https://git.openjdk.org/valhalla/pull/1661.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1661/head:pull/1661

PR: https://git.openjdk.org/valhalla/pull/1661


More information about the valhalla-dev mailing list