Bug 307825
| Summary: | [WTF] Support creating `WTF::Thread`s with a preallocated deferred-stack on ARM64E | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Marcus Plutowski <marcus_plutowski> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | REOPENED | ||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 308028 | ||
| Bug Blocks: | |||
Marcus Plutowski
rdar://170333133
In order to implement rdar://134795676, we need to be able to start a WTF::Thread on one stack A, then, during initialization, switch to another stack B through a trampoline.
This is because stack B will eventually have special memory protections (via os_thread_self_restrict_...), which would cause us to fault during pthread_create, as the OS does not know to correctly empower the thread to as part of thread-creation — so we need to do so ourselves, which means we need to be able to run on a ‘normal’ stack for at least a frame or two while we do so.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Marcus Plutowski
Pull request: https://github.com/WebKit/WebKit/pull/58644
EWS
Committed 307676@main (6d5322b005e5): <https://commits.webkit.org/307676@main>
Reviewed commits have been landed. Closing PR #58644 and removing active labels.
WebKit Commit Bot
Re-opened since this is blocked by bug 308028