-
Notifications
You must be signed in to change notification settings - Fork 820
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
Generic Memory Pools #7418
Merged
Merged
Generic Memory Pools #7418
Commits on Apr 22, 2024
-
1. Modify wolfSSL_CTX_load_static_memory() to use wc_LoadStaticMemory() instead of reimplementing it. 2. Initialize the pointers in wc_LoadStaticMemory() to null. 3. Whitespace changes.
Configuration menu - View commit details
-
Copy full SHA for 2168b15 - Browse repository at this point
Copy the full SHA 2168b15View commit details -
1. Add the function wc_LoadStaticMemory_ex(), which is a generic version of wc_LoadStaticMemory(). 2. Modify wc_LoadStaticMemory() to call wc_LoadStaticMemory_ex() with the bucket lists. 3. Rename the function wolfSSL_load_static_memory() as wc_partition_static_memory(), make it static, move it higher in the file.
Configuration menu - View commit details
-
Copy full SHA for 7481644 - Browse repository at this point
Copy the full SHA 7481644View commit details -
1. Add generic function wolfSSL_StaticBufferSz_ex() where one specifies the memory bucket list sizes and distribution. 2. Rewrote wolfSSL_StaticBufferSz() in terms of the new function. 3. Changed the list pointers on wc_LoadStaticMemory_ex() and wc_init_memory_heap() to be pointers to const.
Configuration menu - View commit details
-
Copy full SHA for 15a0ae4 - Browse repository at this point
Copy the full SHA 15a0ae4View commit details -
1. Add checks for listSz against WOLFMEM_MAX_BUCKETS. 2. Use WOLFMEM_DEF_BUCKETS for the size when using the default memory descriptions. 3. Whitespace.
Configuration menu - View commit details
-
Copy full SHA for 7a0bcb0 - Browse repository at this point
Copy the full SHA 7a0bcb0View commit details -
1. Make the function wolfSSL_GetMemStats() public.
Configuration menu - View commit details
-
Copy full SHA for 0b5c83f - Browse repository at this point
Copy the full SHA 0b5c83fView commit details
Commits on Apr 26, 2024
-
1. Added some extra parameter checking to wc_LoadStaticMemory_ex(). 2. Added some extra parameter checking to wc_StaticBufferSz_ex(). 3. Rename some parameters and add some logging prints. 4. Some static functions have some parameter checking and they are only calling in one spot, remove it.
Configuration menu - View commit details
-
Copy full SHA for d239948 - Browse repository at this point
Copy the full SHA d239948View commit details
Commits on Apr 30, 2024
-
1. Add API test for function `wc_LoadStaticMemory_ex()`.
Configuration menu - View commit details
-
Copy full SHA for f6ae432 - Browse repository at this point
Copy the full SHA f6ae432View commit details -
1. Add API for function `wc_UnloadStaticMemory()` which frees the mutex used by the static memory pool. 2. Update the `wc_LoadStaticMemory_ex()` test to free the static memory pool's mutex on each successful test case.
Configuration menu - View commit details
-
Copy full SHA for 6be5526 - Browse repository at this point
Copy the full SHA 6be5526View commit details
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.