On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg <pminb...@openjdk.org> wrote:
> This PR proposes adding `@Stable` to certain wrapper classes' cache arrays > (e.g. `Integer` and `Long`). > > Comments are welcome as to how to improve the VM's handling now that the > backing cache array is `@Stable`. Are there simplifications to be made or are > there other optimizations we might add? This pull request has now been integrated. Changeset: f7de726b Author: Per Minborg <pminb...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/f7de726bd37a2f1fa6f63b601cd2dab1805234e8 Stats: 16 lines in 5 files changed: 11 ins; 0 del; 5 mod 8295555: Primitive wrapper caches could be `@Stable` Reviewed-by: rriggs ------------- PR: https://git.openjdk.org/jdk/pull/14418