When using the compiler memory limit with the crash suboption (e.g. `-XX:CompileCommand=MemLimit,*.*,1g~crash`), the JVM may fail to produce a replay file. We also may see partly corrupted hs-err files.
This happens if the memlimit was caused by growing ResourceAreas, not the node arena (c2). During handling of the limit, as well as when producing the replay file, we also use ResourceArea (mainly to copy strings around). If those RA usages cause another Arena chunk to be allocated, we are in recursion and will abort replay generation or abort error handling altogether if a stack overflow happens.