summaryrefslogtreecommitdiff
path: root/runtime/compat_framework.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/compat_framework.h')
-rw-r--r--runtime/compat_framework.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/compat_framework.h b/runtime/compat_framework.h
index bc628d2229..99a92151a7 100644
--- a/runtime/compat_framework.h
+++ b/runtime/compat_framework.h
@@ -19,6 +19,8 @@
#include <set>
+#include "base/macros.h"
+#include "base/mutex.h"
#include "base/string_view_cpp20.h"
namespace art {
@@ -37,6 +39,9 @@ class CompatFramework {
kLogged
};
+ CompatFramework();
+ ~CompatFramework();
+
void SetDisabledCompatChanges(const std::set<uint64_t>& disabled_changes) {
disabled_compat_changes_ = disabled_changes;
}
@@ -64,8 +69,9 @@ class CompatFramework {
// A set of disabled compat changes for the running app, all other changes are enabled.
std::set<uint64_t> disabled_compat_changes_;
- // A set of repoted compat changes for the running app.
- std::set<uint64_t> reported_compat_changes_;
+ // A set of reported compat changes for the running app.
+ std::set<uint64_t> reported_compat_changes_ GUARDED_BY(reported_compat_changes_lock_);
+ Mutex reported_compat_changes_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
};
} // namespace art