summaryrefslogtreecommitdiffstats
path: root/runtime/utils.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-07-14 14:57:16 -0700
committerMathieu Chartier <mathieuc@google.com>2014-07-16 12:34:43 -0700
commit4c13a3ff475f206c4d0a86ee2595c45392fd942f (patch)
tree5a96dff1dd5952aa70c2f25de46ea89d93e9225b /runtime/utils.h
parent524e5e3815d2b16ee77beda9976b7ec3aa54aba6 (diff)
downloadart-4c13a3ff475f206c4d0a86ee2595c45392fd942f.tar.gz
art-4c13a3ff475f206c4d0a86ee2595c45392fd942f.tar.bz2
art-4c13a3ff475f206c4d0a86ee2595c45392fd942f.zip
Disable adding main and non moving spaces to immune region in GSS
Disabled adding the main and non moving space to the immune region. This will enable us to recycle bump pointer spaces for malloc space -> malloc space compaction as well as collector transitions. Also added logic for falling back to the non moving space, we may copy objects there. Refactored mod union table logic into MarkReachableObjects. No measurable performance benefit or regression. Bug: 14059466 Bug: 16291259 Change-Id: If663d9fdbde943b988173b7f6ac844e5f78a0327
Diffstat (limited to 'runtime/utils.h')
-rw-r--r--runtime/utils.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/utils.h b/runtime/utils.h
index b47de81d62..2ea4953f2a 100644
--- a/runtime/utils.h
+++ b/runtime/utils.h
@@ -167,8 +167,7 @@ struct TypeIdentity {
// For rounding integers.
template<typename T>
-static constexpr T RoundDown(T x, typename TypeIdentity<T>::type n)
- __attribute__((warn_unused_result));
+static constexpr T RoundDown(T x, typename TypeIdentity<T>::type n) WARN_UNUSED;
template<typename T>
static constexpr T RoundDown(T x, typename TypeIdentity<T>::type n) {
@@ -178,8 +177,7 @@ static constexpr T RoundDown(T x, typename TypeIdentity<T>::type n) {
}
template<typename T>
-static constexpr T RoundUp(T x, typename TypeIdentity<T>::type n)
- __attribute__((warn_unused_result));
+static constexpr T RoundUp(T x, typename TypeIdentity<T>::type n) WARN_UNUSED;
template<typename T>
static constexpr T RoundUp(T x, typename TypeIdentity<T>::type n) {
@@ -188,7 +186,7 @@ static constexpr T RoundUp(T x, typename TypeIdentity<T>::type n) {
// For aligning pointers.
template<typename T>
-static inline T* AlignDown(T* x, uintptr_t n) __attribute__((warn_unused_result));
+static inline T* AlignDown(T* x, uintptr_t n) WARN_UNUSED;
template<typename T>
static inline T* AlignDown(T* x, uintptr_t n) {
@@ -196,7 +194,7 @@ static inline T* AlignDown(T* x, uintptr_t n) {
}
template<typename T>
-static inline T* AlignUp(T* x, uintptr_t n) __attribute__((warn_unused_result));
+static inline T* AlignUp(T* x, uintptr_t n) WARN_UNUSED;
template<typename T>
static inline T* AlignUp(T* x, uintptr_t n) {