diff options
| author | Eli Zaretskii | 2011-08-05 13:48:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-08-05 13:48:37 +0300 |
| commit | 35928349678bc6ed8f621fe7d4da6a9a3fb3579d (patch) | |
| tree | 57238a3de3ab2aed53b463a06b866ca2811d878f /src/ChangeLog | |
| parent | 7daee9109e1d69d62528f6b460d101e1ea44f4e1 (diff) | |
| download | emacs-35928349678bc6ed8f621fe7d4da6a9a3fb3579d.tar.gz emacs-35928349678bc6ed8f621fe7d4da6a9a3fb3579d.zip | |
Fix bug #9221 with resource allocation under word-wrap.
Add diagnostic facility for monitoring memory allocated for cache shelving.
src/xdisp.c (display_line): Release buffer allocated for shelved bidi
cache. (Bug#9221)
src/bidi.c (bidi_shelve_cache, bidi_unshelve_cache): Track total
amount allocated this far in `bidi_cache_total_alloc'.
(bidi_unshelve_cache): Accept an additional argument JUST_FREE; if
non-zero, only free the data buffer without restoring the cache
contents. All callers changed.
src/dispextern.h (bidi_unshelve_cache): Update prototype.
src/xdisp.c (SAVE_IT, pos_visible_p, move_it_in_display_line_to)
(move_it_in_display_line, move_it_to)
(move_it_vertically_backward, move_it_by_lines): Replace the call
to xfree to an equivalent call to bidi_unshelve_cache.
(move_it_in_display_line_to): Fix logic of returning
MOVE_POS_MATCH_OR_ZV in the bidi case.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8aa1237f693..481e5e1ce02 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | *xdisp.c (display_line): Release buffer allocated for shelved bidi | ||
| 4 | cache. (Bug#9221) | ||
| 5 | |||
| 6 | * bidi.c (bidi_shelve_cache, bidi_unshelve_cache): Track total | ||
| 7 | amount allocated this far in `bidi_cache_total_alloc'. | ||
| 8 | (bidi_unshelve_cache): Accept an additional argument JUST_FREE; if | ||
| 9 | non-zero, only free the data buffer without restoring the cache | ||
| 10 | contents. All callers changed. | ||
| 11 | |||
| 12 | * dispextern.h (bidi_unshelve_cache): Update prototype. | ||
| 13 | |||
| 14 | * xdisp.c (SAVE_IT, pos_visible_p, move_it_in_display_line_to) | ||
| 15 | (move_it_in_display_line, move_it_to) | ||
| 16 | (move_it_vertically_backward, move_it_by_lines): Replace the call | ||
| 17 | to xfree to an equivalent call to bidi_unshelve_cache. | ||
| 18 | (move_it_in_display_line_to): Fix logic of returning | ||
| 19 | MOVE_POS_MATCH_OR_ZV in the bidi case. | ||
| 20 | |||
| 1 | 2011-07-24 Eli Zaretskii <eliz@gnu.org> | 21 | 2011-07-24 Eli Zaretskii <eliz@gnu.org> |
| 2 | 22 | ||
| 3 | * xdisp.c (compute_display_string_pos): Fix logic of caching | 23 | * xdisp.c (compute_display_string_pos): Fix logic of caching |