[racerd] clarify C++/ObjC behaviour

Reviewed By: jvillard

Differential Revision: D27996744

fbshipit-source-id: dfcf1dbeb
master
Nikos Gorogiannis 4 years ago committed by Facebook GitHub Bot
parent 62215b81ce
commit 63ea040355

@ -1,6 +1,8 @@
RacerD finds data races in your C++ and Java code. This page gives a more in-depth
RacerD finds data races in your C++/Objective C and Java code. This page gives a more in-depth
explanation of how the analysis works *for Java code*, but may be less complete than the
[Thread Safety Violation bug description page](/docs/next/all-issue-types#thread_safety_violation).
For information on C++ and Objective C, see the
[Lock Consistency violation page](/docs/next/all-issue-types#lock_consistency_violation).
To run the analysis, you can use plain `infer` (to run RacerD along with other
analyses that are run by default) or `infer --racerd-only` (to run only RacerD).

@ -1,9 +1,8 @@
This is a C++ and Objective C error reported whenever:
This is an error reported on C++ and Objective C classes whenever:
- A class contains a member `lock` used for synchronization (most often a
`std::mutex`).
- It has a public method which writes to some member `x` while holding `lock`.
- It has a public method which reads `x` without holding `lock`.
- Some class method directly uses locking primitives (not transitively).
- It has a public method which writes to some member `x` while holding a lock.
- It has a public method which reads `x` without holding a lock.
The above may happen through a chain of calls. Above, `x` may also be a
container (an array, a vector, etc).

@ -918,7 +918,8 @@ let thread_safety_violation =
let thread_safety_violation_nullsafe =
register Warning ~id:"THREAD_SAFETY_VIOLATION_NULLSAFE" RacerD
~hum:"Thread Safety Violation in `@Nullsafe` Class"
~user_documentation:[%blob "../../documentation/issues/THREAD_SAFETY_VIOLATION.md"]
~user_documentation:
"A [Thread Safety Violation](#thread_safety_violation) in a `@Nullsafe` class."
let complexity_increase ~kind ~is_on_ui_thread =

Loading…
Cancel
Save