[master] RFR: JDK-8303823: [Lilliput] Inline initial LockStack stack [v2]
Roman Kennke
rkennke at openjdk.org
Wed Mar 8 18:19:48 UTC 2023
On Wed, 8 Mar 2023 17:16:51 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Inlines the initial lock stack. This gives us:
>> - Much higher chance of cache hits when accessing lockstack slots via lockstack header.
>> - postponed malloc call
>> - we use actually less memory (not that it matters much) per thread since malloc overhead is at least 48 bytes per allocation, probably more.
>>
>> Also increases size of initial stack to two slots, and uses realloc instead of malloc+free when growing stack.
>
> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>
> make init cap 4
FWIW, I've applied the change to upstream fast-locking PR: https://github.com/openjdk/jdk/pull/10907/commits/3beabad3599291f02425be17a5168effb5552e94
-------------
PR: https://git.openjdk.org/lilliput/pull/80
More information about the lilliput-dev
mailing list