Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruby: Fix object cache lookups on 32-bit platforms
protocolbuffers#13204 refactored the Ruby object cache to use a key of `LL2NUM(key_val)` instead of `LL2NUM(key_val >> 2)`. On 32-bit systems, it appears that `LL2NUM(key_val)` returns inconsistent results, possibly due to overflow. This causes cache lookups to fail. This commit restores the previous behavior of using `ObjectCache_GetKey`, which discards the lower 2 bits, which are zero. Closes protocolbuffers#13481
- Loading branch information