aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * More orderliness in casts of enumerationsRoberto Ierusalimschy2023-03-272-27/+57
| |
| * More regularity in uses of enums in 'lcode.c'Roberto Ierusalimschy2023-03-241-18/+18
| |
| * Bug: Loading a corrupted binary file can segfaultRoberto Ierusalimschy2023-03-173-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.
| * DetailsRoberto Ierusalimschy2023-03-091-3/+17
| | | | | | | | Comments in 'onelua.c'
| * Corrected support for 16-bit systemsRoberto Ierusalimschy2023-03-093-10/+8
| | | | | | | | | | We still need access to a 16-bit system to correctly test these changes.
| * Bug: Wrong line in error message for arith. errorsRoberto Ierusalimschy2023-02-082-0/+12
| | | | | | | | | | It also causes 'L->top' to be wrong when the error happens, triggering an 'assert'.
| * Simpler definition for LUA_STRFTIMEOPTIONSRoberto Ierusalimschy2023-02-071-15/+6
| | | | | | | | There is no need for those intermediate definitions.
* | Clock component removed from 'luaL_makeseed'Roberto Ierusalimschy2023-03-234-11/+9
| | | | | | | | 'clock' can be quite slow on some machines.
* | New function 'luaL_makeseed'Roberto Ierusalimschy2023-03-209-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.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2023-02-023-5/+33
|\|
| * New macro LUA_USE_IOSRoberto Ierusalimschy2023-02-022-12/+11
| | | | | | | | | | Do not try to detect automatically whether system is iOS; it is simpler and more reliable to let the programmer inform that.
| * Small changes in hash of pointersRoberto Ierusalimschy2023-02-021-4/+17
| | | | | | | | | | When converting from pointer to integer, use 'uintptr_t' if available; otherwise try 'uintmax_t', and use 'size_t' as last resource.
| * Fix absence of 'system' in iOSRoberto Ierusalimschy2023-01-241-1/+17
| | | | | | | | | | Despite claiming to be ISO, the C library in some Apple platforms does not implement 'system'.
* | Do not avoid major collections when GCdebt is zeroRoberto Ierusalimschy2022-12-291-5/+2
| | | | | | | | | | 'collectgarbage("step")' (without an argument) does not have any special meaning, it means "do a step with some default size".
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-2826-261/+335
|\|
| * Avoid excessive name pollution in test filesRoberto Ierusalimschy2022-12-2826-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.
* | 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.