[master] RFR: JDK-8303823: [Lilliput] Inline initial LockStack stack [v2]

Roman Kennke rkennke at openjdk.org
Wed Mar 8 18:09:43 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

Looks good, thanks!

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

Marked as reviewed by rkennke (Lead).

PR: https://git.openjdk.org/lilliput/pull/80


More information about the lilliput-dev mailing list