Bug 268421 - Avoid using x18 in WTF/libPAS assertions
Summary: Avoid using x18 in WTF/libPAS assertions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Degazio
URL:
Keywords: InRadar
: 258033 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-30 16:19 PST by David Degazio
Modified: 2024-01-31 10:00 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Degazio 2024-01-30 16:19:01 PST
rdar://121969027

When we fail a libPAS or WTF assertion, we write the reason and some associated data to specific registers so they show up in thread dumps or can be queried easily in debuggers. Currently, however, we naively pick the registers x16 through x22 on ARM64 targets, which includes the reserved platform register x18. Even if it's only on crash, we should avoid modifying this register to play nicely with any environments or operating system features that depend on this register for their own internal use.
Comment 1 David Degazio 2024-01-30 17:21:49 PST
Pull request: https://github.com/WebKit/WebKit/pull/23552
Comment 2 Ahmad Saleem 2024-01-30 19:39:23 PST
*** Bug 258033 has been marked as a duplicate of this bug. ***
Comment 3 EWS 2024-01-31 10:00:06 PST
Committed 273835@main (0806bfc07433): <https://commits.webkit.org/273835@main>

Reviewed commits have been landed. Closing PR #23552 and removing active labels.