-
Notifications
You must be signed in to change notification settings - Fork 0
Release v1.0 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release v1.0 #6
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ Changed malloc, calloc, realloc, free and using mutex for each one + Worst Fit + Changed find_block + Log function
- Removed files about the secret - Corrected includes on all files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
Memory Management Project
Overview
This PR includes updates and implementations aimed at improving the custom memory management library. The focus has been on optimizing functionality for malloc, free, calloc, realloc, and memory logging to ensure robust memory operations across various scenarios. The changes include enhanced thread-safety, detailed logging, and efficient memory handling strategies.
Key Features and Changes
Memory Allocation (
malloc.c):my_mallocfunction for better thread-safety and clearer allocation logic.extend_heap.Memory Deallocation (
free.c):my_freeto handle merging of adjacent free blocks via thefusionfunction.Zero-Initialized Allocation (
calloc.c):my_calloc, which ensures zero-initialized memory allocation.Memory Reallocation (
realloc.c):my_reallocto allocate new blocks only when necessary and copy data efficiently.copy_blockfor safe data transfer between memory blocks.Memory Logging (
mem_logging.c):Heap and Metrics Management (
memory.c,mem_metrics.c):Conclusion
This PR introduces robust memory management capabilities while maintaining clarity and maintainability. While automated testing coverage is moderate, the manual tests provide confidence in the library's reliability and resilience.
Filesearch implementation on shell
See issue #2
Memory usage metrics on monitor
See issue #2
Project Related Questions
See issue #4
Mistery Challenge Solving steps
See issue #5