Skip to content

Remove dead rehash check #13958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged

Remove dead rehash check #13958

merged 1 commit into from
Jul 18, 2025

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Jul 18, 2025

Hash#rehash checks whether the hash is iterating, and with VWA,
RHASH_ST_TABLE() always returns the same thing for the same
hash.

RHASH_ST_TABLE(VALUE h)
{
    return (st_table *)((uintptr_t)h + sizeof(struct RHash));
}

So this check never runs.

Hash#rehash checks whether the hash is iterating, and with VWA,
RHASH_ST_TABLE() always returns the same thing for the same
hash.

    RHASH_ST_TABLE(VALUE h)
    {
        return (st_table *)((uintptr_t)h + sizeof(struct RHash));
    }

So this check never runs.
@XrXr XrXr enabled auto-merge (rebase) July 18, 2025 21:55
@XrXr XrXr disabled auto-merge July 18, 2025 22:01
@XrXr XrXr enabled auto-merge (squash) July 18, 2025 22:03
Copy link

Tests Failed

✖️no tests failed ✔️62093 tests passed(1 flake)

@XrXr XrXr merged commit b49ae45 into ruby:master Jul 18, 2025
88 of 90 checks passed
@XrXr XrXr deleted the dead-st-rehash-check branch July 18, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy