# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1186477102 0 # Node ID 0e453038c2daa7f87ad50869ec78c6ec5f9806c5 # Parent 77430fdfce384b03d7cc655578c90b3faed43c04 *** empty log message *** diff -r 77430fdfce38 -r 0e453038c2da src/ChangeLog --- a/src/ChangeLog Tue Aug 07 08:57:24 2007 +0000 +++ b/src/ChangeLog Tue Aug 07 08:58:22 2007 +0000 @@ -1,3 +1,16 @@ +2007-08-07 YAMAMOTO Mitsuharu + + * emacs.c (main) + [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: + Call malloc_enable_thread on interactive startup. + + * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable. + [USE_PTHREAD] (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS) + (UNLOCK_ALIGNED_BLOCKS): Conditionalize with it. + (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) + (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]: + New functions. + 2007-08-06 Chong Yidong * xdisp.c (redisplay_window): When restoring original buffer