diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-28 10:55:41 -0200 |
| commit | 0183b8030c80f57b87874ff7867ccdb172d9d3dc (patch) | |
| tree | 1033b5a84489a2f1f1bd210b1b120155cd7aeed7 /lvm.c | |
| parent | 8c49e198654567f770a7d5081b886a7c35201d81 (diff) | |
| download | lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.gz lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.tar.bz2 lua-0183b8030c80f57b87874ff7867ccdb172d9d3dc.zip | |
`free' gets size of the block: complete control over memory use
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.147 2000/11/24 17:39:56 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.148 2000/12/04 18:33:40 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -35,7 +35,7 @@ | |||
| 35 | ** Extra stack size to run a function: | 35 | ** Extra stack size to run a function: |
| 36 | ** TAG_LINE(1), NAME(1), TM calls(3) (plus some extra...) | 36 | ** TAG_LINE(1), NAME(1), TM calls(3) (plus some extra...) |
| 37 | */ | 37 | */ |
| 38 | #define EXTRA_STACK 8 | 38 | #define EXTRA_FSTACK 8 |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | 41 | ||
| @@ -355,7 +355,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) { | |||
| 355 | TString **const kstr = tf->kstr; | 355 | TString **const kstr = tf->kstr; |
| 356 | const lua_Hook linehook = L->linehook; | 356 | const lua_Hook linehook = L->linehook; |
| 357 | infovalue(base-1)->pc = &pc; | 357 | infovalue(base-1)->pc = &pc; |
| 358 | luaD_checkstack(L, tf->maxstacksize+EXTRA_STACK); | 358 | luaD_checkstack(L, tf->maxstacksize+EXTRA_FSTACK); |
| 359 | if (tf->is_vararg) /* varargs? */ | 359 | if (tf->is_vararg) /* varargs? */ |
| 360 | adjust_varargs(L, base, tf->numparams); | 360 | adjust_varargs(L, base, tf->numparams); |
| 361 | else | 361 | else |
