Skip to content

Conversation

@janekmi
Copy link
Contributor

@janekmi janekmi commented Nov 17, 2025

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

@janekmi janekmi requested a review from a team as a code owner November 17, 2025 21:24
@github-actions
Copy link

Errors are Unable to load ticket data
https://daosio.atlassian.net/browse/DAOS-18195

Comment on lines 819 to 820
D_ASSERTF(0, "Encounted invalid chunk (%d) of type %d val = 0x%lx", i,
hdr->type, *(uint64_t *)hdr);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Nitpick. Spelling.
  2. Minor. Type is unsigned.
Suggested change
D_ASSERTF(0, "Encounted invalid chunk (%d) of type %d val = 0x%lx", i,
hdr->type, *(uint64_t *)hdr);
D_ASSERTF(0, "Encountered invalid chunk (%d) of type %u val = 0x%lx", i,
hdr->type, *(uint64_t *)hdr);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks. Will correct it.

Addressed review comments.

Signed-off-by: Sherin T George <[email protected]>
struct chunk_header *hdr = heap_get_chunk_hdr(m->heap, m);

if (hdr->type == CHUNK_TYPE_USED)
if ((hdr->type == CHUNK_TYPE_USED) || (hdr->type == CHUNK_TYPE_FREE))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just realized this if basically means: all allowed chunk types for this particular callback. 🤣 Since this function should not be called for any other type except for CHUNK_TYPE_USED and CHUNK_TYPE_FREE, should it?

Suggested change
if ((hdr->type == CHUNK_TYPE_USED) || (hdr->type == CHUNK_TYPE_FREE))
D_ASSERTF(hdr->type == CHUNK_TYPE_USED || hdr->type == CHUNK_TYPE_FREE);

@mchaarawi mchaarawi deleted the branch mschaara/2.6.4plus November 22, 2025 19:04
@mchaarawi mchaarawi closed this Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants