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 Merge json-2.0.4. 2017-04-12 00:21:18 +00:00
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
VERSION Merge json-2.5.1 2020-12-22 21:51:15 +09:00
depend Added depend files 2019-07-14 01:31:29 +09:00
extconf.rb Implement a freeze: parser option 2020-10-20 21:40:25 +09:00
json.gemspec expand VERSION path for ruby repository. 2020-12-17 14:37:45 +09:00