Skip to content

Conversation

@KFilipek
Copy link
Contributor

Description

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used
  • All API changes are reflected in docs and def/map files, and are tested

@KFilipek KFilipek self-assigned this Jul 10, 2025
@KFilipek KFilipek requested a review from a team as a code owner July 10, 2025 13:21
@KFilipek KFilipek force-pushed the dj-used_reserve branch 3 times, most recently from 1e1ef90 to e249023 Compare July 10, 2025 15:24
@KFilipek KFilipek force-pushed the dj-used_reserve branch 4 times, most recently from d790924 to 64a80e4 Compare July 11, 2025 13:40
@KFilipek KFilipek requested a review from bratpiorka July 11, 2025 14:48
@bratpiorka bratpiorka requested a review from lplewa July 14, 2025 06:54
(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size != sizeof....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really have to be an exact size? Isn't < enough?

(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

}

static const umf_ctl_node_t CTL_NODE(disjoint)[] = {
CTL_LEAF_RW(name), CTL_LEAF_RO(used_memory), CTL_LEAF_RO(reserved_memory),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used memory should be in the stats subtree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants