esp8266: Don't gc-collect BSS.

None of the other ports do, since introduction of mp_state_ctx_t. In
the case of current esp8266 port, heap is inside BSS, so scanning it
picked up a lot of dead pointers.
support-3.5
Paul Sokolovsky 2015-12-26 11:39:46 +02:00
parent 4f0080346b
commit 88b0490945
1 changed files with 0 additions and 4 deletions

View File

@ -39,10 +39,6 @@ void gc_collect(void) {
// start the GC
gc_collect_start();
// We need to scan everything in RAM that can hold a pointer.
// The data segment is used, but should not contain pointers, so we just scan the bss.
gc_collect_root((void**)&_bss_start, ((uint32_t)&_bss_end - (uint32_t)&_bss_start) / sizeof(uint32_t));
// get the registers and the sp
mp_uint_t regs[8];
mp_uint_t sp = gc_helper_get_regs_and_sp(regs);