mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Don't allocate MAX_THREADS hash tables if not necessary
This prevent crashing on mobile devices with limited RAM, currently with MAX_THREADS = 32 we would need 44MB that could be too much for a poor cellphone. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -105,6 +105,7 @@ public:
|
||||
Thread& operator[](int threadID) { return threads[threadID]; }
|
||||
void init_threads();
|
||||
void exit_threads();
|
||||
void init_hash_tables();
|
||||
|
||||
int min_split_depth() const { return minimumSplitDepth; }
|
||||
int active_threads() const { return activeThreads; }
|
||||
|
||||
Reference in New Issue
Block a user