RFR: 8295808: GrowableArray should support capacity management [v2]

Kim Barrett kbarrett at openjdk.org
Tue Oct 25 17:43:37 UTC 2022


> Please review this change to GrowableArray to support capacity management.
> Two functions are added to GrowableArray, reserve and shrink_to_fit.  Also
> renamed the max_length function to capacity.
> 
> Used these new functions in StringDedupTable.
> 
> Testing: mach5 tier1-3

Kim Barrett has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:

 - Merge branch 'master' into ga-capacity
 - copyrights
 - use reserve/shrink_to_fit in StringDedupTable
 - gtests for capacity functions
 - add reserve and shrink_to_fit
 - max_length() => capacity()
 - initial_capacity => capacity
 - capacity nomenclature

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10827/files
  - new: https://git.openjdk.org/jdk/pull/10827/files/08f119ca..aac22e47

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10827&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10827&range=00-01

  Stats: 115329 lines in 565 files changed: 80485 ins; 5038 del; 29806 mod
  Patch: https://git.openjdk.org/jdk/pull/10827.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10827/head:pull/10827

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


More information about the serviceability-dev mailing list