jitcraft/GlobalRoots.cpp
changeset 69 dfce0539a77d
parent 65 7c942b5adebc
     1.1 --- a/jitcraft/GlobalRoots.cpp	Tue Jul 10 02:11:13 2012 -0700
     1.2 +++ b/jitcraft/GlobalRoots.cpp	Wed Jul 11 01:12:54 2012 -0700
     1.3 @@ -52,8 +52,10 @@
     1.4  GlobalRoots::create(Handle<Object> obj)
     1.5  {
     1.6      HeapRoot *root = new HeapRoot();
     1.7 -    if (!root)
     1.8 +    if (!root) {
     1.9 +        ZONE()->reportOutOfMemory();
    1.10          return NULL;
    1.11 +    }
    1.12  
    1.13      root->obj = obj;
    1.14      root->refcount = 1;