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 |
Roberto Ierusalimschy
|
8d0e1ed52f
|
extend optimization of 'if a then break end' for the case
'if a then break; end'
|
13 years ago |
Roberto Ierusalimschy
|
3ac595da8a
|
allow "long double" precision for PI constant if needed
|
13 years ago |
Roberto Ierusalimschy
|
ea980fdeef
|
removed 'stringmark' trick
|
13 years ago |
Roberto Ierusalimschy
|
5654763797
|
macro 'checkGC' takes care of setting 'top' to limit stack live values
|
13 years ago |
Roberto Ierusalimschy
|
edfa9e007d
|
details (header comments)
|
13 years ago |
Roberto Ierusalimschy
|
31829ad177
|
test for whether collector is running moved from function to
macro 'luaC_condGC'.
|
13 years ago |
Roberto Ierusalimschy
|
c2361e0b61
|
definition for 'LUAI_MAXSHORTLEN' moved to luaconf.h (too important)
|
13 years ago |
Roberto Ierusalimschy
|
77cbd817d1
|
better(?) handling of '#define's for IEEE-related tricks + avoid using
IEEE trick for 64-bit integer types (lua_Integer on 64-bit machines)
|
13 years ago |
Roberto Ierusalimschy
|
4ec7d6de95
|
bug: wrong handling of 'nCcalls' in coroutines
|
13 years ago |
Roberto Ierusalimschy
|
f6a12948ca
|
useless parameter in macro 'luai_makeseed'
|
13 years ago |
Roberto Ierusalimschy
|
3cadc37f47
|
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
|
13 years ago |
Roberto Ierusalimschy
|
bb1146dc39
|
wrong error message when 'coroutine.create' or 'coroutine.wrap' are
called with no arguments (new thread is assumed to be the missing
argument).
|
13 years ago |
Roberto Ierusalimschy
|
fc24a3a6c4
|
small bug: a reader function should not modify the Lua stack
|
13 years ago |
Roberto Ierusalimschy
|
a94ce68e0a
|
bug: wrong handling of 'nCcalls' in coroutines
|
13 years ago |
Roberto Ierusalimschy
|
ec22fc963a
|
detail (separate code to create 'searchers' table into a new function)
|
13 years ago |
Roberto Ierusalimschy
|
c54f5f64c9
|
primaryexp -> suffixedexp; prefixexp -> primaryexp + more 'syntactical'
way to distinguish between function calls and assignments
|
13 years ago |
Roberto Ierusalimschy
|
4cca1a436d
|
details (using lua_setglobal/lua_getglobal instead of explicit
use of the global table)
|
13 years ago |
Roberto Ierusalimschy
|
8df0198178
|
release 5.2.1
|
13 years ago |
Roberto Ierusalimschy
|
048be9cf27
|
different scheme to check arguments to '%d', '%x', etc. Old scheme
did not work well when lua_Number is an integer.
|
13 years ago |
Roberto Ierusalimschy
|
1485ea2ee7
|
Finalizers may call functions from a dynamic library after
the library has been unloaded
|
13 years ago |
Roberto Ierusalimschy
|
b10dbe5c72
|
bug: C libraries must be unloaded after all other finalizers have run,
because a finalizer may use a C function from a C library
|
13 years ago |
Roberto Ierusalimschy
|
462375ba47
|
'if' to avoid empty 'memcpy' (may be expensive)
|
13 years ago |
Roberto Ierusalimschy
|
cfbe2333a4
|
string hash may not use all bytes (but this is configurable now) +
small other changes
|
13 years ago |
Roberto Ierusalimschy
|
afc3fcf952
|
definition for 'LUA_MAXSHORTLEN' moved to 'lstring.c' (used only there)
|
13 years ago |
Roberto Ierusalimschy
|
99bd1a000f
|
error function can be 'l_noret'
|
13 years ago |
Roberto Ierusalimschy
|
3e66d3b4be
|
cleaner code (avoids loop with empty body)
|
13 years ago |
Roberto Ierusalimschy
|
29a28693e5
|
'luaL_checkversion' called by 'luaL_setfuncs'
|
13 years ago |
Roberto Ierusalimschy
|
678c1255c9
|
random seed used in the hash of all strings to avoid intentional
collisions
|
13 years ago |
Roberto Ierusalimschy
|
a4b96ce9a3
|
first implementation of long strings
|
13 years ago |
Roberto Ierusalimschy
|
291f564485
|
field 'reserved' -> 'extra' (may be used for other purposes too)
|
13 years ago |
Roberto Ierusalimschy
|
9f1a8dbdd3
|
'eqstr' -> 'luaS_eqstr'
|
13 years ago |
Roberto Ierusalimschy
|
d19f1da6ef
|
new macro 'isreserved' + 'eqstr' -> 'luaS_eqstr' (may be a function)
|
13 years ago |
Roberto Ierusalimschy
|
f88806a1fb
|
"default: lua_assert(0)" in switches helps debugging + uses
non-variant types in binary files
|
13 years ago |
Roberto Ierusalimschy
|
fb6eee2805
|
Lua never uses Ã'assert' (it is always 'lua_assert')
|
13 years ago |
Roberto Ierusalimschy
|
0010ec68b1
|
documentation comment (small correction about strings being
gray)
|
13 years ago |