summaryrefslogtreecommitdiff
path: root/lgc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-2/+3
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-221-2/+2
|
* using 'lastfree == NULL' to signal that table is using the dummyRoberto Ierusalimschy2016-11-071-2/+2
| | | | node for its hash part + new macro 'allocsizenode'
* new flag in 'CallInfo.callstatus' to tell whether function is runningRoberto Ierusalimschy2016-10-191-1/+3
| | | | as a finalizer
* do not try to ensure that 'sweepgc' points to a live objectRoberto Ierusalimschy2016-03-311-18/+11
| | | | | | when entering sweep phase ('entersweep'); that may be too expensive to be done still inside the atomic step. Walking one single object more often than not will work.
* detail (removed fixed argument to function 'callallpendingfinalizers')Roberto Ierusalimschy2015-12-101-4/+4
|
* added comment and assert about dead keysRoberto Ierusalimschy2015-11-031-3/+8
|
* in 'luaD_call', use two functions instead of one with fixed booleanRoberto Ierusalimschy2015-11-021-2/+2
| | | | argument
* 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
|