Project

General

Profile

Feature #9761 ยป try_with_gc-with-gc_stress.patch

wanabe (_ wanabe), 04/20/2014 01:39 AM

View differences:

gc.c
6166 6166
}
6167 6167

  
6168 6168
#define TRY_WITH_GC(alloc) do { \
6169
	if (!(alloc) && \
6170
	    (!garbage_collect_with_gvl(objspace, 1, 1, GPR_FLAG_MALLOC) || /* full mark && immediate sweep */ \
6171
	     !(alloc))) { \
6172
	    ruby_memerror(); \
6169
	if (!(alloc)) { \
6170
		if (!garbage_collect_with_gvl(objspace, 1, 1, GPR_FLAG_MALLOC) || /* full mark && immediate sweep */ \
6171
		    !(alloc)) { \
6172
		    ruby_memerror(); \
6173
		} \
6174
	} \
6175
	else if (ruby_gc_stress) { \
6176
		garbage_collect_with_gvl(objspace, 1, 1, GPR_FLAG_MALLOC); \
6173 6177
	} \
6174 6178
    } while (0)
6175 6179