summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Florian Mayer <fmayer@google.com> 2019-10-10 18:20:21 +0100
committer Florian Mayer <fmayer@google.com> 2019-10-11 09:39:41 +0000
commite828ea0553b3106598071239e8215fca63b15c9b (patch)
treee3f8f03eaa6ffc41135c00151f0126f72234bfd6
parentadb66f967432ff1f0d51726923a64943c9f1d35b (diff)
Make bitmap constants more explicit.
Test: build Change-Id: Iea6844929f10fd08fe1290ab67473e9134a20d10
-rw-r--r--runtime/gc_root.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/gc_root.h b/runtime/gc_root.h
index 32af62d5a5..8d8c32ce16 100644
--- a/runtime/gc_root.h
+++ b/runtime/gc_root.h
@@ -94,13 +94,14 @@ inline std::ostream& operator<<(std::ostream& os, const RootInfo& root_info) {
// The precise flag ensures that more metadata is supplied. An example is vreg data for compiled
// method frames.
enum VisitRootFlags : uint8_t {
- kVisitRootFlagAllRoots = 0x1,
- kVisitRootFlagNewRoots = 0x2,
- kVisitRootFlagStartLoggingNewRoots = 0x4,
- kVisitRootFlagStopLoggingNewRoots = 0x8,
- kVisitRootFlagClearRootLog = 0x10,
- kVisitRootFlagClassLoader = 0x20,
- kVisitRootFlagPrecise = 0x80,
+ kVisitRootFlagAllRoots = (1 << 0),
+ kVisitRootFlagNewRoots = (1 << 1),
+ kVisitRootFlagStartLoggingNewRoots = (1 << 2),
+ kVisitRootFlagStopLoggingNewRoots = (1 << 3),
+ kVisitRootFlagClearRootLog = (1 << 4),
+ kVisitRootFlagClassLoader = (1 << 5),
+ // There is no (1 << 6).
+ kVisitRootFlagPrecise = (1 << 7),
};
class RootVisitor {