| commit | ad2cee0cae19c900bafd0afa948c9e57a6302d5a | [log] [tgz] |
|---|---|---|
| author | Sam Gross <sgross@fb.com> | Fri Oct 14 10:08:56 2016 -0700 |
| committer | Sam Gross <sgross@fb.com> | Fri Oct 14 10:08:56 2016 -0700 |
| tree | 7385c0090a03e278a1f080192e7880ebf3f41fbb | |
| parent | 2f186df52d029073c1745274e74ce8700aa3f0f0 [diff] |
Fix caching allocator when used from multiple Lua threads Use a single, global THCCachingAllocator instance. Previously, each Lua thread had its own THCCachingAllocator instance. However, threads can share storages, which means a segment could be allocated from on THCCachingAllocator and freed on another, which breaks. Fixes #539