aboutsummaryrefslogtreecommitdiff
path: root/lgc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* bug: garbage collector can trigger too many times in recursive loops,Roberto Ierusalimschy2013-04-261-3/+10
| | | | because it was not computing the size of CallInfo structures in threads
* typos in commentsRoberto Ierusalimschy2013-03-161-2/+2
|
* cast to avoid warningsRoberto Ierusalimschy2013-03-151-2/+2
|
* more precise control for GC pause (based on threshold)Roberto Ierusalimschy2012-10-191-19/+27
|
* removed commented-out line (for debugging)Roberto Ierusalimschy2012-10-031-2/+1
|
* small bug: generational mode is always in 'propagate' mode onlyRoberto Ierusalimschy2012-09-111-5/+7
| | | | | outside the collector: during collection of course it must go to other modes.
* collector in generational mode must be in 'propagate' state whenRoberto Ierusalimschy2012-07-041-17/+13
| | | | not running a collection
* major collections in generational mode are triggered by comparison withRoberto Ierusalimschy2012-07-021-3/+6
| | | | the memory estimate from last major collection
* includes counts from 'sweeptolive' in cost of atomic stepRoberto Ierusalimschy2012-05-311-8/+15
|
* small bug in error handling of finalizers (cannot call lua_tostringRoberto Ierusalimschy2012-05-311-27/+45
| | | | | | 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)
* bug: object being moved to 'finobj' list might not be sweeped byRoberto Ierusalimschy2012-05-301-4/+7
| | | | the collector
* only count in 'atomic' objects marked for the first timeRoberto Ierusalimschy2012-05-291-5/+8
|
* more efficient way to apply 'stepmul' + some changes in GC parametersRoberto Ierusalimschy2012-05-281-18/+29
|
* definition of 'GCSTEPSIZE' moved to header file + small changesRoberto Ierusalimschy2012-05-231-5/+2
|
* detail ('char' should be 'const char')Roberto Ierusalimschy2012-05-221-2/+2
|
* merge of fields 'lastmajormem' (used in gen. mode) and 'estimate'Roberto Ierusalimschy2012-05-221-8/+9
| | | | (used in inc. mode)
* try to avoid sweeping new objects created with new white (andRoberto Ierusalimschy2012-05-221-24/+38
| | | | therefore not collectable in the current cycle)
* simpler macro 'luaC_condGC' + better 'step' in 'lua_gc' +Roberto Ierusalimschy2012-05-211-6/+24
| | | | | micro bug in 'luaC_checkfinalizer' (current sweep object could be removed from 'allgc' list)
* revamp of the GC pace control; more like 5.1: any X Kbytes allocatedRoberto Ierusalimschy2012-05-201-96/+117
| | | | makes the GC handle f(X) Kbytes of objects
* removed 'stringmark' trickRoberto Ierusalimschy2012-05-141-25/+19
|
* test for whether collector is running moved from function toRoberto Ierusalimschy2012-05-111-11/+3
| | | | macro 'luaC_condGC'.
* no more 'Proto' objects on the stack. Protos are anchored on outerRoberto Ierusalimschy2012-05-081-2/+1
| | | | Protos or on a Closure, which must be created before the Proto.
* first implementation of long stringsRoberto Ierusalimschy2012-01-251-10/+16
|
* Lua never uses Ã'assert' (it is always 'lua_assert')Roberto Ierusalimschy2012-01-231-2/+2
|
* object tag keeps variant bits too -> no need for 'isC' field inRoberto Ierusalimschy2012-01-201-23/+41
| | | | Closures + more strick typing for closure variants
* error message: "tag method" -> "metamethod"Roberto Ierusalimschy2011-12-021-4/+4
|
* avoid some warnings about converting 32-bit shifts into 64-bit resultsRoberto Ierusalimschy2011-11-281-6/+12
|
* 'luaC_separateudata' renamed to 'separatetobefnz' and called onlyRoberto Ierusalimschy2011-10-031-10/+9
| | | | from 'lgc.c'
* retraverse all gray lists together to avoid traversing some weakRoberto Ierusalimschy2011-10-031-14/+34
| | | | tables twice (as they may change lists when traversed)
* dead objects are not collectable.Roberto Ierusalimschy2011-09-241-3/+4
|
* better(?) scheme for cleaning weak tables; all ressurected objectsRoberto Ierusalimschy2011-09-241-18/+44
| | | | are removed from weak values before finalization
* avoid clearing ephemeron tables that have nothing to be cleanedRoberto Ierusalimschy2011-09-191-13/+17
| | | | (no white elements)
* macro 'checkconsistency' moved to this file, as it is used onlyRoberto Ierusalimschy2011-05-051-1/+5
| | | | here
* full collection does not restart collector + avoid changing GCRoberto Ierusalimschy2010-12-291-12/+20
| | | | state if an error happens in a step
* change in the relationship between totalbytes and GCdebt - luaM_realloc_Roberto Ierusalimschy2010-12-201-10/+13
| | | | is too critical to update two counters
* better control for GC running or stoppedRoberto Ierusalimschy2010-12-201-9/+12
|
* 'micro' bug: when closing state, old objects are finalized (breakingRoberto Ierusalimschy2010-12-031-5/+8
| | | | assertion)
* finalizers (__gc) for tablesRoberto Ierusalimschy2010-11-261-36/+36
|
* corrected warnings from different compilers (mostly casts and smallRoberto Ierusalimschy2010-10-251-2/+2
| | | | details)
* new parameter 'majorinc' to control frequency of major collectionsRoberto Ierusalimschy2010-09-031-2/+2
| | | | in generational mode
* typo in commentsRoberto Ierusalimschy2010-06-301-2/+2
|
* macro 'key2tal' replaced by 'gkey' (as both were equal)Roberto Ierusalimschy2010-06-251-3/+3
|
* better barrier for prototypesRoberto Ierusalimschy2010-06-071-28/+20
|
* Lua closures are cached for reuseRoberto Ierusalimschy2010-06-041-8/+42
|
* bug: generational collection was not running collector! (must writeRoberto Ierusalimschy2010-06-021-2/+3
| | | | a test for this...)
* really stop collection during finalizersRoberto Ierusalimschy2010-05-171-2/+2
|
* avoid "strong" castRoberto Ierusalimschy2010-05-111-2/+3
|
* corrected some places where an old object could end up in frontRoberto Ierusalimschy2010-05-101-5/+4
| | | | of a new one + minimal documentation about this problem
* new macro 'resetoldbit'Roberto Ierusalimschy2010-05-101-6/+6
|
* avoid 'else assert' (which may result in an empty else)Roberto Ierusalimschy2010-05-071-4/+4
|