File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -185,17 +185,17 @@ class Symbolizer final {
185
185
class ModuleNameOwner {
186
186
public:
187
187
explicit ModuleNameOwner (Mutex *synchronized_by)
188
- : last_match_( nullptr ), mu_(synchronized_by ) {
188
+ : mu_(synchronized_by ), last_match_( nullptr ) {
189
189
storage_.reserve (kInitialCapacity );
190
190
}
191
191
const char *GetOwnedCopy (const char *str);
192
192
193
193
private:
194
194
static const uptr kInitialCapacity = 1000 ;
195
- InternalMmapVector<const char *> storage_;
196
- const char *last_match_;
197
195
198
196
Mutex *mu_;
197
+ const char *last_match_ SANITIZER_GUARDED_BY (mu_);
198
+ InternalMmapVector<const char *> storage_ SANITIZER_GUARDED_BY (*mu_);
199
199
} module_names_;
200
200
201
201
// / Platform-specific function for creating a Symbolizer object.
@@ -220,7 +220,7 @@ class Symbolizer final {
220
220
// always synchronized.
221
221
Mutex mu_;
222
222
223
- IntrusiveList<SymbolizerTool> tools_;
223
+ IntrusiveList<SymbolizerTool> tools_ SANITIZER_GUARDED_BY (mu_) ;
224
224
225
225
explicit Symbolizer (IntrusiveList<SymbolizerTool> tools);
226
226
You can’t perform that action at this time.
0 commit comments