Forum: Ruby-core [Feedback] TRY_WITH_GC with ruby_gc_stress

F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-04-21 03:05
(Received via mailing list)
Issue #9761 has been updated by Nobuyoshi Nakada.

Status changed from Open to Feedback

Seems `objspace_malloc_increase()` already runs GC after `xmalloc` and
`xcalloc` if `ruby_gc_stress` is set.
You may want it to run after `xrealloc` too?
Or to run full marking?

Feature #9761: TRY_WITH_GC with ruby_gc_stress

* Author: _ wanabe
* Status: Feedback
* Priority: Normal
* Assignee:
* Category: core
* Target version:
I hope `TRY_WITH_GC()` may use `ruby_gc_stress` value.

Currently, `ruby_gc_stress` doesn't affect simple
It is usefull to make these functions under gc-stress.
For example, #9657 is difficult to reproduce on trunk because there is
not object creation but memory allocation after `BigDecimal_new()`.

try_with_gc-with-gc_stress.patch (691 Bytes)
This topic is locked and can not be replied to.