Reviewed by Mark Rowe.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2007 22:40:00 +0000 (22:40 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2007 22:40:00 +0000 (22:40 +0000)
        Fixed last check-in to print in release builds, too.

        * kjs/collector.cpp:
        (KJS::getPlatformThreadRegisters):

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/collector.cpp

index 2ea48ef..ef967e2 100644 (file)
@@ -1,5 +1,14 @@
 2007-04-10  Geoffrey Garen  <ggaren@apple.com>
 
+        Reviewed by Mark Rowe.
+        
+        Fixed last check-in to print in release builds, too.
+
+        * kjs/collector.cpp:
+        (KJS::getPlatformThreadRegisters):
+
+2007-04-10  Geoffrey Garen  <ggaren@apple.com>
+
         Reviewed by John Sullivan, Darin Adler.
         
         Fixed <rdar://problem/5121899> JavaScript garbage collection leads to 
index eb8f4b8..04b4890 100644 (file)
@@ -500,7 +500,8 @@ size_t getPlatformThreadRegisters(const PlatformThread& platformThread, Platform
 
   kern_return_t result = thread_get_state(platformThread, flavor, (thread_state_t)&regs, &user_count);
   if (result != KERN_SUCCESS) {
-    LOG_ERROR("JavaScript garbage collection failed because thread_get_state returned an error (%d). This is probably the result of running inside Rosetta, which is not supported.", result);
+    WTFReportFatalError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, 
+                        "JavaScript garbage collection failed because thread_get_state returned an error (%d). This is probably the result of running inside Rosetta, which is not supported.", result);
     CRASH();
   }
   return user_count * sizeof(usword_t);