Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-03-20 | New function 'luaL_makeseed' | Roberto Ierusalimschy | 9 | -86/+87 | |
This function unifies code from 'lua_newstate', 'math.randomseed', and 'table.sort' that tries to create a value with a minimum level of randomness. | |||||
2023-03-17 | Bug: Loading a corrupted binary file can segfault | Roberto Ierusalimschy | 3 | -2/+22 | |
The size of the list of upvalue names are stored separated from the size of the list of upvalues, but they share the same array. | |||||
2023-03-09 | Details | Roberto Ierusalimschy | 1 | -3/+17 | |
Comments in 'onelua.c' | |||||
2023-03-09 | Corrected support for 16-bit systems | Roberto Ierusalimschy | 3 | -10/+8 | |
We still need access to a 16-bit system to correctly test these changes. | |||||
2023-02-08 | Bug: Wrong line in error message for arith. errors | Roberto Ierusalimschy | 2 | -0/+12 | |
It also causes 'L->top' to be wrong when the error happens, triggering an 'assert'. | |||||
2023-02-07 | Simpler definition for LUA_STRFTIMEOPTIONS | Roberto Ierusalimschy | 1 | -15/+6 | |
There is no need for those intermediate definitions. | |||||
2023-02-02 | New macro LUA_USE_IOS | Roberto Ierusalimschy | 2 | -12/+11 | |
Do not try to detect automatically whether system is iOS; it is simpler and more reliable to let the programmer inform that. | |||||
2023-02-02 | Small changes in hash of pointers | Roberto Ierusalimschy | 1 | -4/+17 | |
When converting from pointer to integer, use 'uintptr_t' if available; otherwise try 'uintmax_t', and use 'size_t' as last resource. | |||||
2023-01-24 | Fix absence of 'system' in iOS | Roberto Ierusalimschy | 1 | -1/+17 | |
Despite claiming to be ISO, the C library in some Apple platforms does not implement 'system'. | |||||
2022-12-29 | Do not avoid major collections when GCdebt is zero | Roberto Ierusalimschy | 1 | -5/+2 | |
'collectgarbage("step")' (without an argument) does not have any special meaning, it means "do a step with some default size". | |||||
2022-12-28 | Avoid excessive name pollution in test files | Roberto Ierusalimschy | 26 | -261/+335 | |
Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use. | |||||
2022-12-23 | Detail in make file for testes/libs | Roberto Ierusalimschy | 1 | -5/+5 | |
Everything depends on the Lua version (as given by 'lua.h') | |||||
2022-12-22 | Changes in opcodes for generic 'for' | Roberto Ierusalimschy | 3 | -29/+38 | |
Again, as the control variable is read only, the code doesn't need to keep an internal copy of it. | |||||
2022-12-21 | Simplification in opcodes for numerical 'for' | Roberto Ierusalimschy | 2 | -27/+27 | |
As the control variable is read only, the code doesn't need to keep an internal copy of it. | |||||
2022-12-21 | Control variables in for loops are read only | Roberto Ierusalimschy | 5 | -37/+40 | |
2022-12-20 | Towards Lua 5.5 | Roberto Ierusalimschy | 5 | -129/+12 | |
2022-12-20 | Dump doesn't need to reuse 'source' | Roberto Ierusalimschy | 3 | -12/+35 | |
All strings are being reused now, including 'source'. | |||||
2022-12-15 | Dump/undump reuse strings | Roberto Ierusalimschy | 5 | -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-15 | Small change in barrier macros | Roberto Ierusalimschy | 1 | -8/+9 | |
Reuse macros for objects when defining the macros for values. | |||||
2022-12-15 | Small improvements in 'lmem.c' | Roberto Ierusalimschy | 1 | -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-14 | Details in some header files | Roberto Ierusalimschy | 3 | -11/+21 | |
Identifier LUA_NUMTAGS was deprecated (changed to LUA_NUMTYPES) + better handling of some inclusion loops. | |||||
2022-12-13 | Changed signal of GC debt | Roberto Ierusalimschy | 6 | -25/+22 | |
Positive debts seems more natural then negative ones. | |||||
2022-12-13 | Revamp of GC parameters | Roberto Ierusalimschy | 6 | -41/+61 | |
More uniformity when handling GC parameters + avoid divisions by 100 when applying them. | |||||
2022-12-09 | Reduce calls to 'luaC_step' when GC is stopped | Roberto Ierusalimschy | 1 | -3/+6 | |
2022-12-07 | New function 'luaL_openselectedlibs' | Roberto Ierusalimschy | 7 | -69/+71 | |
Makes it easier to start Lua with only some standard libraries. | |||||
2022-12-06 | Simplification in handling of GC debt | Roberto Ierusalimschy | 2 | -20/+22 | |
Each incremental step has always the same size (stepsize), and the debt for next step also is always the same. | |||||
2022-12-02 | Details | Roberto Ierusalimschy | 1 | -5/+5 | |
Parentheses and comments. | |||||
2022-11-29 | Simpler control for major collections | Roberto Ierusalimschy | 6 | -136/+77 | |
2022-11-24 | Removed GC checks from function calls | Roberto Ierusalimschy | 5 | -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 objects | Roberto Ierusalimschy | 6 | -49/+51 | |
2022-11-23 | First version of GC counting objects for control | Roberto Ierusalimschy | 9 | -156/+162 | |
Still needs to review generational mode. | |||||
2022-11-23 | Stop GC while building initial state | Roberto Ierusalimschy | 1 | -1/+3 | |
2022-11-08 | Removed unused field 'UpVal.tbc' | Roberto Ierusalimschy | 2 | -4/+2 | |
2022-11-03 | Added a counter of the total number of existing objects | Roberto Ierusalimschy | 3 | -0/+5 | |
It may simplify the control of the garbage collector. | |||||
2022-11-01 | Threads are created like other objects | Roberto Ierusalimschy | 3 | -12/+16 | |
Using a version of 'luaC_newobj' that allows offsets (extra space before the object itself). | |||||
2022-11-01 | Tables have a 'lastfree' information only when needed | Roberto Ierusalimschy | 7 | -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-31 | Stack reallocation done with a single realloc | Roberto Ierusalimschy | 2 | -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-29 | Stack indices changed to union's | Roberto Ierusalimschy | 19 | -370/+384 | |
That will allow to change pointers to offsets while reallocating the stack. | |||||
2022-10-26 | Details | Roberto Ierusalimschy | 1 | -2/+7 | |
Added comments in the makefile about other useful '-fsanitize' options. | |||||
2022-10-25 | Bug: stack overflow with nesting of coroutine.close | Roberto Ierusalimschy | 6 | -6/+38 | |
2022-10-21 | Removed test function 'luaH_isdummy' | Roberto Ierusalimschy | 2 | -3/+0 | |
It was not being used anywhere. | |||||
2022-10-19 | Option '-l g=mod' added to the manual | Roberto Ierusalimschy | 1 | -11/+12 | |
Plus some other improvements in the manual. | |||||
2022-10-19 | Details | Roberto Ierusalimschy | 2 | -7/+7 | |
Some cast operations rewritten to use respective macros. | |||||
2022-10-19 | Portability issue in a test for 'string.format' | Roberto Ierusalimschy | 1 | -2/+7 | |
2022-09-23 | Negation in constant folding of '>>' may overflow | Roberto Ierusalimschy | 4 | -4/+19 | |
2022-09-23 | Small simplification in overflow check in 'getfield' | Roberto Ierusalimschy | 2 | -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-23 | Bug: 'utf8.codes' accepts spurious continuation bytes | Roberto Ierusalimschy | 2 | -12/+27 | |
2022-09-16 | New test for table rehash | Roberto Ierusalimschy | 1 | -9/+29 | |
2022-09-08 | Note in the manual about using '...' as an expression | Roberto Ierusalimschy | 1 | -5/+16 | |
2022-09-07 | Corrected error message in 'table.remove' | Roberto Ierusalimschy | 1 | -1/+1 | |