1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/json/generator
Aaron Patterson 8ef30bcc04
Fix GC compatibility: Don't stash encodings in global constants
This value should either be pinned, or looked up when needed at runtime.
Without pinning, the GC may move the encoding object, and that could
cause a crash.

In this case it is easier to find the value at runtime, and there is no
performance penalty (as Ruby caches encoding indexes).  We can shorten
the code, be compaction friendly, and incur no performance penalty.
2021-02-01 12:20:34 -08:00
..
depend sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
extconf.rb
generator.c Fix GC compatibility: Don't stash encodings in global constants 2021-02-01 12:20:34 -08:00
generator.h Add an option to escape forward slash character 2020-09-25 17:28:42 +09:00