FIX: ensure output is flushed when producing heap dumps
This commit is contained in:
parent
2b1ee800ff
commit
edc8919aaa
|
@ -1421,6 +1421,8 @@ rb_heap_snapshot(VALUE self, VALUE file) {
|
|||
FileOutputStream stream(fp);
|
||||
snap->Serialize(&stream, HeapSnapshot::kJSON);
|
||||
|
||||
fflush(fp);
|
||||
|
||||
const_cast<HeapSnapshot*>(snap)->Delete();
|
||||
|
||||
return Qtrue;
|
||||
|
|
Loading…
Reference in New Issue