Skip to content

Remove Redundant Transposition Table Validity Check in Step 12 - #6986

Closed
FauziAkram wants to merge 1 commit into
official-stockfish:masterfrom
FauziAkram:validPR
Closed

Remove Redundant Transposition Table Validity Check in Step 12#6986
FauziAkram wants to merge 1 commit into
official-stockfish:masterfrom
FauziAkram:validPR

Conversation

@FauziAkram

Copy link
Copy Markdown
Contributor

This check is completely redundant because the condition already verifies ttData.bound & BOUND_LOWER, isn't it?

A lower-bound entry is only recorded when a valid transposition table value has been successfully retrieved during a transposition table hit.

No functional change

No functional change
@dubslow

dubslow commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Haven't we had this discussion already in a still-open PR? Threading means sometimes the tt entries we read can be corrupted/inconsistent, so we cannot rely on one part of the entry to validate another. See also #6720.

However I'm not sure how accurate the previous paragraph is after the relaxed atomics change. Do we still have tt races on typical stockfish hardware?

@anematode

anematode commented Jul 18, 2026

Copy link
Copy Markdown
Member

Do we still have tt races on typical stockfish hardware?

Yes

The consistency of two members of the same TTEntry can never be guaranteed

@FauziAkram FauziAkram closed this Jul 19, 2026
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.

3 participants