Skip to content

Commit

Permalink
Merge pull request #710 from DamianDuy/addUnsupportedFunctionsHandling
Browse files Browse the repository at this point in the history
[UMF] add handling unsupported functions for disjoint pool
  • Loading branch information
igchor committed Jul 13, 2023
2 parents 50e8eb0 + f0132d1 commit 46e2cfd
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 46e2cfd

Please sign in to comment.