Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 May 2005 00:29:30 +0000 (00:29 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 May 2005 00:29:30 +0000 (00:29 +0000)
<rdar://problem/4086570> Crash in JavaScriptCore with RSS Visualizer

        * kjs/internal.cpp:
        (InterpreterImp::mark): mark staticNaN, it is usually protected by the Number
prototype but there is a small window where it can get collected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9115 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/internal.cpp

index 71d38e644917a4939f210b4379c3a95e3c2e6e1b..e65fe7e6cd879fe38a42f5dbab726356e95f1ddf 100644 (file)
@@ -1,3 +1,13 @@
+2005-05-04  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Darin.
+
+       <rdar://problem/4086570> Crash in JavaScriptCore with RSS Visualizer
+       
+        * kjs/internal.cpp:
+        (InterpreterImp::mark): mark staticNaN, it is usually protected by the Number
+       prototype but there is a small window where it can get collected.
+
 2005-05-04  Darin Adler  <darin@apple.com>
 
         Reviewed by Dave Hyatt.
index 40477f751a04f63edbb533ef11b197b816f9e35a..12adc7786212d59e54998b9d48d0587932e11bfa 100644 (file)
@@ -753,6 +753,8 @@ void InterpreterImp::mark()
     UndefinedImp::staticUndefined->mark();
   if (NullImp::staticNull && !NullImp::staticNull->marked())
     NullImp::staticNull->mark();
+  if (NumberImp::staticNaN && !NumberImp::staticNaN->marked())
+    NumberImp::staticNaN->mark();
   if (BooleanImp::staticTrue && !BooleanImp::staticTrue->marked())
     BooleanImp::staticTrue->mark();
   if (BooleanImp::staticFalse && !BooleanImp::staticFalse->marked())