]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Start a TT resize only after search finished.
[stockfish] / src / thread.cpp
index e69120842c58f0be117c0b16e2c7800b14f54d26..f88e359b0373436db1f6c445f72f4b04448667e7 100644 (file)
@@ -136,10 +136,10 @@ void ThreadPool::set(size_t requested) {
       while (size() < requested)
           push_back(new Thread(size()));
       clear();
-  }
 
-  // Reallocate the hash with the new threadpool size
-  TT.resize(Options["Hash"]);
+      // Reallocate the hash with the new threadpool size
+      TT.resize(Options["Hash"]);
+  }
 }
 
 /// ThreadPool::clear() sets threadPool data to initial values.