diff options
| author | Paul Eggert | 2012-09-16 14:43:55 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-16 14:43:55 -0700 |
| commit | 0caaedb1c3c9c48980144e41d2a95329d39c399a (patch) | |
| tree | 3e191e2b290e9adf91594be047c1f268cacde932 /src/ChangeLog | |
| parent | 634b8cacd6cc0557c1963ad7409db247963046d2 (diff) | |
| download | emacs-0caaedb1c3c9c48980144e41d2a95329d39c399a.tar.gz emacs-0caaedb1c3c9c48980144e41d2a95329d39c399a.zip | |
Remove configure's --without-sync-input option.
When auditing signal-handling in preparation for cleaning it up,
I found that SYNC_INPUT has race conditions and would be a real
pain to fix. Since it's an undocumented and deprecated
configure-time option, now seems like a good time to remove it.
Also see <http://bugs.gnu.org/11080#16>.
* configure.ac (SYNC_INPUT, BROKEN_SA_RESTART): Remove.
* admin/CPP-DEFINES (BROKEN_SA_RESTART, SA_RESTART): Remove.
* etc/TODO (Make SYNC_INPUT the default): Remove, as the code now
behaves as if SYNC_INPUT is always true.
* src/alloc.c (_bytes_used, __malloc_extra_blocks, _malloc_internal)
(_free_internal) [!DOUG_LEA_MALLOC]: Remove decls.
(alloc_mutex) [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]:
(malloc_hysteresis):
(check_depth) [XMALLOC_OVERRUN_CHECK]:
(MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT):
(__malloc_hook, __realloc_hook, __free_hook, BYTES_USED)
(dont_register_blocks, bytes_used_when_reconsidered)
(bytes_used_when_full, emacs_blocked_free, emacs_blocked_malloc)
(emacs_blocked_realloc, reset_malloc_hooks, uninterrupt_malloc):
[!SYSTEM_MALLOC && !SYNC_INPUT]:
Remove. All uses removed.
(MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): Use a different
implementation, one that depends on whether the new macro
XMALLOC_BLOCK_INPUT_CHECK is defined, not on whether SYNC_INPUT
is defined.
* src/atimer.c (run_timers, handle_alarm_signal):
* src/keyboard.c (pending_signal, poll_for_input_1, poll_for_input)
(handle_async_input, process_pending_signals)
(handle_input_available_signal, init_keyboard):
* src/nsterm.m (ns_read_socket):
* src/process.c (wait_reading_process_output):
* src/regex.c (immediate_quit, IMMEDIATE_QUIT_CHECK):
* src/sysdep.c (emacs_sigaction_init) [SA_RESTART]:
(emacs_write):
* src/xterm.c (XTread_socket):
Assume SYNC_INPUT.
* src/conf_post.h (SA_RESTART) [IRIX6_5]: Do not #undef.
* src/eval.c (handling_signal): Remove. All uses removed.
* src/lisp.h (ELSE_PENDING_SIGNALS): Remove.
All uses replaced with the SYNC_INPUT version.
(reset_malloc_hooks, uninterrupt_malloc, handling_signal):
Remove decls.
* src/sysdep.c, src/syssignal.h (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Now static.
Fixes: debbugs:12450
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 32cd7b3e813..f21395d9632 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,47 @@ | |||
| 1 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Remove configure's --without-sync-input option (Bug#12450). | ||
| 4 | When auditing signal-handling in preparation for cleaning it up, | ||
| 5 | I found that SYNC_INPUT has race conditions and would be a real | ||
| 6 | pain to fix. Since it's an undocumented and deprecated | ||
| 7 | configure-time option, now seems like a good time to remove it. | ||
| 8 | Also see <http://bugs.gnu.org/11080#16>. | ||
| 9 | * alloc.c (_bytes_used, __malloc_extra_blocks, _malloc_internal) | ||
| 10 | (_free_internal) [!DOUG_LEA_MALLOC]: Remove decls. | ||
| 11 | (alloc_mutex) [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: | ||
| 12 | (malloc_hysteresis): | ||
| 13 | (check_depth) [XMALLOC_OVERRUN_CHECK]: | ||
| 14 | (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): | ||
| 15 | (__malloc_hook, __realloc_hook, __free_hook, BYTES_USED) | ||
| 16 | (dont_register_blocks, bytes_used_when_reconsidered) | ||
| 17 | (bytes_used_when_full, emacs_blocked_free, emacs_blocked_malloc) | ||
| 18 | (emacs_blocked_realloc, reset_malloc_hooks, uninterrupt_malloc): | ||
| 19 | [!SYSTEM_MALLOC && !SYNC_INPUT]: | ||
| 20 | Remove. All uses removed. | ||
| 21 | (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): Use a different | ||
| 22 | implementation, one that depends on whether the new macro | ||
| 23 | XMALLOC_BLOCK_INPUT_CHECK is defined, not on whether SYNC_INPUT | ||
| 24 | is defined. | ||
| 25 | * atimer.c (run_timers, handle_alarm_signal): | ||
| 26 | * keyboard.c (pending_signal, poll_for_input_1, poll_for_input) | ||
| 27 | (handle_async_input, process_pending_signals) | ||
| 28 | (handle_input_available_signal, init_keyboard): | ||
| 29 | * nsterm.m (ns_read_socket): | ||
| 30 | * process.c (wait_reading_process_output): | ||
| 31 | * regex.c (immediate_quit, IMMEDIATE_QUIT_CHECK): | ||
| 32 | * sysdep.c (emacs_sigaction_init) [SA_RESTART]: | ||
| 33 | (emacs_write): | ||
| 34 | * xterm.c (XTread_socket): | ||
| 35 | Assume SYNC_INPUT. | ||
| 36 | * conf_post.h (SA_RESTART) [IRIX6_5]: Do not #undef. | ||
| 37 | * eval.c (handling_signal): Remove. All uses removed. | ||
| 38 | * lisp.h (ELSE_PENDING_SIGNALS): Remove. | ||
| 39 | All uses replaced with the SYNC_INPUT version. | ||
| 40 | (reset_malloc_hooks, uninterrupt_malloc, handling_signal): | ||
| 41 | Remove decls. | ||
| 42 | * sysdep.c, syssignal.h (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 43 | Now static. | ||
| 44 | |||
| 3 | * font.c (Ffont_shape_gstring): Remove unused local. | 45 | * font.c (Ffont_shape_gstring): Remove unused local. |
| 4 | 46 | ||
| 5 | 2012-09-16 Glenn Morris <rgm@gnu.org> | 47 | 2012-09-16 Glenn Morris <rgm@gnu.org> |