Re: RFR: 8295555: Primitive wrapper caches could be `@Stable`

2023-06-13 Thread Per Minborg
On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg 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 simplifica

Re: RFR: 8295555: Primitive wrapper caches could be `@Stable`

2023-06-12 Thread Roger Riggs
On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg 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 simplifica

Re: RFR: 8295555: Primitive wrapper caches could be `@Stable`

2023-06-12 Thread Chen Liang
On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg 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 simplifica

Re: RFR: 8295555: Primitive wrapper caches could be `@Stable`

2023-06-12 Thread Per Minborg
On Mon, 12 Jun 2023 14:25:42 GMT, Per Minborg 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 simplifica

RFR: 8295555: Primitive wrapper caches could be `@Stable`

2023-06-12 Thread Per Minborg
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?