You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Report successful ObjectCache replacements in destructor data
Summary: ObjectCache reports explicit removal, TTL reaping, and insertOrReplace through the same kRemoved destructor context. Add removedBySuccessfulReplacement so consumers can suppress work only when insertOrReplace actually installed a newer object. The old cache item is marked after insertOrReplace succeeds while its returned handle prevents the destructor from running. The marker uses an available bit in the existing atomic item flags, so the persisted item layout does not change across warm rolls.
Reviewed By: rlyerly
Differential Revision: D113092104
fbshipit-source-id: 87b4df52fd39e80e59bc5f8b54475ad332380f2e
0 commit comments