** First allocation will fail except when freeing a block (frees never ** fail) and when it cannot try again; this fail will trigger 'tryagain' ** and a full GC cycle at every allocation. */
| 67 | ** and a full GC cycle at every allocation. |
| 68 | */ |
| 69 | static void *firsttry (global_State *g, void *block, size_t os, size_t ns) { |
| 70 | if (ns > 0 && cantryagain(g)) |
| 71 | return NULL; /* fail */ |
| 72 | else /* normal allocation */ |
| 73 | return callfrealloc(g, block, os, ns); |
| 74 | } |
| 75 | #else |
| 76 | #define firsttry(g,block,os,ns) callfrealloc(g, block, os, ns) |
| 77 | #endif |
no outgoing calls
no test coverage detected