mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Move ThreadsManager::exit() to d'tor
And add final touches to this long patch series. All the series has been verified against regression with 20K games at fast TC. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
4
src/tt.h
4
src/tt.h
@@ -139,7 +139,7 @@ inline void TranspositionTable::refresh(const TTEntry* tte) const {
|
||||
|
||||
/// A simple fixed size hash table used to store pawns and material
|
||||
/// configurations. It is basically just an array of Entry objects.
|
||||
/// Without cluster concept or overwrite policy.
|
||||
/// Without cluster concept, overwrite policy nor resizing.
|
||||
|
||||
template<class Entry, int HashSize>
|
||||
struct SimpleHash {
|
||||
@@ -153,7 +153,7 @@ struct SimpleHash {
|
||||
{
|
||||
std::cerr << "Failed to allocate " << HashSize * sizeof(Entry)
|
||||
<< " bytes for hash table." << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
::exit(EXIT_FAILURE);
|
||||
}
|
||||
memset(entries, 0, HashSize * sizeof(Entry));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user