X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftt.h;h=fb414bf157aeba9fa98fbe70bbb728cd27445e1e;hb=2a461b4b745b2542f6e13bab8c60abdb366bc128;hp=c570761bdec0fd91120fe99a28b1b18f562c7bcc;hpb=5c81602d14539f8259a715477315e28b5de7cb54;p=stockfish 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; };