Skip to content

Conversation

@eregon
Copy link
Contributor

@eregon eregon commented Nov 22, 2021

Summary

  • This works whether the Ruby implementation raises or uses a Hash with
    a default of 0 to represent unknown keys (like TruffleRuby) and so
    this is more portable.
  • Also avoids an extra exception on JRuby.

Related to #43502 (comment), cc @casperisfine

cc @bjfish (FYI)

* This works whether the Ruby implementation raises or uses a Hash with
  a default of 0 to represent unknown keys (like TruffleRuby) and so
  this is more portable.
* Also avoids an extra exception on JRuby.
@byroot byroot merged commit 8337645 into rails:main Nov 22, 2021
@eregon eregon deleted the improve-total_allocated_objects-check branch November 22, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants