Mercurial > vim
comparison runtime/doc/eval.txt @ 17159:3fd0765f454f v8.1.1579
patch 8.1.1579: dict and list could be GC'ed while displaying error
commit https://github.com/vim/vim/commit/adc6714aac20f5462a0ecec50ab4806b2f3ab0db
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 22 01:40:42 2019 +0200
patch 8.1.1579: dict and list could be GC'ed while displaying error
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Jun 2019 01:45:05 +0200 |
parents | be5a5cfc991a |
children | 9ccb1ea9b2fc |
comparison
equal
deleted
inserted
replaced
17158:7aee4ff9e8a5 | 17159:3fd0765f454f |
---|---|
2739 test_alloc_fail({id}, {countdown}, {repeat}) | 2739 test_alloc_fail({id}, {countdown}, {repeat}) |
2740 none make memory allocation fail | 2740 none make memory allocation fail |
2741 test_autochdir() none enable 'autochdir' during startup | 2741 test_autochdir() none enable 'autochdir' during startup |
2742 test_feedinput({string}) none add key sequence to input buffer | 2742 test_feedinput({string}) none add key sequence to input buffer |
2743 test_garbagecollect_now() none free memory right now for testing | 2743 test_garbagecollect_now() none free memory right now for testing |
2744 test_garbagecollect_soon() none free memory soon for testing | |
2744 test_getvalue({string}) any get value of an internal variable | 2745 test_getvalue({string}) any get value of an internal variable |
2745 test_ignore_error({expr}) none ignore a specific error | 2746 test_ignore_error({expr}) none ignore a specific error |
2746 test_null_blob() Blob null value for testing | 2747 test_null_blob() Blob null value for testing |
2747 test_null_channel() Channel null value for testing | 2748 test_null_channel() Channel null value for testing |
2748 test_null_dict() Dict null value for testing | 2749 test_null_dict() Dict null value for testing |
10007 Like garbagecollect(), but executed right away. This must | 10008 Like garbagecollect(), but executed right away. This must |
10008 only be called directly to avoid any structure to exist | 10009 only be called directly to avoid any structure to exist |
10009 internally, and |v:testing| must have been set before calling | 10010 internally, and |v:testing| must have been set before calling |
10010 any function. | 10011 any function. |
10011 | 10012 |
10013 test_garbagecollect_soon() *test_garbagecollect_soon()* | |
10014 Set the flag to call the garbagecollector as if in the main | |
10015 loop. Only to be used in tests. | |
10016 | |
10012 test_getvalue({name}) *test_getvalue()* | 10017 test_getvalue({name}) *test_getvalue()* |
10013 Get the value of an internal variable. These values for | 10018 Get the value of an internal variable. These values for |
10014 {name} are supported: | 10019 {name} are supported: |
10015 need_fileinfo | 10020 need_fileinfo |
10016 | 10021 |
10070 starting reset the "starting" variable, see below | 10075 starting reset the "starting" variable, see below |
10071 nfa_fail makes the NFA regexp engine fail to force a | 10076 nfa_fail makes the NFA regexp engine fail to force a |
10072 fallback to the old engine | 10077 fallback to the old engine |
10073 no_query_mouse do not query the mouse position for "dec" | 10078 no_query_mouse do not query the mouse position for "dec" |
10074 terminals | 10079 terminals |
10080 no_wait_return set the "no_wait_return" flag. Not restored | |
10081 with "ALL". | |
10075 ALL clear all overrides ({val} is not used) | 10082 ALL clear all overrides ({val} is not used) |
10076 | 10083 |
10077 "starting" is to be used when a test should behave like | 10084 "starting" is to be used when a test should behave like |
10078 startup was done. Since the tests are run by sourcing a | 10085 startup was done. Since the tests are run by sourcing a |
10079 script the "starting" variable is non-zero. This is usually a | 10086 script the "starting" variable is non-zero. This is usually a |