Skip to content

Commit

Permalink
use ImplicitSynchronized as appropriate
Browse files Browse the repository at this point in the history
Summary:
To incrementally codemod away `folly::Synchronized`'s `operator->`,
and prevent new uses of `operator->`, migrate code that uses
`operator->` to `ImplicitSynchronized`.

See D48277297 and D32302068 for further context.

Reviewed By: Gownta

Differential Revision: D48278592

fbshipit-source-id: 09f9ae0f0411cede4f61279fe561620aae230f12
  • Loading branch information
chadaustin authored and facebook-github-bot committed Sep 17, 2024
1 parent db6a82f commit 2a08e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hphp/runtime/vm/jit/inlining-decider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Vcost computeTranslationCostSlow(SrcKey at,
return irlower::computeIRUnitCost(*unit);
}

folly::Synchronized<InlineCostCache> s_inlCostCache;
folly::ImplicitSynchronized<InlineCostCache> s_inlCostCache;

int computeTranslationCost(SrcKey at,
const RegionDesc& region,
Expand Down

0 comments on commit 2a08e4e

Please sign in to comment.