Project

General

Profile

Actions

Feature #10295

closed

[PATCH] io.c (fptr_finalize): free memory (before GC sweep)

Added by normalperson (Eric Wong) over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Target version:
-
[ruby-core:65269]

Description

Note: just committed r47712 which was trivial.
This passes tests, too, but I would appreciate another set of eyes
in case there's a subtle finalization issue I'm missing.

This releases memory on explict calls to rb_io_close,
reducing pressure on the GC.

Final massif snapshot shows reduced heap usage after RubyGems load
(valgrind --tool=massif ./ruby -e exit)

before:
mem_heap_B=4821992
mem_heap_extra_B=1302952

after:
mem_heap_B=4791056
mem_heap_extra_B=1192440


Files

Actions #2

Updated by hsbt (Hiroshi SHIBATA) almost 9 years ago

  • Status changed from Open to Assigned
  • Assignee set to normalperson (Eric Wong)

Updated by normalperson (Eric Wong) almost 9 years ago

  • Status changed from Assigned to Closed

r47758

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0