diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-03-08 15:29:14 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-03-12 11:18:26 -0700 |
| commit | 03be42ab847f04a89d207d98fdb28048cfedf72d (patch) | |
| tree | 918df321648fc6715eee60ddf926d5dc7ee58bfe /supervisor/shared/safe_mode.h | |
| parent | ef4a74e201e852a32e2e1be73ed9ba85c88fb3f4 (diff) | |
Enter safe mode when an allocation is attempted on an uninitialized heap.
Diffstat (limited to 'supervisor/shared/safe_mode.h')
| -rw-r--r-- | supervisor/shared/safe_mode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/supervisor/shared/safe_mode.h b/supervisor/shared/safe_mode.h index eba2668ac..59480b55b 100644 --- a/supervisor/shared/safe_mode.h +++ b/supervisor/shared/safe_mode.h @@ -35,7 +35,8 @@ typedef enum { HEAP_OVERWRITTEN, MANUAL_SAFE_MODE, MICROPY_NLR_JUMP_FAIL, - MICROPY_FATAL_ERROR + MICROPY_FATAL_ERROR, + GC_ALLOC_OUTSIDE_VM } safe_mode_t; safe_mode_t wait_for_safe_mode_reset(void); |
