diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-22 01:40:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-22 01:40:42 +0200 |
commit | adc6714aac20f5462a0ecec50ab4806b2f3ab0db (patch) | |
tree | 54650818f8664ba76e6cad1632d463ed6b9aec74 /runtime | |
parent | dfc145572813c5d3848feb4029ff8bfb127ab66a (diff) |
patch 8.1.1579: dict and list could be GC'ed while displaying errorv8.1.1579
Problem: Dict and list could be GC'ed while displaying error in a timer.
(Yasuhiro Matsumoto)
Solution: Block garbage collection when executing a timer. Add
test_garbagecollect_soon(). Add "no_wait_return" to
test_override(). (closes #4571)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 80fbfba1db..8de2d8c295 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2741,6 +2741,7 @@ test_alloc_fail({id}, {countdown}, {repeat}) test_autochdir() none enable 'autochdir' during startup test_feedinput({string}) none add key sequence to input buffer test_garbagecollect_now() none free memory right now for testing +test_garbagecollect_soon() none free memory soon for testing test_getvalue({string}) any get value of an internal variable test_ignore_error({expr}) none ignore a specific error test_null_blob() Blob null value for testing @@ -10009,6 +10010,10 @@ test_garbagecollect_now() *test_garbagecollect_now()* internally, and |v:testing| must have been set before calling any function. +test_garbagecollect_soon() *test_garbagecollect_soon()* + Set the flag to call the garbagecollector as if in the main + loop. Only to be used in tests. + test_getvalue({name}) *test_getvalue()* Get the value of an internal variable. These values for {name} are supported: @@ -10072,6 +10077,8 @@ test_override({name}, {val}) *test_override()* fallback to the old engine no_query_mouse do not query the mouse position for "dec" terminals + no_wait_return set the "no_wait_return" flag. Not restored + with "ALL". ALL clear all overrides ({val} is not used) "starting" is to be used when a test should behave like |