Commit d4c9316
Suppress benign TSan race in SlabAllocator::getRandomAlloc()
Summary:
Add a TSan annotation to the allocSize read in getRandomAlloc().
This sampling function is best-effort: slab headers can transition
between allocation classes during slab release/rebalance, but callers
validate the sampled item before using it. A racing allocSize read
produces at worst an invalid sample (returned as nullptr or rejected
by the caller's lookup validation). The same annotation pattern is
already used in this file for nearby speculative reads.
___
overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: oil
Differential Revision: D103780529
fbshipit-source-id: 106a8ee1830e23aee4c18e00e49c684ebcbecaa01 parent 3424d26 commit d4c9316
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
475 | 481 | | |
476 | 482 | | |
477 | 483 | | |
| |||
0 commit comments