Fix approach #222
Optimize ThreadLocalCache to calculate the allocate size.
(This time all tests passed)
Merge pull request #224 from ttoommbb/master

Fix approach #222. Optimize ThreadLocalCache to calculate the allocate size.