Peter Zhu

Results 25 issues of Peter Zhu

An external GC library should not be loaded in the case of `ruby -- --gc-library=foo`.

We only collect GC.stat_heap(nil, stat_heap_all) once, outside of the loop, but assert_equal could allocate objects which can cause a GC to run and cause stat_heap_all to be out-of-sync.

In the Ruby core repository, all errors get automatically linked except [LoadError](https://docs.ruby-lang.org/en/master/LoadError.html). For example, the following RDoc: ``` LoadError SyntaxError ``` Generates: I'm on RDoc 6.7.0.

The callers were abusing them and passing data into the objspace argument.

This commit moves checks to RB_SPECIAL_CONST_P out of the GC implementation and into gc.c.