X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=fb414bf157aeba9fa98fbe70bbb728cd27445e1e;hp=c570761bdec0fd91120fe99a28b1b18f562c7bcc;hb=630fda2e2cfd44ccf33c2c66ec30842fbca9a4f3;hpb=8bec65029d6ac3b22b956cfd820ec754420052df diff --git a/src/tt.h b/src/tt.h index c570761b..fb414bf1 100644 --- a/src/tt.h +++ b/src/tt.h @@ -92,7 +92,13 @@ public: private: inline TTEntry* first_entry(const Key posKey) const; - unsigned size, writes; + // Be sure 'writes' is at least one cacheline away + // from read only variables. + unsigned char pad_before[64 - sizeof(unsigned)]; + unsigned writes; // heavy SMP read/write access here + unsigned char pad_after[64]; + + unsigned size; TTEntry* entries; uint8_t generation; };