aboutsummaryrefslogtreecommitdiffstats
path: root/src/kqueue.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-11 18:05:40 +0200
committerEli Zaretskii2016-01-11 18:05:40 +0200
commit36b953947ee2ee0411139bd4ad7dcffdcc403036 (patch)
treee2bbd90e8712a1d9f7f011805ca35a5c92cb447b /src/kqueue.c
parent200675299e24139ccce444a7ca5d59a2aed2891c (diff)
downloademacs-36b953947ee2ee0411139bd4ad7dcffdcc403036.tar.gz
emacs-36b953947ee2ee0411139bd4ad7dcffdcc403036.zip
Avoid an infloop when we run out of memory
* src/alloc.c (garbage_collect_1): Don't bother saving and restoring the echo-area message if we are GC'ing after running out of memory. This avoids an infloop due to repeated attempts to allocate memory for the cons cell needed to save the message, which signals the memory-full error, which attempts to save the echo-area message, which signals memory-full again, etc.
Diffstat (limited to 'src/kqueue.c')
0 files changed, 0 insertions, 0 deletions