aboutsummaryrefslogtreecommitdiff
path: root/lgc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* '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.
* local collection now calls finalizersRoberto Ierusalimschy2013-09-031-33/+87
|
* new GC state to sweep 'localgc' list + small changes in sweep controlRoberto Ierusalimschy2013-08-301-34/+34
|
* bug: local collection must clear rest of stackRoberto Ierusalimschy2013-08-291-2/+5
|
* tables and userdata all go to local list, tooRoberto Ierusalimschy2013-08-281-2/+4
|
* LOCALBLACK changed to LOCALMARK and used also to control whether objectRoberto Ierusalimschy2013-08-271-6/+10
| | | | | is in 'localgc' list + luaC_newobj by default puts object in 'localgc' list
* upvalues collected by reference countRoberto Ierusalimschy2013-08-271-84/+58
|
* Lua closures go to local, tooRoberto Ierusalimschy2013-08-261-6/+35
|
* C functions and strings now go to the local list; first versionRoberto Ierusalimschy2013-08-231-8/+94
| | | | of the local collector
* "fixed" objects kept in a separated list (instead of being kept inRoberto Ierusalimschy2013-08-211-1/+12
| | | | 'allgc' list with a bit marking them)
* change in string table: string table is now independent of GC lists; allRoberto Ierusalimschy2013-08-211-32/+14
| | | | strings live in 'normal' GC lists
* GC bits SEPARATED and FINALIZEDBIT mixed in FINALIZEDBIT (with simplerRoberto Ierusalimschy2013-08-201-12/+7
| | | | control)
* "barrier" for link prototype->cache changed to be consistent withRoberto Ierusalimschy2013-08-191-23/+1
| | | | GC behavior (link is cleared to preserve invariant)
* added 'local' bit (true => object is only refered by local variables)Roberto Ierusalimschy2013-08-161-9/+17
|
* barrier conditions rewritten to test first 'isblack' and then 'iswhite'Roberto Ierusalimschy2013-08-131-1/+3
| | | | | (during a pause all objects are white, so 'isblack' fails much more often than 'iswhite')
* change to allow collector to stop when it goes to the atomic phaseRoberto Ierusalimschy2013-08-071-16/+17
| | | | (just for debugging)
* double-linked list of all upvalues elliminated and changed to aRoberto Ierusalimschy2013-08-071-9/+16
| | | | traversal of all non-marked threads
* no more generational collection !!!Roberto Ierusalimschy2013-08-051-96/+19
|