RFR: 8349146: [REDO] Implement a better allocator for downcalls [v4]

Per Minborg pminborg at openjdk.org
Wed Apr 30 10:55:41 UTC 2025


> This PR is based on the work of @mernst-github and aims to implement an _internal_ thread-local 'stack' allocator, which works like a dynamically sized arena, but with reset functionality to reset the allocated size back to a certain level. The underlying memory could stay around between calls, which could improve performance.
> 
> Re-allocated segments are not zeroed between allocations.

Per Minborg has updated the pull request incrementally with one additional commit since the last revision:

  Add test coverage and add convenience methods

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24829/files
  - new: https://git.openjdk.org/jdk/pull/24829/files/101882d5..b1b84282

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24829&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24829&range=02-03

  Stats: 340 lines in 3 files changed: 331 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/24829.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24829/head:pull/24829

PR: https://git.openjdk.org/jdk/pull/24829


More information about the core-libs-dev mailing list