This is an archive of the discontinued LLVM Phabricator instance.

Refactor cxa_guard.cpp
AbandonedPublic

Authored by EricWF on Mar 31 2019, 5:47 PM.

Details

Summary

The implementation of __cxa_guard_acquire is a mess. This patch attempts to clean it up. No functionality change is intended.

This cleanup is motivated by upcoming changes. Specifically changes to allow libc++abi to tolerate when pthread_mutex_lock is being intercepted.

Diff Detail

Event Timeline

EricWF created this revision.Mar 31 2019, 5:47 PM
EricWF updated this revision to Diff 193047.Apr 1 2019, 12:47 AM
  • Fix layout incongruity for non-apple platforms.
  • Various cleanups.
EricWF updated this revision to Diff 193049.Apr 1 2019, 12:59 AM
  • Misc cleanup.
EricWF abandoned this revision.Apr 5 2019, 12:57 PM

Abandoning...

I landed these changes as a series of smaller cleanups.