Blender Git Commit Log

Git Commits -> Revision 4a8cf9d

Revision 4a8cf9d by Sergey Sharybin (master)
November 19, 2020, 15:17 (GMT)
Guarded allocator: Add explicit switch to the lockfree implementation

Previously the only way to use lockfree implementation was to start
executable and never switch to guarded allocator.

Surely, it is not possible to switch implementation once any allocation
did happen, but some tests are desired to test lock-free implementation
of the allocator. Those tests did not operate properly because the main
entry point of tests are forcing guarded allocator to help catching
bugs.

This change makes it possible for those tests to ensure they do operate
on lock-free implementation.

There is no functional changes here, preparing boilerplate for an
upcoming work on the allocator tests themselves.

Commit Details:

Full Hash: 4a8cf9d182e86ae5366b5a8d4cbfedbef5c3e15e
Parent Commit: 42b2ae5
Lines Changed: +51, -1

2 Modified Paths:

/intern/guardedalloc/intern/mallocn.c (+35, -0) (Diff)
/intern/guardedalloc/MEM_guardedalloc.h (+16, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021