summaryrefslogtreecommitdiffstats
path: root/runtime/globals.h
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-01-31 13:35:49 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2014-02-25 13:56:48 -0800
commit9d04a20bde1b1855cefc64aebc1a44e253b1a13b (patch)
tree85b8315677c3d6545ac6c8b27db7cb00b82e68b7 /runtime/globals.h
parent0f8aa6b38f204ccacd3ac12bb844e628cec2215b (diff)
downloadart-9d04a20bde1b1855cefc64aebc1a44e253b1a13b.zip
art-9d04a20bde1b1855cefc64aebc1a44e253b1a13b.tar.gz
art-9d04a20bde1b1855cefc64aebc1a44e253b1a13b.tar.bz2
(Experimental) Add Brooks pointers.
This feature is disabled by default. Verified that the Brooks pointers are installed correctly by using the CMS/SS collectors. Change-Id: Ia9be9814ab6e29169ac85edc4792ce8c81d552a9
Diffstat (limited to 'runtime/globals.h')
-rw-r--r--runtime/globals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/globals.h b/runtime/globals.h
index 8c3ae56..83e3028 100644
--- a/runtime/globals.h
+++ b/runtime/globals.h
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <stdint.h>
+#include "brooks_pointer.h"
namespace art {
@@ -92,6 +93,12 @@ static constexpr bool kMovingMethods = false;
// code, if possible.
static constexpr bool kEmbedClassInCode = true;
+#ifdef USE_BROOKS_POINTER
+static constexpr bool kUseBrooksPointer = true;
+#else
+static constexpr bool kUseBrooksPointer = false;
+#endif
+
} // namespace art
#endif // ART_RUNTIME_GLOBALS_H_