diff options
| author | Paul Eggert | 2011-06-08 11:43:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-08 11:43:44 -0700 |
| commit | c0c5c8ae3686b2fced5aed6e2e15d8222382c4b7 (patch) | |
| tree | 013cc03b12f61806cee56f9b96b5b1acd95179cb /src/ChangeLog | |
| parent | b643996157ced5daf45752d37ac5bee3a4f4389f (diff) | |
| download | emacs-c0c5c8ae3686b2fced5aed6e2e15d8222382c4b7.tar.gz emacs-c0c5c8ae3686b2fced5aed6e2e15d8222382c4b7.zip | |
* alloc.c: Use EMACS_INT, not int, to count objects.
(total_conses, total_markers, total_symbols, total_vector_size)
(total_free_conses, total_free_markers, total_free_symbols)
(total_free_floats, total_floats, total_free_intervals, total_intervals)
(total_strings, total_free_strings):
Now EMACS_INT, not int. All uses changed.
(Fgarbage_collect): Compute overall total using a double, so that
integer overflow is less likely to be a problem. Check for overflow
when converting back to an integer.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c747a325139..31b5abf9b0a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2011-06-08 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-08 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * alloc.c: Use EMACS_INT, not int, to count objects. | ||
| 4 | (total_conses, total_markers, total_symbols, total_vector_size) | ||
| 5 | (total_free_conses, total_free_markers, total_free_symbols) | ||
| 6 | (total_free_floats, total_floats, total_free_intervals, total_intervals) | ||
| 7 | (total_strings, total_free_strings): | ||
| 8 | Now EMACS_INT, not int. All uses changed. | ||
| 9 | (Fgarbage_collect): Compute overall total using a double, so that | ||
| 10 | integer overflow is less likely to be a problem. Check for overflow | ||
| 11 | when converting back to an integer. | ||
| 12 | |||
| 3 | * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. | 13 | * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. |
| 4 | (allocate_vectorlike): Check for ptrdiff_t overflow. | 14 | (allocate_vectorlike): Check for ptrdiff_t overflow. |
| 5 | (mark_vectorlike, mark_char_table, mark_object): Avoid EMACS_UINT | 15 | (mark_vectorlike, mark_char_table, mark_object): Avoid EMACS_UINT |