summaryrefslogtreecommitdiff
path: root/lfunc.h
Commit message (Collapse)AuthorAgeFilesLines
* DetailsRoberto Ierusalimschy2019-11-181-2/+2
|
* Do not collect open upvaluesRoberto Ierusalimschy2019-07-221-1/+1
| | | | | | | | Open upvalues are kept alive together with their corresponding stack. This change makes a simpler and safer fix to the issue in commit 440a5ee78c8, about upvalues in the list of open upvalues being collected while others are being created. (That previous fix may not be correct.)
* Fixed bug for emergency collection in upvalue creationRoberto Ierusalimschy2019-07-191-1/+1
| | | | | | | | | | | When creating an upvalue, an emergency collection can collect the previous upvalue where the new one would be linked. The following code can trigger the bug, using valgrind on Lua compiled with the -DHARDMEMTESTS option: local x; local y (function () return y end)(); (function () return x end)()
* New functions 'lua_resetthread' and 'coroutine.kill'Roberto Ierusalimschy2018-12-131-0/+11
| | | | | | New functions to reset/kill a thread/coroutine, mainly (only?) to close any pending to-be-closed variable. ('lua_resetthread' also allows a thread to be reused...)
* Handling of memory errors when creating to-be-closed upvaluesRoberto Ierusalimschy2018-10-181-0/+1
|
* First "complete" implementation of to-be-closed variablesRoberto Ierusalimschy2018-10-171-1/+1
| | | | | | | Still missing: - handling of memory errors when creating upvalue (must run closing method all the same) - interaction with coroutines
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2018-08-231-1/+1
| | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept.
* using 'offsetof' to compute the size of parts of a structureRoberto Ierusalimschy2018-02-251-5/+5
|
* janitor work on castsRoberto Ierusalimschy2018-01-281-5/+5
|
* new type 'StackValue' for stack elementsRoberto Ierusalimschy2017-06-291-1/+4
| | | | (we may want to put extra info there in the future)
* barrier for prototype's cache (with new gray list 'protogray' to keepRoberto Ierusalimschy2017-05-041-1/+8
| | | | prototypes to have their caches visited again) + constant 'MAXMISS'
* Upvalues collected like everything else (with mark-sweep) insteadRoberto Ierusalimschy2017-04-111-16/+2
| | | | of reference count (simpler and better for generational mode)
* definition for 'MAXUPVAL' moved for a more "private" place and itsRoberto Ierusalimschy2015-01-131-1/+8
| | | | value and comment corrected to reflect current implementation
* more precision between closure types ('LClosure' x 'CClosure')Roberto Ierusalimschy2014-06-191-3/+3
|
* new list 'twups' to allow traversal of upvalues from dead threadsRoberto Ierusalimschy2014-02-181-1/+5
| | | | (+ fixed some problems with cycles involving those upvalues)
* field 'op' renamed to 'open'Roberto Ierusalimschy2014-02-151-2/+2
|
* type of 'refcount' changed to lu_mem (to ensure there will be noRoberto Ierusalimschy2013-09-111-2/+2
| | | | overflows)
* upvalues collected by reference countRoberto Ierusalimschy2013-08-271-2/+20
|
* double-linked list of all upvalues elliminated and changed to aRoberto Ierusalimschy2013-08-071-2/+1
| | | | traversal of all non-marked threads
* no more 'Proto' objects on the stack. Protos are anchored on outerRoberto Ierusalimschy2012-05-081-2/+2
| | | | Protos or on a Closure, which must be created before the Proto.
* object tag keeps variant bits too -> no need for 'isC' field inRoberto Ierusalimschy2012-01-201-2/+1
| | | | Closures + more strick typing for closure variants
* 'luaF_newLclosure' gets prototype of new closure as argumentRoberto Ierusalimschy2010-06-041-2/+2
|
* no more fenvs!Roberto Ierusalimschy2010-03-261-3/+3
|
* added LUAI_FUNC to functions not in the APIRoberto Ierusalimschy2005-04-251-12/+12
|
* C functions and userdata also have environmentsRoberto Ierusalimschy2005-02-181-3/+3
|
* cleaner way to remark open upvaluesRoberto Ierusalimschy2005-01-181-1/+2
|
* `TObject' renamed to `TValue' + other name changes and better assertionsRoberto Ierusalimschy2003-12-101-4/+4
| | | | for incremental garbage collection
* macros for closure sizes are globalRoberto Ierusalimschy2003-11-241-1/+8
|
* it's ok to dump functions with upvaluesRoberto Ierusalimschy2003-10-201-1/+2
|
* name changes to avoid name collision between macros and variablesRoberto Ierusalimschy2003-03-181-2/+2
|
* first implementation of independent global table per functionRoberto Ierusalimschy2002-06-201-2/+2
|
* new implementation for lua upvalues (sugested by E.T.): simpler and solvesRoberto Ierusalimschy2001-11-291-1/+1
| | | | a bug for multi-stacks
* no more explicit support for wide-chars; too much troble...Roberto Ierusalimschy2001-11-281-2/+2
|
* new definitions for closure structuresRoberto Ierusalimschy2001-10-021-6/+1
|
* first implementation of unrestricted static scopingRoberto Ierusalimschy2001-09-071-2/+9
|
* first (big) step to support wide charsRoberto Ierusalimschy2001-02-231-2/+2
|
* `free' gets size of the block: complete control over memory useRoberto Ierusalimschy2000-12-281-2/+1
|
* new way to count `nblocks' for GC (try to count bytes).Roberto Ierusalimschy2000-09-291-1/+2
|
* new version of debug systemRoberto Ierusalimschy2000-06-261-3/+2
|
* some name changesRoberto Ierusalimschy2000-03-101-4/+4
|
* comments.Roberto Ierusalimschy1999-12-271-2/+2
|
* first implementation of multiple states (reentrant code).Roberto Ierusalimschy1999-11-221-5/+5
|
* some more `const'sRoberto Ierusalimschy1999-10-141-2/+3
|
* simplified version of `gc' tag method (only for userdata now).Roberto Ierusalimschy1999-10-041-3/+3
|
* "const" !!!Roberto Ierusalimschy1999-08-161-2/+2
|
* optimization: closures without upvalues don't need to be closuresRoberto Ierusalimschy1997-12-151-2/+1
|
* first implementation of centralized global state.Roberto Ierusalimschy1997-11-191-4/+1
|
* first version of Cclosures.Roberto Ierusalimschy1997-10-241-1/+2
|
* better way to traverse GCnode lists.Roberto Ierusalimschy1997-09-261-3/+3
|
* Lua Function structuresRoberto Ierusalimschy1997-09-161-0/+26