Roberto Ierusalimschy
ad5da6ba14
API functions get acceptable indices except when not possible (when
they modify the value at that index) + new macro 'ispseudo' +
specific test 'api_checkstackindex'
12 years ago
Roberto Ierusalimschy
86b39206d9
open upvalues cannot be old if thread is not old; when thread is old,
their list is not traversed anymore, and therefore can contain dead
elements.
12 years ago
Roberto Ierusalimschy
fdae4b9453
removed commented-out line (for debugging)
12 years ago
Roberto Ierusalimschy
84b6581287
cast to avoid warning in some compilers (size_t x unsigned int)
12 years ago
Roberto Ierusalimschy
c6b6024a9d
cast in 'luai_makeseed' now casts to needed type
12 years ago
Roberto Ierusalimschy
d58ce8106e
macro 'lua_number2unsigned' also needs proper definition if
lua_Number is float
12 years ago
Roberto Ierusalimschy
31f7d553e4
LUA_CORE condition removed from definition of some 'tricks' (as it
controlled only a few other defines) + MS_ASMTRICK renamed to
LUA_MSASMTRICK
12 years ago
Roberto Ierusalimschy
adaba04059
'pcall' may not restore previous error function when
inside coroutines + Check for garbage collector in function calls
does not cover all paths
12 years ago
Roberto Ierusalimschy
b157f3546e
BUG: 'pcall' may not restore previous error function when
inside coroutines
12 years ago
Roberto Ierusalimschy
ab7086e209
pops the string from 'get_prompt' only after using it
12 years ago
Roberto Ierusalimschy
7a3de1aba3
typo in comment
12 years ago
Roberto Ierusalimschy
8287a0db55
detail
12 years ago
Roberto Ierusalimschy
cf160abcf9
no more macro 'changenvalue'
12 years ago
Roberto Ierusalimschy
ae1d318822
small bug: generational mode is always in 'propagate' mode only
outside the collector: during collection of course it must go to
other modes.
12 years ago
Roberto Ierusalimschy
2038073975
more regularity for field 'fix'
12 years ago
Roberto Ierusalimschy
2dc91ca5ee
checks garbage collector every time it calls a function (as the
stack can grow and so allocates more memory)
12 years ago
Roberto Ierusalimschy
a3e1c40d6d
remove of unecessary luaD_checkstack. (In some cases, C should
ensure stack space; in others, Lua can use the extra slots for
temporary values.)
12 years ago
Roberto Ierusalimschy
c1a2a646c8
details (no need to use lua_pushfstring for plain strings)
12 years ago
Roberto Ierusalimschy
53480f1163
details (remove of some extra spaces)
12 years ago
Roberto Ierusalimschy
233eac4d3a
detail (avoid being picky about conversion from 'unsigned char'
to 'int')
12 years ago
Roberto Ierusalimschy
6625cbecd1
Bug: Some patterns can overflow the C stack, due to recursion
(Took the opportunity to refactor function 'match')
12 years ago
Roberto Ierusalimschy
4ac55997ec
typo
12 years ago
Roberto Ierusalimschy
763f84c84c
Some patterns can overflow the C stack, due to recursion.
12 years ago
Roberto Ierusalimschy
e4f609d0ee
collector in generational mode must be in 'propagate' state when
not running a collection
13 years ago
Roberto Ierusalimschy
5ac56a94dd
collector in generational mode should never be in 'pause' state
13 years ago
Roberto Ierusalimschy
4fc15bbfb7
major collections in generational mode are triggered by comparison with
the memory estimate from last major collection
13 years ago
Roberto Ierusalimschy
f7ec36ab16
comment
13 years ago
Roberto Ierusalimschy
b926472312
change in error message
13 years ago
Roberto Ierusalimschy
78d9865900
bugs: Internal Lua values may escape through the debug API +
Problems when yielding from debug hooks
13 years ago
Roberto Ierusalimschy
cc2a60ecb7
bugs in yields inside debug hooks
13 years ago
Roberto Ierusalimschy
43bfb60ac8
new auxiliary function 'luaI_printinst' (to print a single instruction)
13 years ago
Roberto Ierusalimschy
c510d94549
includes counts from 'sweeptolive' in cost of atomic step
13 years ago
Roberto Ierusalimschy
4dd0622d0c
bug in luaL_getsubtable (calling lua_absindex not with original stack)
13 years ago
Roberto Ierusalimschy
ab2c3d5cde
small bug in error handling of finalizers (cannot call lua_tostring
inside the core) + small bug in luaC_checkfinalizer (when avoiding
remove object being sweeped from sweep list) + small changes in GC
pace control (for the atomic part)
13 years ago
Roberto Ierusalimschy
01e5f358bd
small improvement in lua_checkmemory (only allow dead objects in
part of the sweep list not yet sweeped)
13 years ago
Roberto Ierusalimschy
69c775de21
update of 'lua_checkmemory'
13 years ago
Roberto Ierusalimschy
6fcdfc6d4f
bug: object being moved to 'finobj' list might not be sweeped by
the collector
13 years ago
Roberto Ierusalimschy
b77a90681e
typos in comments
13 years ago
Roberto Ierusalimschy
6efffb9acd
only count in 'atomic' objects marked for the first time
13 years ago
Roberto Ierusalimschy
51e8f08e60
more efficient way to apply 'stepmul' + some changes in GC parameters
13 years ago
Roberto Ierusalimschy
5adb5a4812
definition for 'MAX_LMEM'
13 years ago
Roberto Ierusalimschy
e29f3a5751
definition of 'GCSTEPSIZE' moved to header file + small changes
13 years ago
Roberto Ierusalimschy
21ed264a38
compensate for 'GCSTEPSIZE' in GC steps
13 years ago
Roberto Ierusalimschy
e131eb0d9a
removed debug code
13 years ago
Roberto Ierusalimschy
054c20cd5b
spaces -> tabs in #defines
13 years ago
Roberto Ierusalimschy
8e7149f496
detail ('char' should be 'const char')
13 years ago
Roberto Ierusalimschy
086da10dac
merge of fields 'lastmajormem' (used in gen. mode) and 'estimate'
(used in inc. mode)
13 years ago
Roberto Ierusalimschy
b36b4b521f
try to avoid sweeping new objects created with new white (and
therefore not collectable in the current cycle)
13 years ago
Roberto Ierusalimschy
398811a313
simpler macro 'luaC_condGC' + better 'step' in 'lua_gc' +
micro bug in 'luaC_checkfinalizer' (current sweep object could be
removed from 'allgc' list)
13 years ago
Roberto Ierusalimschy
2a66b34f72
revamp of the GC pace control; more like 5.1: any X Kbytes allocated
makes the GC handle f(X) Kbytes of objects
13 years ago