This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Use getMonotonicTimeFast for tryLock.
ClosedPublic

Authored by cferris on Jun 28 2023, 7:50 PM.

Details

Summary

In tryLock, the Precedence value is set using the fast time function
now. This should speed up tryLock calls slightly.

This should be okay even though the value is used as a kind of random
value in getTSDAndLockSlow. The fast time call still sets enough bits
to avoid getting the same TSD on every call.

Diff Detail

Event Timeline

cferris created this revision.Jun 28 2023, 7:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 7:50 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
cferris requested review of this revision.Jun 28 2023, 7:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 7:50 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
Chia-hungDuan accepted this revision.Jun 28 2023, 9:00 PM
This revision is now accepted and ready to land.Jun 28 2023, 9:00 PM
This revision was automatically updated to reflect the committed changes.