Project

General

Profile

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

wanabe (_ wanabe), 04/21/2014 03:20 PM

View differences:

gc.c
6078 6078
#endif
6079 6079
    }
6080 6080

  
6081
    if (type == MEMOP_TYPE_MALLOC) {
6081
    if (type == MEMOP_TYPE_MALLOC || type == MEMOP_TYPE_REALLOC) {
6082 6082
	if (ruby_gc_stress && !ruby_disable_gc_stress && ruby_native_thread_p()) {
6083 6083
	    garbage_collect_with_gvl(objspace, FALSE, TRUE, GPR_FLAG_MALLOC);
6084 6084
	}