RFR: 8329431: Improve speed of writing CDS heap objects [v4]
Ioi Lam
iklam at openjdk.org
Wed Apr 10 04:17:29 UTC 2024
On Wed, 10 Apr 2024 00:21:28 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
>> I changed to something like this:
>>
>> `new BufferOffsetToSourceObjectTable(/*size*/36137, /*max size*/1 * M)`
>
> My main confusion is why 36137 was chosen specifically. I figure it's a prime number to set as the initial size of the table?
Yes, it was chosen because it's a prime number. I added comments about that to the code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18572#discussion_r1558814754
More information about the hotspot-runtime-dev
mailing list