Blender Git Commit Log

Git Commits -> Revision a44bb86

Revision a44bb86 by Sergey Sharybin (master)
November 19, 2020, 15:17 (GMT)
Guarded allocator: Fix lock-free allocator tests

Previously the lock-free tests were actually testing guarded allocator
because the main entry point of tests was switching allocator to the
guarded one.

There seems to be no allocations happening between the initialization
sequence and the fixture's SetUp(), so easiest seems to be just to
switch to lockfree implementation in the fixture's SetUp().

The test are passing locally, so the "should work" has high chance
of actually being truth :)

Differential Revision: https://developer.blender.org/D9584

Commit Details:

Full Hash: a44bb8603e551285f569ef43669b0eb378da1dd8
Parent Commit: 39ec64b
Lines Changed: +40, -77

1 Added Path:

/intern/guardedalloc/tests/guardedalloc_test_base.h (+26, -0) (View)

2 Modified Paths:

/intern/guardedalloc/tests/guardedalloc_alignment_test.cc (+10, -73) (Diff)
/intern/guardedalloc/tests/guardedalloc_overflow_test.cc (+4, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021