Skip to content
Snippets Groups Projects
Commit 4adced63 authored by Alexandr Lyapunov's avatar Alexandr Lyapunov
Browse files

fixes snapshot_stres test crash

parent 28ed55dc
No related branches found
No related tags found
No related merge requests found
......@@ -150,9 +150,7 @@ small_alloc_setopt(struct small_alloc *alloc, enum small_opt opt, bool val)
{
switch (opt) {
case SMALL_DELAYED_FREE_MODE:
/* Delayed mode is only usable if the arena is shared. */
if (alloc->cache->arena->flags & MAP_SHARED)
alloc->is_delayed_free_mode = val;
alloc->is_delayed_free_mode = val;
break;
default:
assert(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment