Skip to content

untested and unreviewed heap allocator#291

Open
trufae wants to merge 3 commits intomasterfrom
newheap
Open

untested and unreviewed heap allocator#291
trufae wants to merge 3 commits intomasterfrom
newheap

Conversation

@trufae
Copy link
Collaborator

@trufae trufae commented Feb 28, 2025

Checklist

  • Closing issues: #issue
  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some documentation

Description

// Get size of the free list item.
static inline int getSize(void *ptr) {
return ((Header *)remove_offset (ptr))->size;
static inline int getBlockSize(void *payload_ptr) {

Check notice

Code scanning / CodeQL

Unused static function Note

Static function getBlockSize is unreachable
// Coalesce with adjacent free blocks if possible
// Coalesce backward
Header *current_header = header;
//bool merged_prev = false;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
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.

2 participants