]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Re-add "Cache line aligned TT"
[stockfish] / src / tt.h
index c7c39e90cc9918d3cddb8611a12d8e66ffbf63a8..1caa277e821ac0463110fe0df6487b74f7e20f79 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
@@ -85,7 +85,7 @@ class TranspositionTable {
   static const unsigned ClusterSize = 4; // A cluster is 64 Bytes
 
 public:
- ~TranspositionTable() { delete [] table; }
+ ~TranspositionTable() { free(mem); }
   void new_search() { generation++; }
 
   TTEntry* probe(const Key key) const;
@@ -98,6 +98,7 @@ public:
 private:
   uint32_t hashMask;
   TTEntry* table;
+  void* mem;
   uint8_t generation; // Size must be not bigger then TTEntry::generation8
 };