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?

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

Reply via email to