* darwin_stop_world.c: Add vm_deallocate calls.
# endif
GC_push_all_stack(lo, hi);
} /* for(p=GC_threads[i]...) */
+ vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount);
}
#endif /* !DARWIN_DONT_PARSE_STACK */
changes = result;
prev_list = act_list;
prevcount = listcount;
+ vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount);
} while (changes);
}
}
}
+ vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount);
# if DEBUG_THREADS
GC_printf("World started\n");
# endif
- Use #elif in the definitions of GET_MEM.
- Overhaul porting.html. Remove corresponding text from README.
- Fix typo in DARWIN section of gcconfig.h.
+ - Fix Darwin thread memory leak. (Thanks to Bruce Mitchener.)
To do:
- REDIRECT_MALLOC and threads combination is getting closer, but currently