Roberto Ierusalimschy
|
ee7478e884
|
improved 'lua_checkmemory', with better control over gray objects
|
15 years ago |
Roberto Ierusalimschy
|
aaa5d7adab
|
'luaC_linkupval' moved into 'lfunc.c' code + new way to control GC speed
|
15 years ago |
Roberto Ierusalimschy
|
3eb1788bb4
|
new way to control GC speed (keeping a 'debt' counter)
|
15 years ago |
Roberto Ierusalimschy
|
00114a95b2
|
lots of new comments + small changes in loop controls + other small
"janitor work"
|
15 years ago |
Roberto Ierusalimschy
|
4aaf0ef75c
|
"to-be-finalized" objects marked and sweeped like all other objects
|
15 years ago |
Roberto Ierusalimschy
|
ed720d09f3
|
upvalue barriers for Lua functions must act on the upvalue itself,
not on its closure
|
15 years ago |
Roberto Ierusalimschy
|
376e939ef6
|
missing parentheses around 'luaL_pushresultsize' declaration
|
15 years ago |
Roberto Ierusalimschy
|
9d28e2b3e5
|
bug with io.read(op, "*n")
|
15 years ago |
Roberto Ierusalimschy
|
49ca1f7083
|
allows thread switches (when/if there are thread switches) in the same
places that finalizers can run (so they should be safe...)
|
15 years ago |
Roberto Ierusalimschy
|
4db6f20770
|
ensure that 'luai_userstatethread' is always called (even if
'stack_init' throws a memory error)
|
15 years ago |
Roberto Ierusalimschy
|
cca71912e6
|
'gcinfo' was deprecated in version 5.0.
|
15 years ago |
Roberto Ierusalimschy
|
8003e9544d
|
'string.format' may get buffer as an argument when there are
missing arguments and format string is too long
|
15 years ago |
Roberto Ierusalimschy
|
973d81efb3
|
complete control over number of each kind of object allocated
|
15 years ago |
Roberto Ierusalimschy
|
26d4a73962
|
with light C functions, 'pairs' does not need to keep 'next' as an
upvalue.
|
15 years ago |
Roberto Ierusalimschy
|
99a39f6f4a
|
tells the allocation function that the first block is a thread
|
15 years ago |
Roberto Ierusalimschy
|
1bb407e494
|
in lua_gc/step, 'luaC_step' changes GCthreshold, so there was little
control over the real step size.
|
15 years ago |
Roberto Ierusalimschy
|
53f9499f7f
|
"light C function" is a better name than "C-function pointer"
|
15 years ago |
Roberto Ierusalimschy
|
575befc394
|
comparsion tag methods follow the same rule as other binary TMs
|
15 years ago |
Roberto Ierusalimschy
|
e7ffb1b501
|
macro LUA_USE_LONGJMP allows choosing longjmp when compiling Lua as
C++ code
|
15 years ago |
Roberto Ierusalimschy
|
c066ac10a9
|
better line numbers for function calls and unary/binary operators +
null statement + no more "ambiguous syntax" restriction
|
15 years ago |
Roberto Ierusalimschy
|
1e6940f291
|
'gcstate' now also runs collector until given state + small changes
in 'testC' to test 'lua_topointer' and 'lua_tocfunction'
|
15 years ago |
Roberto Ierusalimschy
|
d8d81ba891
|
new escape sequence '\*' + several comments + moving options from
switch default into cases (as now locale is fixed)
|
15 years ago |
Roberto Ierusalimschy
|
cf22133b69
|
no need to avoid calling ctype functions as now they are implemented
by us (no inefficiencies due to accessing locale information)
|
15 years ago |
Roberto Ierusalimschy
|
b7be05ad27
|
invalid instructions "cannot" happen
|
15 years ago |
Roberto Ierusalimschy
|
afdb19ac82
|
no more 'ccall' nor 'cpcall' functions. (With light C functions they
are obsolete.)
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
15 years ago |
Roberto Ierusalimschy
|
fc6203ee43
|
BUG: 'string.format' may get buffer when there are missing arguments
|
15 years ago |
Roberto Ierusalimschy
|
b2dd246b7a
|
better control in 'totalmem' over choosing counters
|
15 years ago |
Roberto Ierusalimschy
|
d20ff60615
|
new macro LUA_NUMTAGS
|
15 years ago |
Roberto Ierusalimschy
|
d41b467320
|
check memory allows strings to live in the main GC list (it should
work ok).
|
15 years ago |
Roberto Ierusalimschy
|
4541243355
|
patterns now accept '\0' as a regular character
|
15 years ago |
Roberto Ierusalimschy
|
9100f7479a
|
new implementation for Generic Buffer manipulation (using userdata as
temporary buffer space)
|
15 years ago |
Roberto Ierusalimschy
|
055104f5b6
|
keep memory-error message in the global state, so that its use
does not depend on Lua internalizing strings to avoid a string
creation on memory errors
|
15 years ago |
Roberto Ierusalimschy
|
28aa733c15
|
macro 'eqstr' was being used to compare non-string entities
|
15 years ago |
Roberto Ierusalimschy
|
6abde1b05a
|
no need to keep "_ENV" name in global state (can be kept in lex state)
|
15 years ago |
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
15 years ago |
Roberto Ierusalimschy
|
a2f98314a3
|
'lua_pushstring' now uses 'luaS_new'
|
15 years ago |
Roberto Ierusalimschy
|
a09c8d7beb
|
cannot sweep main thread in sweepstring phase
|
15 years ago |
Roberto Ierusalimschy
|
f80ff7a336
|
'luaS_new' changed from macro to function
|
15 years ago |
Roberto Ierusalimschy
|
a08fc34ee4
|
avoid using 'luaS_new' when can use 'luaS_newlstr'
|
15 years ago |
Roberto Ierusalimschy
|
d00d2eaf51
|
small changes in 'luaO_pushvfstring'
|
15 years ago |
Roberto Ierusalimschy
|
11126422d9
|
option to return GC to normal (incremental, non generational) mode
|
15 years ago |
Roberto Ierusalimschy
|
e54668b696
|
added proper code to trace garbage collection
|
15 years ago |
Roberto Ierusalimschy
|
9eb832de54
|
work related to hooks moved from 'luaV_execute' to 'traceexec'
|
15 years ago |
Roberto Ierusalimschy
|
82a1f5d354
|
comments
|
15 years ago |
Roberto Ierusalimschy
|
a8d3aa14fd
|
global table now is only kept in the registry
|
15 years ago |
Roberto Ierusalimschy
|
064e406f67
|
no more fenvs!
|
15 years ago |
Roberto Ierusalimschy
|
5c87f61e6b
|
major collections in generational mode
|
15 years ago |
Roberto Ierusalimschy
|
3aa9598177
|
'mainthread' is not inserted in the 'allgc' list anymore, but swept
separately.
|
15 years ago |
Roberto Ierusalimschy
|
64d39ed1b6
|
generational mode no longer sweep old objects
|
15 years ago |