Bug 276648

Summary: Provide debug hook to override threadSelfRestrict* functions
Product: WebKit Reporter: Marcus Plutowski <marcus_plutowski>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Marcus Plutowski
Reported 2024-07-15 22:25:21 PDT
rdar://131809314 Specifically threadSelfRestrictRwxToRx, threadSelfRestrictRwxToRw, and threadSelfRestrictSupported, from within FastJITPermissions.h. These functions are called whenever the JIT linker needs to write to the executable portion of memory; adding hooks at those points would help debug, especially when it's necessary to observe transitions between those states or test edge-case behavior.
Attachments
Marcus Plutowski
Comment 1 2024-07-16 16:16:32 PDT
EWS
Comment 2 2024-07-16 18:46:22 PDT
Committed 281033@main (9e6ac9c6050a): <https://commits.webkit.org/281033@main> Reviewed commits have been landed. Closing PR #30879 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.