RFR: 8344168: Change Unsafe base offset from int to long

Shaojin Wen swen at openjdk.org
Thu Nov 14 14:38:09 UTC 2024


On Thu, 14 Nov 2024 13:44:10 GMT, Chen Liang <liach at openjdk.org> wrote:

> I think you should convert all array index scales to long too. They are susceptible to the same overflow problem (actually more susceptible as they involve in integer multiplications)

Changing the index scale to long type will cause a lot of code related to ArraysSupport.vectorizedMismatch to change. There are too many places to change and I am not sure.

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

PR Comment: https://git.openjdk.org/jdk/pull/22095#issuecomment-2476510756


More information about the core-libs-dev mailing list