diff -r b40b0e18a918 -r dfce0539a77d jitcraft/Heap.cpp --- a/jitcraft/Heap.cpp Tue Jul 10 02:11:13 2012 -0700 +++ b/jitcraft/Heap.cpp Wed Jul 11 01:12:54 2012 -0700 @@ -71,7 +71,7 @@ Address addr = mapSpace_.allocate(actualBytes); if (!addr) { - assert(false); + reportOutOfMemory(); return NULL; } @@ -367,3 +367,9 @@ mark(); sweep(); } + +void +Heap::reportOutOfMemory() +{ + zone_->reportOutOfMemory(); +}