Hi all Should we consider removing -DEXITFREE i.e. always freeing memory when exiting without ifdef? I would prefer removing it.
Pros: * the fewer ifdef the better (fewer configurations to test) * simpler for users/developers to check for leaks, for those we do not bother rebuilding Vim with -DEXITREE. * we can slightly simplify src/Makefile, runtime/doc/debug.txt and code which uses ifdef EXITFREE * more chances to find memory errors when exiting and thus report and fix them. There are no know such bugs at the moment but maybe some exotic platforms or configurations have bugs which we're not aware of as most users do not rebuild with -DEXITFREE Cons: * slightly bigger vim, but the difference is insignificant (+0.23% bigger .text section according to my measurement on Linux). See sizes of Vim tiny with/without -DEXITFREE: ``` $ size vim-tiy-WITHOUT-DEXITFREE vim-tiny-WITH-DEXITFREE text data bss dec hex filename 1680633 147704 26056 1854393 1c4bb9 vim-tiy-WITHOUT-EXITFREE 1684654 147712 26056 1858422 1c5b76 vim-tiny-WITH-EXITFREE ``` * bigger risk of crashing when exiting if there is a memory error Regards Dominique -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAON-T_jeZ%3D%2Bo3%2BCHXmNKO6AjT%2Bhk-pRByncG%3DP9ksWjf%2BWdVAw%40mail.gmail.com.
