This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add memory fences to device-local locking calls
ClosedPublic

Authored by JonChesterfield on Jun 22 2023, 9:30 AM.

Details

Summary

This makes the interface less error prone. The acquire was previously
forgotten. Release is currently missing if recv() is the last operation made
before close.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 22 2023, 9:30 AM
JonChesterfield requested review of this revision.Jun 22 2023, 9:30 AM
  • clang-format
jhuber6 accepted this revision.Jun 22 2023, 9:38 AM
jhuber6 added inline comments.
libc/src/__support/RPC/rpc.h
188–194

LLVM style has no braces around single line ifs.

531

Why was this removed

This revision is now accepted and ready to land.Jun 22 2023, 9:38 AM
  • drop braces around condition
libc/src/__support/RPC/rpc.h
531

Writing the comment out twice seems excessive. This makes this code match the copy&paste in the other class too.

This revision was landed with ongoing or failed builds.Jun 22 2023, 9:46 AM
This revision was automatically updated to reflect the committed changes.