Bug 287984
| Summary: | [libpas] Add hook to scavenger to allow other libraries to schedule work for it | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Marcus Plutowski <marcus_plutowski> |
| Component: | bmalloc | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ggaren, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Marcus Plutowski
rdar://145154078
The new arena allocator will need functionality equivalent to the libpas scavenger. However, it doesn’t make sense to add a new thread for two reasons:
1. Unnecessary scheduling / memory overhead
2. The libpas scavenger is heavily tuned for performance, no need to duplicate that effort (and potentially perturb it)
To enable other components to use the scavenger, we should add a hook that allows other components to schedule work for the scavenger to do at a later date, across the libpas library boundary.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Marcus Plutowski
Pull request: https://github.com/WebKit/WebKit/pull/40971
EWS
Committed 290978@main (c7d6142e894f): <https://commits.webkit.org/290978@main>
Reviewed commits have been landed. Closing PR #40971 and removing active labels.