RFR: CODETOOLS-7903210: JOL: Minor code cleanups [v2]
Aleksey Shipilev
shade at openjdk.java.net
Tue Jun 14 14:44:21 UTC 2022
On Tue, 14 Jun 2022 01:33:02 GMT, Steafan Chou <duke at openjdk.java.net> wrote:
>> jol-benchmarks/src/main/java/org/openjdk/jol/GraphInstanceBench.java line 49:
>>
>>> 47: arr = new Integer[size];
>>> 48: for (int c = 0; c < size; c++) {
>>> 49: arr[c] = c;
>>
>> This boxing was intentional, please revert this hunk.
>
> I am revert this hunk,but I wonder why this is done on purpose.
Because we want allocations to be cobbled together, not referenced from the integer cache.
-------------
PR: https://git.openjdk.org/jol/pull/26
More information about the jol-dev
mailing list