This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Refactor `IgnoreObjectLocked`
AbandonedPublic

Authored by delcypher on Jan 6 2021, 5:38 PM.

Details

Summary

This refactors the chunk look up code into a static inlined function
called LookUpValidChunk().

This is in preparation for introducing functions that are the inverse
of the IgnoreObjectLocked() functions. These will be added in
a subsequent patch.

rdar://problem/63537240

Diff Detail

Event Timeline

delcypher requested review of this revision.Jan 6 2021, 5:38 PM
delcypher created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2021, 5:38 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Jan 6 2021, 5:43 PM
vitalybuka added inline comments.
compiler-rt/lib/asan/asan_allocator.cpp
1172

do we need ALWAYS_INLINE?

This revision is now accepted and ready to land.Jan 6 2021, 5:43 PM
delcypher added inline comments.Jan 6 2021, 5:47 PM
compiler-rt/lib/asan/asan_allocator.cpp
1172

Technically, no. I put it there because I thought it should probably be inlined (I wasn't sure if static would be a strong enough hint) but this is probably premature optimization on my part.

Please let me know if you'd like me to remove it.

Please remove and let compiler decide.
ALWAYS_INLINE may confuse future readers

delcypher abandoned this revision.Jan 21 2021, 4:05 PM

This change isn't needed anymore.