This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add PAUSE instruction for the RPC spin loop
ClosedPublic

Authored by jhuber6 on Jul 28 2023, 12:47 PM.

Details

Summary

The other architectures use a brief sleep to defer work during this spin
loop that checks the RPC mailboxes. This patch adds one for x64 to
improve usage when running the server.

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 28 2023, 12:47 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 28 2023, 12:47 PM
jhuber6 requested review of this revision.Jul 28 2023, 12:47 PM
tianshilei1992 accepted this revision.Jul 28 2023, 1:19 PM
This revision is now accepted and ready to land.Jul 28 2023, 1:19 PM
jhuber6 updated this revision to Diff 545270.Jul 28 2023, 1:57 PM

Switch to builtin version

This revision was automatically updated to reflect the committed changes.