Steve Fink wrote:

Another (maybe silly) possibility suggested itself to me based on a
private mail re: infant mortality from Thomas Whateley: could we try
optimistic allocations?

      if (alloc_object() == NULL) {
        undo everything
        do_DOD_run
        interp->on_alloc_fail = CRASH_AND_BURN
        start over
      }
What if e.g. clone needs more headers then one dod run can provide? With CRASH_AND_BURN it would not succeed. With RETURN_NULL it would start over and over again, until objects_per_alloc increases the needed header count.

leo


Reply via email to