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
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
..
fbuffer
generator Fix GC compatibility: Don't stash encodings in global constants 2021-02-01 12:20:34 -08:00
lib Merge json-2.5.1 2020-12-22 21:51:15 +09:00
parser [json] Make json Ractor safe 2020-12-21 22:10:43 +09:00
depend
extconf.rb
json.gemspec expand VERSION path for ruby repository. 2020-12-17 14:37:45 +09:00
VERSION Merge json-2.5.1 2020-12-22 21:51:15 +09:00