X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=43a38e804d83e698d04345bb084162728f95a59e;hp=cab2d382f1737da5da250e304fcd6e4627b10cd6;hb=6cc56141245abec88861e38e0a44615e4d675813;hpb=d7022031130ef84b801e087c1804d0cf05bc369b diff --git a/src/thread.cpp b/src/thread.cpp index cab2d382..43a38e80 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -26,6 +26,7 @@ #include "thread.h" #include "uci.h" #include "syzygy/tbprobe.h" +#include "tt.h" ThreadPool Threads; // Global object @@ -136,6 +137,9 @@ void ThreadPool::set(size_t requested) { push_back(new Thread(size())); clear(); } + + // Reallocate the hash with the new threadpool size + TT.resize(Options["Hash"]); } /// ThreadPool::clear() sets threadPool data to initial values.