diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-06-11 16:16:29 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-06-11 16:16:29 -0400 |
| commit | 4fc189b60c800f097db55c16768fa8c73eb72ccf (patch) | |
| tree | 7829990c07bbd80c490bc03508d6e0d1c25e166b /py | |
| parent | c85e111675ccfb0c03aa06bd3461f5a3c026ec87 (diff) | |
| parent | 036e7a332baea537d1a0b28854393fe1790b0991 (diff) | |
Merge latest 4.0.x fixes into master
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_defns.mk | 5 | ||||
| -rwxr-xr-x | py/gc.c | 4 | ||||
| -rw-r--r-- | py/gc.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 722f06e93..28d90dfea 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -366,3 +366,8 @@ $(addprefix lib/,\ libm/atan2f.c \ ) endif + +.PHONY: check-release-needs-clean-build + +check-release-needs-clean-build: + @echo "RELEASE_NEEDS_CLEAN_BUILD = $(RELEASE_NEEDS_CLEAN_BUILD)" @@ -383,6 +383,10 @@ void gc_collect_start(void) { #endif } +void gc_collect_ptr(void *ptr) { + gc_mark(ptr); +} + void gc_collect_root(void **ptrs, size_t len) { for (size_t i = 0; i < len; i++) { void *ptr = ptrs[i]; @@ -43,6 +43,7 @@ bool gc_is_locked(void); // A given port must implement gc_collect by using the other collect functions. void gc_collect(void); void gc_collect_start(void); +void gc_collect_ptr(void *ptr); void gc_collect_root(void **ptrs, size_t len); void gc_collect_end(void); |
