RFR: 8374456: JVM crashes with "assert(resolved_method->method_holder()->is_linked()) failed: must be linked" when run with large value for PreallocatedOutOfMemoryErrorCount

David Holmes dholmes at openjdk.org
Mon Jan 5 07:03:46 UTC 2026


Please review this trivial fix to add a `range(0,1024)` to the develop flag `PreallocatedOutOfMemoryErrorCount` to avoid absurdly large values from causing a crash. Anyone who needs an even larger value can easily change it directly.

Testing: manual (no regression test warranted)

Thanks

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

Commit messages:
 - 8374456: JVM crashes with "assert(resolved_method->method_holder()->is_linked()) failed: must be linked" when run with large value for PreallocatedOutOfMemoryErrorCount

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

PR: https://git.openjdk.org/jdk/pull/29027


More information about the hotspot-runtime-dev mailing list