We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb2c5f commit b7e43c5Copy full SHA for b7e43c5
src/analyses/raceAnalysis.ml
@@ -369,7 +369,7 @@ struct
369
let special ctx (lvalOpt: lval option) (f:varinfo) (arglist:exp list) : D.t =
370
(* perform shallow and deep invalidate according to Library descriptors *)
371
let desc = LibraryFunctions.find f in
372
- if List.mem LibraryDesc.ThreadUnsafe desc.attrs then (
+ if List.mem LibraryDesc.ThreadUnsafe desc.attrs && not (ctx.ask (Queries.MustBeSingleThreaded {since_start=true})) then (
373
let exp = Lval (Var f, NoOffset) in
374
let conf = 110 in
375
let kind = AccessKind.Call in
0 commit comments