Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.15.1
Choose a base ref
...
head repository: ruby/json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.15.2
Choose a head ref
  • 3 commits
  • 6 files changed
  • 1 contributor

Commits on Oct 25, 2025

  1. Fix concurrent usage of JSON::Coder#dump

    Fix: rails/rails@9061627#r168784389
    
    Because the `depth` counter is inside `JSON::State` it can't be used
    concurrently, and in case of a circular reference the counter may be
    left at the max value.
    
    The depth counter should be moved outside `JSON_Generator_State` and
    into `struct generate_json_data`, but it's a larger refactor.
    
    In the meantime, `JSON::Coder` calls `State#generate_new` so I changed
    that method so that it first copy the state on the stack.
    byroot committed Oct 25, 2025
    Configuration menu
    Copy the full SHA
    aefa671 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #874 from byroot/coder-reset-nesting

    Fix concurrent usage of JSON::Coder#dump
    byroot authored Oct 25, 2025
    Configuration menu
    Copy the full SHA
    30969be View commit details
    Browse the repository at this point in the history
  3. Release 2.15.2

    byroot committed Oct 25, 2025
    Configuration menu
    Copy the full SHA
    5e61cd7 View commit details
    Browse the repository at this point in the history
Loading