aboutsummaryrefslogtreecommitdiff
path: root/lgc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Main thread is a regular field of global_StateRoberto Ierusalimschy2025-01-311-4/+4
| | | | | They were already allocated as a single block, so there is no need for the global_State to point to its main thread.
* New type 'TStatus' for thread status/error codesRoberto Ierusalimschy2025-01-301-1/+1
|
* DetailsRoberto Ierusalimschy2025-01-161-2/+2
| | | | New year (2024->2025), typos in comments
* New way to keep hints for table lengthRoberto Ierusalimschy2024-11-291-4/+4
| | | | | | | | | | Instead of using 'alimit' for keeping the size of the array and at the same time being a hint for '#t', a table now keeps these two values separate. The Table structure has a field 'asize' with the size of the array, while the length hint is kept in the array itself. That way, tables with no array part waste no space with that field. Moreover, the space for the hint may have zero cost for small arrays, if the array of tags plus the hint still fits in a single word.
* 'objsize' returns 'l_mem'Roberto Ierusalimschy2024-11-151-13/+26
| | | | Sums of size_t may not fit in a size_t.
* Some changes in default GC parametersRoberto Ierusalimschy2024-10-231-3/+1
|
* Small bug in 'luaE_luaE_statesize'Roberto Ierusalimschy2024-10-211-1/+1
| | | | Plus, function was renamed to 'luaE_threadsize'.
* Better support in 'ltests' for tracing the GCRoberto Ierusalimschy2024-10-211-7/+10
|
* Some adjustments in transition minor->majorRoberto Ierusalimschy2024-10-181-36/+42
| | | | Plus extra comments and other details.
* 'objsize' broke in smaller piecesRoberto Ierusalimschy2024-09-301-38/+20
|
* GC back to controling pace counting bytesRoberto Ierusalimschy2024-09-191-125/+182
| | | | Memory is the resource we want to save. Still to be reviewed again.
* Rename of fields in global state that control GCRoberto Ierusalimschy2024-09-061-14/+14
| | | | | All fields in the global state that control the pace of the garbage collector prefixed with 'GC'.
* Added gcc option '-Wconversion'Roberto Ierusalimschy2024-07-271-7/+7
| | | | | No warnings for standard numerical types. Still pending alternative numerical types.
* DetailsRoberto Ierusalimschy2024-05-081-1/+1
| | | | | Corrections in comments and manual. Added note in the manual about local variables in the REPL.
* DetailsRoberto Ierusalimschy2024-03-281-3/+0
|
* Removed "bulk operations"Roberto Ierusalimschy2024-03-151-29/+7
| | | | Negligible performance gains don't justify extra complexity.
* Added "bulk operations" to arraysRoberto Ierusalimschy2024-03-151-17/+42
| | | | | A few operations on arrays can be performed "in bulk", treating all tags of a cell as a simple (or a few) word(s).
* Removed uses of LUA_NUMTAGSRoberto Ierusalimschy2024-01-131-1/+1
| | | | That constant was already deprecated (see commit 6aabf4b15e7).
* A few more tweaks in the garbage collectorRoberto Ierusalimschy2024-01-101-11/+12
|
* New option "setparms" for 'collectgarbage'Roberto Ierusalimschy2023-12-221-8/+8
| | | | | | The generational mode also uses the parameters for the incremental mode in its major collections, so it should be easy to change those parameters without having to change the GC mode.
* GC parameters encoded as floating-point bytesRoberto Ierusalimschy2023-12-201-9/+9
| | | | | This encoding brings more precision and a larger range for these parameters.
* Option 0 for step multiplier makes GC non-incrementalRoberto Ierusalimschy2023-12-201-23/+44
|
* Check minor->major made at the end of a minor cycleRoberto Ierusalimschy2023-12-071-60/+35
| | | | | It does not make sense to wait for another cycle to decide when much of the information about creation of old objects is already available.
* First criteria for shifts minor<->majorRoberto Ierusalimschy2023-12-071-26/+55
|
* Major collections done incrementallyRoberto Ierusalimschy2023-12-061-68/+73
| | | | | Major collections do not need to "stop the world". Still pending: criteria for shifts minor-major, shifts generational-incremental.
* Removed macro 'changeage'Roberto Ierusalimschy2023-12-011-12/+12
| | | | | It is simpler to use always 'setage'. The saving from 'changeage' is too irrelevant.
* Comments detailing the ages for generational GCRoberto Ierusalimschy2023-11-291-4/+7
| | | | Plus other comments and small details.
* External stringsRoberto Ierusalimschy2023-11-091-1/+3
| | | | Strings can use external buffers to store their contents.
* Towards external stringsRoberto Ierusalimschy2023-11-081-2/+2
| | | | Long strings have a pointer to string contents.
* Merge branch 'newarray' into nextversionRoberto Ierusalimschy2023-11-071-7/+18
|\
| * Merge branch 'master' into newarrayRoberto Ierusalimschy2023-11-031-8/+12
| |\
| * | Full implementation of new representation for arraysRoberto Ierusalimschy2023-11-031-4/+4
| | |
| * | Full abstraction for representation of array valuesRoberto Ierusalimschy2023-10-301-7/+18
| | |
* | | Merge branch 'master' into nextversionRoberto Ierusalimschy2023-08-231-6/+10
|\ \ \ | | |/ | |/|
| * | More disciplined use of 'getstr' and 'tsslen'Roberto Ierusalimschy2023-08-171-3/+5
| | | | | | | | | | | | | | | We may want to add other string variants in the future; this change documents better where the code may need to handle those variants.
| * | Thread stacks resized in the atomic phaseRoberto Ierusalimschy2023-07-131-3/+5
| | | | | | | | | | | | | | | | | | | | | Although stack resize can be a little expensive, it seems unusual to have too many threads needing resize during one GC cycle. On the other hand, the change allows full collections to skip the propagate phase, going straight from a pause to the atomic phase.
| * | Several functions turned 'static'Roberto Ierusalimschy2023-05-221-2/+2
| |/ | | | | | | | | Several functions that were already being used only inside their own file have been declared as 'static'.
* | 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".
* | Changed signal of GC debtRoberto Ierusalimschy2022-12-131-8/+8
| | | | | | | | Positive debts seems more natural then negative ones.
* | Revamp of GC parametersRoberto Ierusalimschy2022-12-131-9/+5
| | | | | | | | | | More uniformity when handling GC parameters + avoid divisions by 100 when applying them.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-121-2/+6
|\|
| * Reduce calls to 'luaC_step' when GC is stoppedRoberto Ierusalimschy2022-12-091-3/+6
| |
* | Simplification in handling of GC debtRoberto Ierusalimschy2022-12-061-7/+5
| | | | | | | | | | Each incremental step has always the same size (stepsize), and the debt for next step also is always the same.
* | Simpler control for major collectionsRoberto Ierusalimschy2022-11-291-120/+70
| |
* | Removed GC checks from function callsRoberto Ierusalimschy2022-11-241-1/+2
| | | | | | | | | | 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-231-25/+25
| |
* | First version of GC counting objects for controlRoberto Ierusalimschy2022-11-231-132/+121
| | | | | | | | Still needs to review generational mode.
* | Added a counter of the total number of existing objectsRoberto Ierusalimschy2022-11-031-0/+2
|/ | | | It may simplify the control of the garbage collector.
* Threads are created like other objectsRoberto Ierusalimschy2022-11-011-4/+10
| | | | | Using a version of 'luaC_newobj' that allows offsets (extra space before the object itself).
* Stack indices changed to union'sRoberto Ierusalimschy2022-10-291-10/+10
| | | | | That will allow to change pointers to offsets while reallocating the stack.