#pragma once #include "ArrayWithLength.h" class IntCache { private: class ThreadStorage { public: int maxSize; vector tcache; vector tallocated; vector cache; vector allocated; vector toosmall; // 4J added ~ThreadStorage(); }; static DWORD tlsIdx; static const int TINY_CUTOFF = 256; public: static intArray allocate(int size); static void releaseAll(); static void CreateNewThreadStorage(); static void ReleaseThreadStorage(); static void Reset(); // 4J added };