Project

General

Profile

Feature #10295 ยป 0001-io.c-fptr_finalize-free-memory-before-GC-sweep.patch

normalperson (Eric Wong), 09/25/2014 10:47 AM

View differences:

io.c
return (int)(intptr_t)rb_thread_call_without_gvl(nogvl_fclose, file, RUBY_UBF_IO, 0);
}
static void free_io_buffer(rb_io_buffer_t *buf);
static void clear_codeconv(rb_io_t *fptr);
static void
fptr_finalize(rb_io_t *fptr, int noraise)
{
......
rb_exc_raise(err);
}
}
free_io_buffer(&fptr->rbuf);
free_io_buffer(&fptr->wbuf);
clear_codeconv(fptr);
}
static void
-
    (1-1/1)