Skip to content

Commit

Permalink
add handling unsupported functions for disjoint pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Duy committed Jul 12, 2023
1 parent db40d34 commit f0132d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/common/umf_pools/disjoint_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,13 +908,13 @@ void *DisjointPool::malloc(size_t size) { // For full-slab allocations indicates

void *DisjointPool::calloc(size_t, size_t) {
// Not supported
assert(false);
umf::getPoolLastStatusRef<DisjointPool>() = UMF_RESULT_ERROR_NOT_SUPPORTED;
return NULL;
}

void *DisjointPool::realloc(void *, size_t) {
// Not supported
assert(false);
umf::getPoolLastStatusRef<DisjointPool>() = UMF_RESULT_ERROR_NOT_SUPPORTED;
return NULL;
}

Expand All @@ -934,8 +934,6 @@ void *DisjointPool::aligned_malloc(size_t size, size_t alignment) {

size_t DisjointPool::malloc_usable_size(void *) {
// Not supported
assert(false);

return 0;
}

Expand Down

0 comments on commit f0132d1

Please sign in to comment.