diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-08-24 16:28:17 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-08-24 16:28:17 +0100 |
| commit | 3c658a4e755a75e495303957208486e583ddb270 (patch) | |
| tree | 6418fea9bf3dcf4aed2145db94fda4c0de1d0321 /py/runtime.h | |
| parent | 25fc41dd316c38df3e2a6cfe4b53322d76dc92fc (diff) | |
py: Fix bug where GC collected native/viper/asm function data.
Because (for Thumb) a function pointer has the LSB set, pointers to
dynamic functions in RAM (eg native, viper or asm functions) were not
being traced by the GC. This patch is a comprehensive fix for this.
Addresses issue #820.
Diffstat (limited to 'py/runtime.h')
| -rw-r--r-- | py/runtime.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/py/runtime.h b/py/runtime.h index c46087d14..075353e48 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -80,10 +80,6 @@ mp_obj_t mp_load_const_dec(qstr qstr); mp_obj_t mp_load_const_str(qstr qstr); mp_obj_t mp_load_const_bytes(qstr qstr); -mp_obj_t mp_make_function_n(int n_args, void *fun); // fun must have the correct signature for n_args fixed arguments -mp_obj_t mp_make_function_var(int n_args_min, mp_fun_var_t fun); -mp_obj_t mp_make_function_var_between(int n_args_min, int n_args_max, mp_fun_var_t fun); // min and max are inclusive - mp_obj_t mp_call_function_0(mp_obj_t fun); mp_obj_t mp_call_function_1(mp_obj_t fun, mp_obj_t arg); mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); |
