RFR: 8376570: GrowableArray::remove_{till, range} should work on empty list

Aleksey Shipilev shade at openjdk.org
Wed Jan 28 09:55:00 UTC 2026


Split from [JDK-8375046](https://bugs.openjdk.org/browse/JDK-8375046), we want to make sure GrowableArray removal methods work appropriately with empty lists.

Testing:
 - [x] New test
 - [ ] Linux x86_64 server fastdebug, `all` (in course of [JDK-8375046](https://bugs.openjdk.org/browse/JDK-8375046) testing)

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

Commit messages:
 - Fix

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

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


More information about the hotspot-dev mailing list