aboutsummaryrefslogtreecommitdiff
path: root/lgc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* now that we have a counter for CallInfos, use it for a moreRoberto Ierusalimschy2015-11-021-2/+3
| | | | accurate value for the memory used by a thread
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-3/+2
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* avoid overflows (detected with 'clang -ftrapv')Roberto Ierusalimschy2015-07-131-4/+7
|
* 'clearapihash' -> 'luaS_clearcache' and moved to 'lstring.c' (whichRoberto Ierusalimschy2015-03-251-15/+2
| | | | keeps all code related to this cache)
* avoid testing for NULL when marking objects that cannot be NULLRoberto Ierusalimschy2015-03-041-11/+21
|
* new cache for interning stringsRoberto Ierusalimschy2015-03-041-1/+15
|
* size of short strings stored in a single byte, to reduce the sizeRoberto Ierusalimschy2015-01-161-5/+10
| | | | of struct 'TString'
* comments were wrong (not updated about several changes)Roberto Ierusalimschy2014-12-201-6/+6
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-3/+6
| | | | any other header file
* comments (a few extra quotes around identifiers)Roberto Ierusalimschy2014-10-301-4/+4
|
* added comment and assert about an (impossible) division by zeroRoberto Ierusalimschy2014-10-291-3/+6
|
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-4/+4
|
* details (comments)Roberto Ierusalimschy2014-10-031-4/+4
|
* size for array part of a table ('sizearray') changed from 'int' toRoberto Ierusalimschy2014-09-041-4/+4
| | | | 'unsigned int', which allows twice as many elements in the array part
* weak tables that must be retraversed are kept in 'grayagain' listRoberto Ierusalimschy2014-09-031-42/+38
| | | | | until atomic phase (instead of going to their special lists) + more comments
* 'linktable' -> 'linkgclist' (and used for all links with 'gclist')Roberto Ierusalimschy2014-09-011-22/+16
|
* simpler definition for 'setobj' (trust the compiler for the assignment)Roberto Ierusalimschy2014-07-291-2/+2
|
* 'iswhite' and related macros now can work directly on any objectRoberto Ierusalimschy2014-07-191-8/+8
| | | | (no need to convert to 'GCObject')
* put the restriction that 'luaC_barrierback' works only on tablesRoberto Ierusalimschy2014-07-191-9/+7
| | | | in its prototype
* removed useless assertion (gcstate != GCSpause already implied byRoberto Ierusalimschy2014-07-191-4/+4
| | | | | other assertions) and wrong assertion (setmetatable uses this barrier for tables too)
* type 'Udata' refers directly to structure inside the union (unionRoberto Ierusalimschy2014-07-181-2/+2
| | | | used only for aligning purposes now)
* type 'TString' refers directly to the structure inside the unionRoberto Ierusalimschy2014-07-181-8/+5
| | | | (union used only for size purposes)
* added check for conversion 'obj2gco' (and corrections for smallRoberto Ierusalimschy2014-07-181-5/+8
| | | | problems detected by this check)
* no need for field 'gch' anymoreRoberto Ierusalimschy2014-07-171-32/+32
|
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-2/+2
|
* simpler handling of 'GCScallfin' state + more commentsRoberto Ierusalimschy2014-05-251-57/+47
|
* 'GCmemtrav' does not need to track the entire collection, only eachRoberto Ierusalimschy2014-04-041-8/+8
| | | | single step individually
* LUAI_FUNC is being used only in header filesRoberto Ierusalimschy2014-04-021-2/+2
|
* more precise estimation (GCestimate) for total bytes in use afterRoberto Ierusalimschy2014-04-011-14/+18
| | | | a GC cycle
* details (typos in comments)Roberto Ierusalimschy2014-03-211-2/+2
|
* userdata can have any Lua value as uservalueRoberto Ierusalimschy2014-02-191-4/+7
|
* no need to keep threads in a different GC list, now that there is theRoberto Ierusalimschy2014-02-181-5/+1
| | | | 'twups' list
* new list 'twups' to allow traversal of upvalues from dead threadsRoberto Ierusalimschy2014-02-181-10/+35
| | | | (+ fixed some problems with cycles involving those upvalues)
* field 'op' renamed to 'open'Roberto Ierusalimschy2014-02-151-5/+5
|
* change in the way 'collectgarbage("step", size)' interprets 'size'Roberto Ierusalimschy2014-02-141-15/+7
| | | | | (mimicking the way the GC itself behaves when Lua allocates 'size' Kbytes)
* limit to 'gcstepmul' imposed by 'lua_gc' (+ some details in 'lgc.c')Roberto Ierusalimschy2014-02-131-11/+18
|
* better control for number of finalizers called at each GC cycleRoberto Ierusalimschy2014-02-131-22/+40
| | | | (increases progressively)
* no more local collectionRoberto Ierusalimschy2014-02-131-157/+27
|
* detail (better presentation for 'luaC_step')Roberto Ierusalimschy2014-02-111-12/+11
|
* keep a single list of objects to be finalized (with local and non-localRoberto Ierusalimschy2014-02-111-31/+16
| | | | objects), to ensure finalization order
* detailsRoberto Ierusalimschy2013-12-131-17/+13
|
* use goto to implement a tail call in 'reallymarkobject'Roberto Ierusalimschy2013-12-131-4/+9
|
* CallInfo lists shrinks together with their associated stacksRoberto Ierusalimschy2013-09-171-2/+1
|
* GC local pause configurableRoberto Ierusalimschy2013-09-131-27/+19
|
* check for shrinking string table done only at the end of a GC cycleRoberto Ierusalimschy2013-09-111-5/+10
|
* new names and better order for GC states (sweep first lists thatRoberto Ierusalimschy2013-09-111-15/+15
| | | | can have dead objects)
* threads are kept in a separated GC list, linked after the main threadRoberto Ierusalimschy2013-09-111-9/+12
|
* detail: 'sweepstep' checks end of phase after calling 'sweeplist', soRoberto Ierusalimschy2013-09-111-6/+7
| | | | that phases with small lists return 0 at the first call to 'sweepstep'
* objects in list 'tobefnz' have a GC life-cycle like all othersRoberto Ierusalimschy2013-09-111-9/+12
| | | | (specifically they are cleaned during sweep phase)
* 'luaC_newobj' does not handle special cases; only special caseRoberto Ierusalimschy2013-09-111-13/+6
| | | | now is threads, which do not use 'luaC_newobj' anymore.