Patch 8.1.0868
Problem:    Crash if triggering garbage collector after a function call.
            (Michael Henry)
Solution:   Don't call the garbage collector right away, do it later.
            (closes #3894)
Files:      src/userfunc.c


*** ../vim-8.1.0867/src/userfunc.c      2019-01-26 17:28:22.236599060 +0100
--- src/userfunc.c      2019-02-02 13:54:42.694976789 +0100
***************
*** 679,688 ****
        {
            // We have made a lot of copies.  This can happen when
            // repetitively calling a function that creates a reference to
!           // itself somehow.  Call the garbage collector here to avoid using
            // too much memory.
            made_copy = 0;
!           (void)garbage_collect(FALSE);
        }
      }
  }
--- 679,688 ----
        {
            // We have made a lot of copies.  This can happen when
            // repetitively calling a function that creates a reference to
!           // itself somehow.  Call the garbage collector soon to avoid using
            // too much memory.
            made_copy = 0;
!           want_garbage_collect = TRUE;
        }
      }
  }
*** ../vim-8.1.0867/src/version.c       2019-02-01 22:10:13.000410600 +0100
--- src/version.c       2019-02-02 13:56:09.066466588 +0100
***************
*** 785,786 ****
--- 785,788 ----
  {   /* Add new patch number below this line */
+ /**/
+     868,
  /**/

-- 
Save the plankton - eat a whale.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui