aboutsummaryrefslogtreecommitdiff
path: root/testes (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-12-20Towards Lua 5.5Roberto Ierusalimschy3-5/+5
2022-12-20Dump doesn't need to reuse 'source'Roberto Ierusalimschy3-12/+35
All strings are being reused now, including 'source'.
2022-12-15Dump/undump reuse stringsRoberto Ierusalimschy5-12/+77
A repeated string in a dump is represented as an index to its first occurence, instead of another copy of the string.
2022-12-15Small change in barrier macrosRoberto Ierusalimschy1-8/+9
Reuse macros for objects when defining the macros for values.
2022-12-15Small improvements in 'lmem.c'Roberto Ierusalimschy1-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.)
2022-12-14Details in some header filesRoberto Ierusalimschy3-11/+21
Identifier LUA_NUMTAGS was deprecated (changed to LUA_NUMTYPES) + better handling of some inclusion loops.
2022-12-13Changed signal of GC debtRoberto Ierusalimschy6-25/+22
Positive debts seems more natural then negative ones.
2022-12-13Revamp of GC parametersRoberto Ierusalimschy6-41/+61
More uniformity when handling GC parameters + avoid divisions by 100 when applying them.
2022-12-09Reduce calls to 'luaC_step' when GC is stoppedRoberto Ierusalimschy1-3/+6
2022-12-07New function 'luaL_openselectedlibs'Roberto Ierusalimschy7-69/+71
Makes it easier to start Lua with only some standard libraries.
2022-12-06Simplification in handling of GC debtRoberto Ierusalimschy2-20/+22
Each incremental step has always the same size (stepsize), and the debt for next step also is always the same.
2022-12-02DetailsRoberto Ierusalimschy1-5/+5
Parentheses and comments.
2022-11-29Simpler control for major collectionsRoberto Ierusalimschy6-136/+77
2022-11-24Removed GC checks from function callsRoberto Ierusalimschy5-20/+10
Function calls do not create new objects. (It may use memory with stack reallocation, but now that is irrelevant to the GC.)
2022-11-23'l_mem' renamed to 'l_obj' to count objectsRoberto Ierusalimschy6-49/+51
2022-11-23First version of GC counting objects for controlRoberto Ierusalimschy9-156/+162
Still needs to review generational mode.
2022-11-23Stop GC while building initial stateRoberto Ierusalimschy1-1/+3
2022-11-08Removed unused field 'UpVal.tbc'Roberto Ierusalimschy2-4/+2
2022-11-03Added a counter of the total number of existing objectsRoberto Ierusalimschy3-0/+5
It may simplify the control of the garbage collector.
2022-11-01Threads are created like other objectsRoberto Ierusalimschy3-12/+16
Using a version of 'luaC_newobj' that allows offsets (extra space before the object itself).
2022-11-01Tables have a 'lastfree' information only when neededRoberto Ierusalimschy7-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.
2022-10-31Stack reallocation done with a single reallocRoberto Ierusalimschy2-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.
2022-10-29Stack indices changed to union'sRoberto Ierusalimschy19-370/+384
That will allow to change pointers to offsets while reallocating the stack.
2022-10-26DetailsRoberto Ierusalimschy1-2/+7
Added comments in the makefile about other useful '-fsanitize' options.
2022-10-25Bug: stack overflow with nesting of coroutine.closeRoberto Ierusalimschy6-6/+38
2022-10-21Removed test function 'luaH_isdummy'Roberto Ierusalimschy2-3/+0
It was not being used anywhere.
2022-10-19Option '-l g=mod' added to the manualRoberto Ierusalimschy1-11/+12
Plus some other improvements in the manual.
2022-10-19DetailsRoberto Ierusalimschy2-7/+7
Some cast operations rewritten to use respective macros.
2022-10-19Portability issue in a test for 'string.format'Roberto Ierusalimschy1-2/+7
2022-09-23Negation in constant folding of '>>' may overflowRoberto Ierusalimschy4-4/+19
2022-09-23Small simplification in overflow check in 'getfield'Roberto Ierusalimschy2-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.
2022-09-23Bug: 'utf8.codes' accepts spurious continuation bytesRoberto Ierusalimschy2-12/+27
2022-09-16New test for table rehashRoberto Ierusalimschy1-9/+29
2022-09-08Note in the manual about using '...' as an expressionRoberto Ierusalimschy1-5/+16
2022-09-07Corrected error message in 'table.remove'Roberto Ierusalimschy1-1/+1
2022-09-06Changed the growth rate of string buffersRoberto Ierusalimschy2-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.)
2022-08-24Bug: 'break' may not properly close variable in a 'for' loopRoberto Ierusalimschy2-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.
2022-08-23Simpler handling of Byte Order Mark (BOM)Roberto Ierusalimschy2-26/+56
2022-08-23Bug: set correct pause when (re)entering gen. collection.Roberto Ierusalimschy1-32/+31
2022-08-19Better documentation for 'multires' expressionsRoberto Ierusalimschy3-75/+120
Manual has a new section explaining multires expressions, lists of expressions, and adjustments. This commit also corrects some comments in the code.
2022-05-26More checks and documentation for uses of EXTRA_STACKRoberto Ierusalimschy5-13/+47
2022-05-25Bug: 'lua_settop' may use an invalid pointer to stackRoberto Ierusalimschy5-12/+34
2022-05-23'luaV_concat' can use invalidated pointer to stackRoberto Ierusalimschy1-3/+3
Bug introduced in commit 42d40581.
2022-05-23'lua_checkstack' doesn't need to check stack overflowRoberto Ierusalimschy5-26/+17
'luaD_growstack' already checks that. This commit also fixes an internal bug in 'luaD_growstack': a large 'n' could cause an arithmetic overflow when computing 'needed'.
2022-05-20Save stack space while handling errorsRoberto Ierusalimschy2-3/+8
Because error handling (luaG_errormsg) uses slots from EXTRA_STACK, and some errors can recur (e.g., string overflow while creating an error message in 'luaG_runerror', or a C-stack overflow before calling the message handler), the code should use stack slots with parsimony. This commit fixes the bug "Lua-stack overflow when C stack overflows while handling an error".
2022-05-10Details (identation and typos)Roberto Ierusalimschy2-3/+4
2022-05-06Factoring out common parts of 'codearith' and 'codebitwise'Roberto Ierusalimschy1-25/+33
2022-04-25Bug: Wrong code generation in bitwise operationsRoberto Ierusalimschy3-6/+42
2022-04-07New release number (5.4.5)Roberto Ierusalimschy1-2/+2
2022-04-01DetailsRoberto Ierusalimschy4-6/+17
Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack