> This PR outlines a solution for making immutable maps `@ValueBased` by 
> removing cacheing of certain values in `AbstractMap`.
> 
> By removing these caching fields in `AbstractMap`, we can make the immutable 
> maps `@ValueBased` and at the same time, performance is likely improved 
> because the JVM is probably able to optimize away object creation anyway via 
> escape analysis. Also, all maps will occupy less space as we get rid of a 
> number of objects and references stored for each map.
> 
> We need to benchmark this solution to better understand its implications.

Per Minborg has updated the pull request incrementally with one additional 
commit since the last revision:

  Add 'fresh' to implSpec

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15614/files
  - new: https://git.openjdk.org/jdk/pull/15614/files/9b25827a..fabdb59b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15614&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15614&range=04-05

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/15614.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15614/head:pull/15614

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

Reply via email to