Issue #9761 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r45653.

----------
gc.c: GC.stress after realloc

* gc.c (objspace_malloc_increase): run GC after realloc not only
  malloc and calloc by GC.stress.  [ruby-core:62103] [Feature #9761]

----------------------------------------
Feature #9761: TRY_WITH_GC with ruby_gc_stress
https://bugs.ruby-lang.org/issues/9761#change-46280

* Author: _ wanabe
* Status: Closed
* 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 `xmalloc()`/`xrealloc()`/`xcalloc()`.
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()`.

---Files--------------------------------
try_with_gc-with-gc_stress.patch (691 Bytes)
xrealloc-with-gc_stress.patch (456 Bytes)


-- 
https://bugs.ruby-lang.org/