RFR: 8295555: Primitive wrapper caches could be `@Stable`
Chen Liang
liach at openjdk.org
Mon Jun 12 14:54:51 UTC 2023
On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg <pminborg at 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?
Seems the `valueOf` APIs already have `@IntrinsicCandidate` and might have some custom logic in C2 or other jit compilers, so there's no performance difference.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14418#issuecomment-1587505610
More information about the core-libs-dev
mailing list