Skip to content

Conversation

@Lightning11wins
Copy link
Contributor

Improves the developer experience when using the NewMalloc system by using a cleaner code structure with comments to enable faster speed-reading. This new code intends to make it easy for readers to quickly skim code so that they can find what they're looking for without getting lost in code for irrelevant features that might not even be enabled in their environment.

This branch also introduces a couple of minor logical changes and optimizations in the final commit, mostly intended to improve the developer experience.

I recommend that Greg take ownership of the first commit so that we can avoid having me get git blamed for reformatting most of the file with very minimal changes to any of the logic.

…isabled.

Abstract registered block name printing into a public helper function.
Optimize nmSysRealloc() to do nothing when asked to reallocate memory to the current size.
@Lightning11wins
Copy link
Contributor Author

This PR will close #81: confusing code in newmalloc.c.

@Lightning11wins Lightning11wins linked an issue Dec 4, 2025 that may be closed by this pull request
@Lightning11wins Lightning11wins marked this pull request as draft December 11, 2025 17:32
@Lightning11wins
Copy link
Contributor Author

The styling on here is wrong. I'll need to rewrite it at some point.

@Lightning11wins
Copy link
Contributor Author

This PR was reworked in #83.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing code in newmalloc.c

2 participants