Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GC back to controling pace counting bytes | Roberto Ierusalimschy | 2024-09-19 | 1 | -4/+4 |
| | | | | Memory is the resource we want to save. Still to be reviewed again. | ||||
* | Rename of fields in global state that control GC | Roberto Ierusalimschy | 2024-09-06 | 1 | -4/+4 |
| | | | | | All fields in the global state that control the pace of the garbage collector prefixed with 'GC'. | ||||
* | '-Wconversion' extended to all options of Lua numbers | Roberto Ierusalimschy | 2024-07-27 | 1 | -3/+3 |
| | |||||
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -3/+3 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | Merge branch 'master' into nextversion | Roberto Ierusalimschy | 2022-12-15 | 1 | -27/+41 |
|\ | |||||
| * | Small improvements in 'lmem.c' | Roberto Ierusalimschy | 2022-12-15 | 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.) | ||||
* | | First version of GC counting objects for control | Roberto Ierusalimschy | 2022-11-23 | 1 | -4/+4 |
|/ | | | | Still needs to review generational mode. | ||||
* | New control for reentrancy of emergency collections | Roberto Ierusalimschy | 2021-02-26 | 1 | -13/+12 |
| | | | | | | Instead of assuming that shrinking a block may be an emergency collection, use an explicit field ('gcstopem') to stop emergency collections while GC is working. | ||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -4/+4 |
| | | | | | | More uses of macros 'likely'/'unlikely' (renamed to 'l_likely'/'l_unlikely'), both in range (extended to the libraries) and in scope (extended to hooks, stack growth). | ||||
* | New macro 'completestate' | Roberto Ierusalimschy | 2021-02-05 | 1 | -2/+2 |
| | |||||
* | Change in macro HARDMEMTESTS for testing GC | Roberto Ierusalimschy | 2020-07-08 | 1 | -1/+1 |
| | | | | | | Macro HARDMEMTESTS broke in two: HARDMEMTESTS forces a full GC cycle at every point where the GC can run. New macro EMERGENCYGCTESTS forces an emergency collection at every memory allocation. | ||||
* | Comments (mosty typos) | Roberto Ierusalimschy | 2019-12-30 | 1 | -1/+1 |
| | |||||
* | Some details in 'lmem.c' and 'lgc.c' | Roberto Ierusalimschy | 2019-07-19 | 1 | -24/+38 |
| | | | | | | | | - Several new comments in 'lmem.c'. - Both 'luaM_growaux_' and 'luaM_shrinkvector_' use 'luaM_saferealloc_' to check for errors. Moreover, the use of 'luaM_saferealloc_' makes 'luaM_shrinkvector_' try again if shrink fails (which can happen now). - In 'checkSizes', save old debt only when needed. | ||||
* | Reviving HARDMEMTESTS | Roberto Ierusalimschy | 2019-07-18 | 1 | -7/+16 |
| | | | | | | | | | | | This commit brings a new implementation for HARDMEMTESTS, which forces an emergency GC whenever possible. It also fixes some issues detected with this option: - A small bug in lvm.c: a closure could be collected by an emergency GC while being initialized. - Some tests: a memory address can be immediatly reused after a GC; for instance, two consecutive '{}' expressions can return exactly the same address, if the first one is not anchored. | ||||
* | Detail: bad assertion in 'luaM_free_' | Roberto Ierusalimschy | 2018-10-23 | 1 | -1/+1 |
| | |||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | no need to check whether libraries and host use the same kernel; | Roberto Ierusalimschy | 2018-06-18 | 1 | -2/+2 |
| | | | | Lua should work correctly with several copies of the kernel | ||||
* | new macros 'likely'/'unlikely' with hints for jump predictions | Roberto Ierusalimschy | 2018-05-30 | 1 | -17/+27 |
| | | | | (used only in errors for now) | ||||
* | janitor work on casts | Roberto Ierusalimschy | 2018-01-28 | 1 | -5/+5 |
| | |||||
* | 'luaM_shrinkvector' raises an error if it cannot shrink the block | Roberto Ierusalimschy | 2017-12-11 | 1 | -2/+2 |
| | | | | | (several parts of Lua use array size in protos as proxies for number of valid elements) | ||||
* | more freedom in handling memory-allocation errors (not all allocations | Roberto Ierusalimschy | 2017-12-08 | 1 | -9/+21 |
| | | | | | automatically raise an error), which allows fixing a bug when resizing a table. | ||||
* | using explicit tests for allocation overflow whenever possible | Roberto Ierusalimschy | 2017-12-07 | 1 | -13/+15 |
| | |||||
* | avoid using one function for different tasks (malloc, free, etc.) | Roberto Ierusalimschy | 2017-12-06 | 1 | -11/+66 |
| | |||||
* | allocation function is not exactly API (and cannot raise errors | Roberto Ierusalimschy | 2015-03-06 | 1 | -3/+2 |
| | | | | like other API functions); better not use 'api_check' for cheking it. | ||||
* | do not attempt emergency collection while building state (it is | Roberto Ierusalimschy | 2015-03-03 | 1 | -3/+5 |
| | | | | useless, and state can be inconsistent) | ||||
* | comments (references to "ANSI C" changed to "ISO C", which is the | Roberto Ierusalimschy | 2014-11-02 | 1 | -2/+2 |
| | | | | international name | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -4/+4 |
| | |||||
* | removed unused parameter Ä'L' in macro 'api_check' and company | Roberto Ierusalimschy | 2014-07-15 | 1 | -2/+2 |
| | |||||
* | emergency collection can happen even when collector is stopped | Roberto Ierusalimschy | 2014-06-26 | 1 | -5/+3 |
| | |||||
* | removed debug code | Roberto Ierusalimschy | 2012-05-23 | 1 | -17/+1 |
| | |||||
* | avoid 'return' "to avoid warnings" | Roberto Ierusalimschy | 2011-11-30 | 1 | -3/+2 |
| | |||||
* | detail in extra trace code: total bytes is given by 'gettotalbytes', | Roberto Ierusalimschy | 2011-09-20 | 1 | -2/+2 |
| | | | | not by 'totalbytes' counter. | ||||
* | change in the relationship between totalbytes and GCdebt - luaM_realloc_ | Roberto Ierusalimschy | 2010-12-20 | 1 | -3/+2 |
| | | | | is too critical to update two counters | ||||
* | better control for GC running or stopped | Roberto Ierusalimschy | 2010-12-20 | 1 | -8/+5 |
| | |||||
* | typos in comments | Roberto Ierusalimschy | 2010-05-05 | 1 | -3/+3 |
| | |||||
* | changes in patch to monitor garbage collection | Roberto Ierusalimschy | 2010-05-04 | 1 | -10/+6 |
| | |||||
* | wrong comment | Roberto Ierusalimschy | 2010-04-30 | 1 | -2/+2 |
| | |||||
* | new way to control GC speed | Roberto Ierusalimschy | 2010-04-29 | 1 | -4/+7 |
| | |||||
* | added proper code to trace garbage collection | Roberto Ierusalimschy | 2010-04-02 | 1 | -1/+23 |
| | |||||
* | allocator function receives the tag of object being allocated in 'osize' | Roberto Ierusalimschy | 2009-12-17 | 1 | -9/+9 |
| | | | | when 'ptr' is NULL. | ||||
* | details | Roberto Ierusalimschy | 2006-09-14 | 1 | -3/+3 |
| | |||||
* | little better error messages for internal arrays overflows | Roberto Ierusalimschy | 2006-09-14 | 1 | -2/+2 |
| | |||||
* | emergency garbage collector (core forces a GC when allocation fails) | Roberto Ierusalimschy | 2006-07-11 | 1 | -6/+19 |
| | |||||
* | removal of dead code | Roberto Ierusalimschy | 2005-12-26 | 1 | -17/+1 |
| | |||||
* | details | Roberto Ierusalimschy | 2005-02-23 | 1 | -8/+8 |
| | |||||
* | auxiliar patch to monitor garbage collection | Roberto Ierusalimschy | 2005-01-14 | 1 | -1/+17 |
| | |||||
* | better control of overflows in size computations | Roberto Ierusalimschy | 2004-12-01 | 1 | -8/+6 |
| | |||||
* | better control over memory-size overflows | Roberto Ierusalimschy | 2004-11-19 | 1 | -8/+13 |
| | |||||
* | better control for GC cycles | Roberto Ierusalimschy | 2004-08-30 | 1 | -3/+2 |
| |