RFR: 8349146: [REDO] Implement a better allocator for downcalls [v2]
Per Minborg
pminborg at openjdk.org
Wed Apr 30 07:38:39 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision:
- Break out stress thest and ProblemList it on macosx
- Merge branch 'master' into internal-allocator
- Remove interface level
- Add benchmark class with virtual executor
- Add rudimentary documentation
- Convert class to record and add @ForceInline
- Refactor and add benchmark
- Merge branch 'master' into internal-allocator
- Change set from previous PR
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24829/files
- new: https://git.openjdk.org/jdk/pull/24829/files/59e1f261..1e9d0460
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24829&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24829&range=00-01
Stats: 25178 lines in 770 files changed: 17686 ins; 4783 del; 2709 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