mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Retire ThreadsManager::init_hash_tables()
Allocation of pawn and material hash tables should be strictly bounded to the change of the number of activeThreads, so move the code inside set_size(). No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-3
@@ -409,9 +409,7 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
|
||||
read_evaluation_uci_options(pos.side_to_move());
|
||||
Threads.read_uci_options();
|
||||
|
||||
// Allocate pawn and material hash tables if number of active threads
|
||||
// increased and set a new TT size if changed.
|
||||
Threads.init_hash_tables();
|
||||
// Set a new TT size if changed
|
||||
TT.set_size(Options["Hash"].value<int>());
|
||||
|
||||
if (Options["Clear Hash"].value<bool>())
|
||||
|
||||
Reference in New Issue
Block a user