aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-231-5/+5
|\
| * Detail in make file for testes/libsRoberto Ierusalimschy2022-12-231-5/+5
| | | | | | | | Everything depends on the Lua version (as given by 'lua.h')
* | Changes in opcodes for generic 'for'Roberto Ierusalimschy2022-12-223-29/+38
| | | | | | | | | | Again, as the control variable is read only, the code doesn't need to keep an internal copy of it.
* | Simplification in opcodes for numerical 'for'Roberto Ierusalimschy2022-12-212-27/+27
| | | | | | | | | | As the control variable is read only, the code doesn't need to keep an internal copy of it.
* | Control variables in for loops are read onlyRoberto Ierusalimschy2022-12-215-37/+40
| |
* | Towards Lua 5.5Roberto Ierusalimschy2022-12-205-129/+12
| |
* | Dump doesn't need to reuse 'source'Roberto Ierusalimschy2022-12-203-12/+35
| | | | | | | | All strings are being reused now, including 'source'.
* | Dump/undump reuse stringsRoberto Ierusalimschy2022-12-155-12/+77
| | | | | | | | | | A repeated string in a dump is represented as an index to its first occurence, instead of another copy of the string.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-151-8/+9
|\|
| * Small change in barrier macrosRoberto Ierusalimschy2022-12-151-8/+9
| | | | | | | | Reuse macros for objects when defining the macros for values.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-151-27/+41
|\|
| * Small improvements in 'lmem.c'Roberto Ierusalimschy2022-12-151-27/+41
| | | | | | | | | | | | Added some auxiliary macros + fixed a bug in compilation option EMERGENCYGCTESTS. (It should not try to force an emergency collection when it cannot run one.)
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-143-11/+21
|\|
| * Details in some header filesRoberto Ierusalimschy2022-12-143-11/+21
| | | | | | | | | | Identifier LUA_NUMTAGS was deprecated (changed to LUA_NUMTYPES) + better handling of some inclusion loops.
* | Changed signal of GC debtRoberto Ierusalimschy2022-12-136-25/+22
| | | | | | | | Positive debts seems more natural then negative ones.
* | Revamp of GC parametersRoberto Ierusalimschy2022-12-136-41/+61
| | | | | | | | | | More uniformity when handling GC parameters + avoid divisions by 100 when applying them.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-122-7/+11
|\|
| * Reduce calls to 'luaC_step' when GC is stoppedRoberto Ierusalimschy2022-12-091-3/+6
| |
| * DetailsRoberto Ierusalimschy2022-12-021-5/+5
| | | | | | | | Parentheses and comments.
* | New function 'luaL_openselectedlibs'Roberto Ierusalimschy2022-12-077-69/+71
| | | | | | | | Makes it easier to start Lua with only some standard libraries.
* | Simplification in handling of GC debtRoberto Ierusalimschy2022-12-062-20/+22
| | | | | | | | | | Each incremental step has always the same size (stepsize), and the debt for next step also is always the same.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-012-4/+2
|\|
| * Stop GC while building initial stateRoberto Ierusalimschy2022-11-231-1/+3
| |
| * Removed unused field 'UpVal.tbc'Roberto Ierusalimschy2022-11-082-4/+2
| |
* | Simpler control for major collectionsRoberto Ierusalimschy2022-11-296-136/+77
| |
* | Removed GC checks from function callsRoberto Ierusalimschy2022-11-245-20/+10
| | | | | | | | | | Function calls do not create new objects. (It may use memory with stack reallocation, but now that is irrelevant to the GC.)
* | 'l_mem' renamed to 'l_obj' to count objectsRoberto Ierusalimschy2022-11-236-49/+51
| |
* | First version of GC counting objects for controlRoberto Ierusalimschy2022-11-239-156/+162
| | | | | | | | Still needs to review generational mode.
* | Added a counter of the total number of existing objectsRoberto Ierusalimschy2022-11-033-0/+5
| | | | | | | | It may simplify the control of the garbage collector.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-11-013-12/+16
|\|
| * Threads are created like other objectsRoberto Ierusalimschy2022-11-013-12/+16
| | | | | | | | | | Using a version of 'luaC_newobj' that allows offsets (extra space before the object itself).
* | Tables have a 'lastfree' information only when neededRoberto Ierusalimschy2022-11-017-24/+84
|/ | | | | Only tables with some minimum number of entries in their hash part have a 'lastfree' field, kept in a header before the node vector.
* Stack reallocation done with a single reallocRoberto Ierusalimschy2022-10-312-22/+52
| | | | | | | To avoid the need of both the old and the new stack addresses valid at the same time, to correct the pointers to the stack, these pointers are changed to offsets before the reallocation and then changed back to pointers after the reallocation.
* Stack indices changed to union'sRoberto Ierusalimschy2022-10-2919-370/+384
| | | | | That will allow to change pointers to offsets while reallocating the stack.
* DetailsRoberto Ierusalimschy2022-10-261-2/+7
| | | | Added comments in the makefile about other useful '-fsanitize' options.
* Bug: stack overflow with nesting of coroutine.closeRoberto Ierusalimschy2022-10-256-6/+38
|
* Removed test function 'luaH_isdummy'Roberto Ierusalimschy2022-10-212-3/+0
| | | | It was not being used anywhere.
* Option '-l g=mod' added to the manualRoberto Ierusalimschy2022-10-191-11/+12
| | | | Plus some other improvements in the manual.
* DetailsRoberto Ierusalimschy2022-10-192-7/+7
| | | | Some cast operations rewritten to use respective macros.
* Portability issue in a test for 'string.format'Roberto Ierusalimschy2022-10-191-2/+7
|
* Negation in constant folding of '>>' may overflowRoberto Ierusalimschy2022-09-234-4/+19
|
* Small simplification in overflow check in 'getfield'Roberto Ierusalimschy2022-09-232-3/+10
| | | | | Subtracting a small non-negative int from a non-negative int cannot overflow, and adding a non-negative int to INT_MIN cannot overflow.
* Bug: 'utf8.codes' accepts spurious continuation bytesRoberto Ierusalimschy2022-09-232-12/+27
|
* New test for table rehashRoberto Ierusalimschy2022-09-161-9/+29
|
* Note in the manual about using '...' as an expressionRoberto Ierusalimschy2022-09-081-5/+16
|
* Corrected error message in 'table.remove'Roberto Ierusalimschy2022-09-071-1/+1
|
* Changed the growth rate of string buffersRoberto Ierusalimschy2022-09-062-6/+7
| | | | | | | | The growth rate of string buffers was reduced from 2 to 1.5 (3/2). As string buffers start larger (256~1024 bytes), they don't need to grow that fast. Moreover, a lower rate allows multiplicative growth up to larger sizes (3/2 of the maximum). (After that, the growth becomes linear, which is mostly useless.)
* Bug: 'break' may not properly close variable in a 'for' loopRoberto Ierusalimschy2022-08-242-8/+28
| | | | | | | Function 'leaveblock' was generating "break" label before removing variables from the closing block. If 'createlabel' created a 'close' instruction (which it did when matching a goto/break that exited the scope of an upvalue), that instruction would use the wrong level.
* Simpler handling of Byte Order Mark (BOM)Roberto Ierusalimschy2022-08-232-26/+56
|
* Bug: set correct pause when (re)entering gen. collection.Roberto Ierusalimschy2022-08-231-32/+31
|