summaryrefslogtreecommitdiff
path: root/core/templates/paged_allocator.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-07 07:19:58 +0100
committerGitHub <noreply@github.com>2022-03-07 07:19:58 +0100
commitffd64505c51cb9734ad68f52277c807a9b759338 (patch)
tree659c04e43b050244c6bc83fa391c635633330a7e /core/templates/paged_allocator.h
parent1fbd498307103d0f80f0c780bbb647214dfed4b0 (diff)
parentb0ca03b0a24116976e0859d7766e2ca5eb18cb88 (diff)
Merge pull request #58832 from reduz/uniform-set-cache
Add a UniformSet cache
Diffstat (limited to 'core/templates/paged_allocator.h')
-rw-r--r--core/templates/paged_allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/paged_allocator.h b/core/templates/paged_allocator.h
index 5bc723787f..b9067e2edd 100644
--- a/core/templates/paged_allocator.h
+++ b/core/templates/paged_allocator.h
@@ -86,10 +86,10 @@ public:
}
p_mem->~T();
available_pool[allocs_available >> page_shift][allocs_available & page_mask] = p_mem;
+ allocs_available++;
if (thread_safe) {
spin_lock.unlock();
}
- allocs_available++;
}
void reset(bool p_allow_unfreed = false) {