[master] Integrated: JDK-8303823: [Lilliput] Inline initial LockStack stack
Thomas Stuefe
stuefe at openjdk.org
Wed Mar 8 20:43:38 UTC 2023
On Wed, 8 Mar 2023 13:10:35 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.
This pull request has now been integrated.
Changeset: a4b8dbbd
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/lilliput/commit/a4b8dbbda42474f06ae408e96a7faf884d6900b9
Stats: 16 lines in 2 files changed: 8 ins; 2 del; 6 mod
8303823: [Lilliput] Inline initial LockStack stack
Reviewed-by: rkennke
-------------
PR: https://git.openjdk.org/lilliput/pull/80
More information about the lilliput-dev
mailing list