Skip to content

Commit 46e2cfd

Browse files
authored
Merge pull request #710 from DamianDuy/addUnsupportedFunctionsHandling
[UMF] add handling unsupported functions for disjoint pool
2 parents 50e8eb0 + f0132d1 commit 46e2cfd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/common/umf_pools/disjoint_pool.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -908,13 +908,13 @@ void *DisjointPool::malloc(size_t size) { // For full-slab allocations indicates
908908

909909
void *DisjointPool::calloc(size_t, size_t) {
910910
// Not supported
911-
assert(false);
911+
umf::getPoolLastStatusRef<DisjointPool>() = UMF_RESULT_ERROR_NOT_SUPPORTED;
912912
return NULL;
913913
}
914914

915915
void *DisjointPool::realloc(void *, size_t) {
916916
// Not supported
917-
assert(false);
917+
umf::getPoolLastStatusRef<DisjointPool>() = UMF_RESULT_ERROR_NOT_SUPPORTED;
918918
return NULL;
919919
}
920920

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

935935
size_t DisjointPool::malloc_usable_size(void *) {
936936
// Not supported
937-
assert(false);
938-
939937
return 0;
940938
}
941939

0 commit comments

Comments
 (0)