Mercurial > vim
comparison src/globals.h @ 8863:e1b84109506a v7.4.1719
commit https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 8 17:07:19 2016 +0200
patch 7.4.1719
Problem: Leaking memory when there is a cycle involving a job and a
partial.
Solution: Add a copyID to job and channel. Set references in items referred
by them. Go through all jobs and channels to find unreferenced
items. Also, decrement reference counts when garbage collecting.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 08 Apr 2016 17:15:06 +0200 |
parents | 24b43dd167eb |
children | d7ba3f9b9ba6 |
comparison
equal
deleted
inserted
replaced
8862:e759159b4432 | 8863:e1b84109506a |
---|---|
1617 EXTERN int alloc_fail_countdown INIT(= -1); | 1617 EXTERN int alloc_fail_countdown INIT(= -1); |
1618 /* set by alloc_fail(), number of times alloc() returns NULL */ | 1618 /* set by alloc_fail(), number of times alloc() returns NULL */ |
1619 EXTERN int alloc_fail_repeat INIT(= 0); | 1619 EXTERN int alloc_fail_repeat INIT(= 0); |
1620 | 1620 |
1621 EXTERN int disable_char_avail_for_testing INIT(= 0); | 1621 EXTERN int disable_char_avail_for_testing INIT(= 0); |
1622 | |
1623 EXTERN int in_free_unref_items INIT(= FALSE); | |
1622 #endif | 1624 #endif |
1623 | 1625 |
1624 /* | 1626 /* |
1625 * Optional Farsi support. Include it here, so EXTERN and INIT are defined. | 1627 * Optional Farsi support. Include it here, so EXTERN and INIT are defined. |
1626 */ | 1628 */ |