new way to control GC speed (keeping a 'debt' counter)

This commit is contained in:
Roberto Ierusalimschy
2010-04-29 14:31:31 -03:00
parent 00114a95b2
commit 3eb1788bb4
3 changed files with 11 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.77 2009/12/17 12:50:20 roberto Exp roberto $
** $Id: llimits.h,v 1.78 2010/04/19 17:40:13 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -30,6 +30,7 @@ typedef unsigned char lu_byte;
#define MAX_SIZET ((size_t)(~(size_t)0)-2)
#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2)
#define MIN_LMEM ((l_mem)~((~(lu_mem)0)>>1))
#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */