Author: [email protected]
Date: Tue May  5 07:38:33 2009
New Revision: 1868

Modified:
    branches/bleeding_edge/src/heap-inl.h

Log:
Make sure to report out-of-memory situations when the
heap returns RetryAfterGC even when forced to always
allocate.
Review URL: http://codereview.chromium.org/109023

Modified: branches/bleeding_edge/src/heap-inl.h
==============================================================================
--- branches/bleeding_edge/src/heap-inl.h       (original)
+++ branches/bleeding_edge/src/heap-inl.h       Tue May  5 07:38:33 2009
@@ -251,11 +251,11 @@
        __object__ = FUNCTION_CALL;                                         \
      }                                                                     \
      if (!__object__->IsFailure()) RETURN_VALUE;                           \
-    if (__object__->IsOutOfMemoryFailure()) {                             \
+    if (__object__->IsOutOfMemoryFailure() ||                             \
+        __object__->IsRetryAfterGC()) {                                   \
        /* TODO(1181417): Fix this. */                                      \
        v8::internal::V8::FatalProcessOutOfMemory("CALL_AND_RETRY_2");      \
      }                                                                     \
-    ASSERT(!__object__->IsRetryAfterGC());                                \
      RETURN_EMPTY;                                                         \
    } while (false)


--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to