FS-10167: Revisited ks_pool to embed the ks_pool_t pointer into the prefix of each allocation, updated libks and libblade to remove unneccessary pool pointers in structures, pool-allocated memory can now be freed without needing to pass the original pool

This commit is contained in:
Shane Bryldt committed 2017-08-03 20:26:07 -06:00
1 parent 077fde224b
commit 53690120ac
47 files changed
+500 -567

No files matched your search

+3 -3
View File
@@ -184,9 +184,9 @@ static void *thread_test_function_atatched(ks_thread_t *thread, void *data)
for (i = 0; i < LOOP_COUNT; i++) {
if (last_mem) {
ks_pool_free(thread->pool, &last_mem);
ks_pool_free(&last_mem);
}
mem = ks_pool_alloc(thread->pool, 1024);
mem = ks_pool_alloc(ks_pool_get(thread), 1024);
last_mem = mem;
}
@@ -245,7 +245,7 @@ static void check_thread_priority(void)
ok( ks_thread_priority(thread_p) == KS_PRI_IMPORTANT );
end_todo;
ks_pool_free(pool, &thread_p);
ks_pool_free(&thread_p);
}
static void join_threads(void)