Bug 850749 - Make Cell::isTenured use the new IsInsideNursery; r=billm
authorTerrence Cole <terrence@mozilla.com>
Wed, 13 Mar 2013 10:22:35 -0700
changeset 125474 08217bf1ddc78540f4201d856d67cb5e5c9e1a5a
parent 125473 c132f3957827d443698dbd9bf722e4baa0897a87
child 125475 704c1658d47eb6fb04696bd5112dad6a045537e9
push id24459
push useremorley@mozilla.com
push dateWed, 20 Mar 2013 11:46:36 +0000
treeherdermozilla-central@1d6fe70c79c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs850749
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 850749 - Make Cell::isTenured use the new IsInsideNursery; r=billm
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -281,17 +281,17 @@ ArenaHeader::checkSynchronizedWithFreeLi
      * empty and also points to this arena. Thus they must the same.
      */
     JS_ASSERT(firstSpan.isSameNonEmptySpan(list));
 }
 
 bool
 js::gc::Cell::isTenured() const
 {
-    return true;
+    return !IsInsideNursery(runtime(), this);
 }
 #endif
 
 /* static */ void
 Arena::staticAsserts()
 {
     JS_STATIC_ASSERT(sizeof(Arena) == ArenaSize);
     JS_STATIC_ASSERT(JS_ARRAY_LENGTH(ThingSizes) == FINALIZE_LIMIT);