WebSafe 3.7github.com
|
|
🏠
Skip to content

oidmap: make entry cleanup explicit in oidmap_clear#2169

Open
Seyi007 wants to merge 1 commit intogit:masterfrom
Seyi007:improve-oidmap-clear-func
Open

oidmap: make entry cleanup explicit in oidmap_clear#2169
Seyi007 wants to merge 1 commit intogit:masterfrom
Seyi007:improve-oidmap-clear-func

Conversation

@Seyi007
Copy link
Contributor

@Seyi007 Seyi007 commented Jan 15, 2026

No description provided.

@gitgitgadget-git
Copy link

There are issues in commit 4b47fa7:
oidmap: make entry cleanup explicit in oidmap_clear

  • Commit not signed off
  • Lines in the body of the commit messages should be wrapped between 60 and 76 characters.
    Indented lines, and lines without whitespace, are exempt
@Seyi007 Seyi007 force-pushed the improve-oidmap-clear-func branch from 4b47fa7 to 1f5e841 Compare January 15, 2026 11:48
@gitgitgadget-git
Copy link

There is an issue in commit 1f5e841:
oidmap: make entry cleanup explicit in oidmap_clear

  • Lines in the body of the commit messages should be wrapped between 60 and 76 characters.
    Indented lines, and lines without whitespace, are exempt
@Seyi007 Seyi007 force-pushed the improve-oidmap-clear-func branch from 1f5e841 to 462048a Compare January 15, 2026 11:57
@gitgitgadget-git
Copy link

There is an issue in commit 462048a:
oidmap: make entry cleanup explicit in oidmap_clear

  • Lines in the body of the commit messages should be wrapped between 60 and 76 characters.
    Indented lines, and lines without whitespace, are exempt
Replace oidmap's use of hashmap_clear_() and layout-dependent freeing
with an explicit iteration and optional free callback. This removes
reliance on struct layout assumptions while keeping the existing API
intact.

Add tests for oidmap_clear_with_free behavior.
test_oidmap__clear_with_free_callback verifies that entries are freed
when a callback is provided, while
test_oidmap__clear_without_free_callback verifies that entries are not
freed when no callback is given. These tests ensure the new clear
implementation behaves correctly and preserves ownership semantics.

Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
@Seyi007 Seyi007 force-pushed the improve-oidmap-clear-func branch from 462048a to 422aaa6 Compare January 15, 2026 12:10
Copy link

@subratakundu2312-web subratakundu2312-web left a comment

Choose a reason for hiding this comment

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

TANNY NANDY @ 270GMAIL .COM

@subratakundu2312-web
Copy link

ADD OFF FIND OR CHECK NO : 7500143

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

Labels

None yet

2 participants

Comments