Use a thread local allocator instead of processAllocator in HashMap.

This is required since processAllocator returns an ISharedAlloactor since 2.075.0. Because HashMap is operating only thread-local, this should generally be safe.
This commit is contained in:
Sönke Ludwig 2017-06-28 14:05:50 +02:00
parent 01ed0a43de
commit 58ee4a8839
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
2 changed files with 10 additions and 1 deletions

View file

@ -219,7 +219,7 @@ struct HashMap(TKey, TValue, Traits = DefaultHashMapTraits!TKey)
scope(exit) m_resizing = false;
if (!m_allocator) {
try m_allocator = processAllocator();
try m_allocator = vibeThreadAllocator();
catch (Exception e) assert(false, e.msg);
}