Project

General

Profile

This project is closed and read-only.

Actions

Backport #8554

closed

Backport r41325 (fix unexpected GC)

Backport #8554: Backport r41325 (fix unexpected GC)

Added by authorNari (Narihiro Nakamura) over 13 years ago. Updated over 13 years ago.


Description

taruiさんが入れてくださった r41325 のバックポートをお願いします。

LazySweep中にmalloc_increaseがクリアされておらず、LazySweep中にmallocが発生すると期待していないタイミングでGCが動いてしまっていました(GCの二度打ち)。
パッチは本チケットに添付しています。

また、このバックポートでmake rdocは以下のように速度改善するようです。
https://gist.github.com/authorNari/5829089


Files

ruby-200-backport-r41325.patch (2.4 KB) ruby-200-backport-r41325.patch authorNari (Narihiro Nakamura), 06/21/2013 02:57 PM

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #1 [ruby-dev:47460]

  • Subject changed from Backport r41325 to Backport r41325 (fix unexpected GC)
  • Status changed from Open to Assigned
  • Priority changed from Normal to 5

ありがとうございます。マージします。

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #2

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r41577.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 41325: [Backport #8554]

  • gc.c: Fixup around GC by MALLOC.
    Add allocate size to malloc_increase before GC
    for updating limit in after_gc_sweep.
    Reset malloc_increase into garbage_collect()
    for preventing GC again soon.
Actions

Also available in: PDF Atom