smp crash fix | bench 1246472

This commit is contained in:
rektdie committed 2026-04-21 00:26:57 +02:00
1 parent f0b4e42f17
commit 24a36414f8
5 files changed
+112 -36

No files matched your search

+3 -5
View File
@@ -67,13 +67,11 @@ public:
TTable() : table(defaultHash) {};
void Resize(U64 size) {
table.resize(size);
table.assign(size, {});
}
void Clear() {
U64 size = table.size();
table.clear();
table.resize(size);
std::fill(table.begin(), table.end(), TTBucket());
}
void PrefetchEntry(U64 &hashKey) {
@@ -109,4 +107,4 @@ public:
void WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move bestMove, bool ttpv);
};
extern TTable SharedTT;
extern TTable SharedTT;