From ebfad012e6bf73333003996c783461e37da2556e Mon Sep 17 00:00:00 2001 From: Trent Lo Date: Thu, 12 Sep 2019 16:37:19 -0700 Subject: [PATCH] Add GUARDED_BY for GlobalJitLevelState. --- tensorflow/core/util/xla_config_registry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/util/xla_config_registry.cc b/tensorflow/core/util/xla_config_registry.cc index a3270620c02..6666f192098 100644 --- a/tensorflow/core/util/xla_config_registry.cc +++ b/tensorflow/core/util/xla_config_registry.cc @@ -22,7 +22,7 @@ namespace xla_config_registry { namespace { struct GlobalJitLevelState { mutex mu; - GlobalJitLevelGetterTy getter; + GlobalJitLevelGetterTy getter GUARDED_BY(mu); }; GlobalJitLevelState* GetSingletonState() {