-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Update core with upstream umm_malloc #6438
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
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
88a32c8
WIP: Initial overlay of upstream version of umm_malloc over
mhightower83 b508642
WIP: upstream version of umm_malloc customized for Arduino ESP8266 Core
mhightower83 d7363e0
Resoved Travis CI - issue
mhightower83 57b65ab
Corrected #ifdef's for UMM_STATS/UMM_STATS_FULL
mhightower83 da47a79
Merge branch 'master' into WIP-upstream-umm_malloc
d-a-v 71b10fd
Corrected UMM_REALLOC_DEFRAG option to be more like the original umm_…
mhightower83 4612235
Merge branch 'WIP-upstream-umm_malloc' of github.com:mhightower83/Ard…
mhightower83 79fe67f
Updated UMM_POISON_CHECK_LITE - Expanded the poison check on the current
mhightower83 5ded134
Updated printing in heap.cpp to behave the way os_printf did.
mhightower83 2a1923e
Merged latest, 2019-09-07, from upstream umm_malloc
mhightower83 f68a64f
Resolved issue where OOM selected w/ Debug port: "Disabled" caused hang.
mhightower83 9fcf27b
Fixed realloc OOM bug introduced due to confusing code, added comment…
mhightower83 ad03e16
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 f438e02
Updated to track PRs for various print definitions. Cleaned up comments
mhightower83 919b122
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 35c6868
Added missing "#ifdef __cplusplus"
mhightower83 47563cd
Reorganize local enhancements
mhightower83 2a1b722
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 5560f6b
Print notice message for the need of -DUMM_INFO_PRINT
mhightower83 c4a46bc
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 0b89ce7
This updates the heap management library, umm_malloc, to the current …
mhightower83 7e859c5
This updates the heap management library, umm_malloc, to the current …
mhightower83 2d26ccb
Updated upstream TODO
mhightower83 eed4b99
Merge branch 'WIP-upstream-umm_malloc' of github.com:mhightower83/Ard…
mhightower83 966812a
Changes on printing to comply with new understanding of SPI bus avail…
mhightower83 3669bf5
Removed no longer needed files.
mhightower83 be66ae7
OOM build option now saves file and line number for post mortem repor…
mhightower83 917e723
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 503def2
Merge branch 'WIP-upstream-umm_malloc' of github.com:mhightower83/Ard…
mhightower83 3b80577
Missed change.
mhightower83 2507ced
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 46b61fb
Consolated upstream integration comments into Notes.h. This helps
mhightower83 e9401c7
Comment updates.
mhightower83 648c028
Notes update.
mhightower83 3475ba2
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 435b8a6
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 eb5a7ca
Changes to heap.cpp -
mhightower83 3c77efe
Corrected Full Poison Check's placement and documented the
mhightower83 9da7eb8
Merge branch 'master' into WIP-upstream-umm_malloc
mhightower83 0eaa613
Fixed typos
mhightower83 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
WIP: Initial overlay of upstream version of umm_malloc over
our current version w/o any edits. Using files from: https://github.com/rhempel/umm_malloc/tree/master/src https://github.com/rhempel/c-helper-macros/tree/develop The following file remanents from our old version were removed: umm_malloc.cpp, umm_performance.h, umm_performance.cpp, and umm_stats.h This is intended to be a "compare to" for changes made to upstream version.
- Loading branch information
commit 88a32c8d9f326ee33568bf04d3d1c5d84a3b4b8b
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016 Ralph Hempel | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Downloaded from: https://github.com/rhempel/c-helper-macros/tree/develop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* dbglog.h - A set of macros that cleans up code that needs to produce debug | ||
* or log information. | ||
* | ||
* Many embedded systems still put a premium on code space and therefore need | ||
* a way to conditionally compile in debug code. Yes, it can lead to code that | ||
* runs differently depending on whether the debug code is cmpiled in or not | ||
* but you need to be able to evaluate the tradeoff. | ||
* | ||
* See copyright notice in LICENSE.TXT | ||
* ---------------------------------------------------------------------------- | ||
* NOTE WELL that this file may be included multiple times - this allows you | ||
* to set the trace level #define DBGLOG_LEVEL x | ||
* | ||
* To update which of the DBGLOG macros are compiled in, you must redefine the | ||
* DBGLOG_LEVEL macro and the inlcude the dbglog.h file again, like this: | ||
* | ||
* #undef DBGLOG_LEVEL | ||
* #define DBGLOG_LEVEL 6 | ||
* #include "dbglog/dbglog.txt" | ||
* | ||
* To handle multiple inclusion, we need to first undefine any macros we define | ||
* so that the compiler does not warn us that we are changing a macro. | ||
* ---------------------------------------------------------------------------- | ||
* The DBGLOG_LEVEL and DBGLOG_FUNCTION should be defined BEFORE this | ||
* file is included or else the following defaults are used: | ||
* | ||
* #define DBGLOG_LEVEL 0 | ||
* #define DBGLOG_FUNCTION printf | ||
* ---------------------------------------------------------------------------- | ||
* There are macros to handle the following decreasing levels of detail: | ||
* | ||
* 6 = TRACE | ||
* 5 = DEBUG | ||
* 4 = CRITICAL | ||
* 3 = ERROR | ||
* 2 = WARNING | ||
* 1 = INFO | ||
* 0 = FORCE - The DBGLOG_FUNCTION is always compiled in and is called only when | ||
* the first parameter to the macro is non-0 | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
#undef DBGLOG_TRACE | ||
#undef DBGLOG_DEBUG | ||
#undef DBGLOG_CRITICAL | ||
#undef DBGLOG_ERROR | ||
#undef DBGLOG_WARNING | ||
#undef DBGLOG_INFO | ||
#undef DBGLOG_FORCE | ||
|
||
#ifndef DBGLOG_LEVEL | ||
# define DBGLOG_LEVEL 0 | ||
#endif | ||
|
||
#ifndef DBGLOG_FUNCTION | ||
# define DBGLOG_FUNCTION printf | ||
#endif | ||
|
||
/* ------------------------------------------------------------------------- */ | ||
|
||
#if DBGLOG_LEVEL >= 6 | ||
# define DBGLOG_TRACE(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_TRACE(format, ...) | ||
#endif | ||
|
||
#if DBGLOG_LEVEL >= 5 | ||
# define DBGLOG_DEBUG(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_DEBUG(format, ...) | ||
#endif | ||
|
||
#if DBGLOG_LEVEL >= 4 | ||
# define DBGLOG_CRITICAL(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_CRITICAL(format, ...) | ||
#endif | ||
|
||
#if DBGLOG_LEVEL >= 3 | ||
# define DBGLOG_ERROR(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_ERROR(format, ...) | ||
#endif | ||
|
||
#if DBGLOG_LEVEL >= 2 | ||
# define DBGLOG_WARNING(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_WARNING(format, ...) | ||
#endif | ||
|
||
#if DBGLOG_LEVEL >= 1 | ||
# define DBGLOG_INFO(format, ...) DBGLOG_FUNCTION(format, ## __VA_ARGS__) | ||
#else | ||
# define DBGLOG_INFO(format, ...) | ||
#endif | ||
|
||
#define DBGLOG_FORCE(force, format, ...) {if(force) {DBGLOG_FUNCTION(format, ## __VA_ARGS__);}} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.