aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-10-18 11:59:20 +0000
committerGerd Moellmann2000-10-18 11:59:20 +0000
commita42943e93e368b67e438a4cb370a355c51c5f9a9 (patch)
treeb8a5ffc5fc46e6f972aa65cb9657ecb3107852f5 /src
parent70772ed1ac4c747a004e10cce40aacfadded0904 (diff)
downloademacs-a42943e93e368b67e438a4cb370a355c51c5f9a9.tar.gz
emacs-a42943e93e368b67e438a4cb370a355c51c5f9a9.zip
(allocate_string) [GC_CHECK_STRING_BYTES]: Call
check_string_bytes only if not noninteractive, increase count to 50.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/alloc.c2
2 files changed, 18 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9337d6b8e01..e7e83eef0f6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12000-10-18 Gerd Moellmann <gerd@gnu.org>
2
3 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4 (x_to_xcolors, png_load): Use x_query_color.
5
6 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
7 functions.
8 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9 which can be slow.
10 (x_copy_color, x_alloc_lighter_color): Likewise.
11
12 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
13 (x_query_color, x_query_colors): Add prototype.
14
15 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
16 check_string_bytes only if not noninteractive, increase count to 50.
17
12000-10-18 Miles Bader <miles@lsi.nec.co.jp> 182000-10-18 Miles Bader <miles@lsi.nec.co.jp>
2 19
3 * insdel.c (adjust_markers_for_delete): Handle before-insertion 20 * insdel.c (adjust_markers_for_delete): Handle before-insertion
diff --git a/src/alloc.c b/src/alloc.c
index a50eaa0a560..510d4671183 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1138,7 +1138,7 @@ allocate_string ()
1138 consing_since_gc += sizeof *s; 1138 consing_since_gc += sizeof *s;
1139 1139
1140#ifdef GC_CHECK_STRING_BYTES 1140#ifdef GC_CHECK_STRING_BYTES
1141 if (++check_string_bytes_count == 10) 1141 if (!noninteractive && ++check_string_bytes_count == 50)
1142 { 1142 {
1143 check_string_bytes_count = 0; 1143 check_string_bytes_count = 0;
1144 check_string_bytes (); 1144 check_string_bytes ();