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

Thomas Stuefe stuefe at openjdk.org
Wed Mar 8 17:16:51 UTC 2023


> 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

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

Changes:
  - all: https://git.openjdk.org/lilliput/pull/80/files
  - new: https://git.openjdk.org/lilliput/pull/80/files/e59b24d8..03594036

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=lilliput&pr=80&range=01
 - incr: https://webrevs.openjdk.org/?repo=lilliput&pr=80&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/lilliput/pull/80.diff
  Fetch: git fetch https://git.openjdk.org/lilliput pull/80/head:pull/80

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


More information about the lilliput-dev mailing list