Bug 665354 followup: Revert s/0/NULL/ in jsgc.cpp to fix GCC warning. r=jorendorff
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 11 Aug 2011 11:47:50 -0700
changeset 74257 fbbf306c6cb57561152ab0a5feeda9a04ec96b5e
parent 74256 2012711170aa976cb48f2337f86b13060482f284
child 74258 6e0bd0a510ccf804513dc188d1278eb73bd12551
push id1144
push userdholbert@mozilla.com
push dateThu, 11 Aug 2011 18:48:17 +0000
treeherdermozilla-inbound@fbbf306c6cb5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs665354
milestone8.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 665354 followup: Revert s/0/NULL/ in jsgc.cpp to fix GCC warning. r=jorendorff
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -230,17 +230,17 @@ Arena::finalize(JSContext *cx)
 #ifdef DEBUG
                 nmarked++;
 #endif
                 if (newFreeSpanStart) {
                     JS_ASSERT(thing >= thingsStart(sizeof(T)) + sizeof(T));
                     newListTail->first = newFreeSpanStart;
                     newListTail->last = thing - sizeof(T);
                     newListTail = newListTail->nextSpanUnchecked(sizeof(T));
-                    newFreeSpanStart = NULL;
+                    newFreeSpanStart = 0;
                 }
             } else {
                 if (!newFreeSpanStart)
                     newFreeSpanStart = thing;
                 t->finalize(cx);
                 memset(t, JS_FREE_PATTERN, sizeof(T));
             }
         }