Roberto Ierusalimschy
35a2fed2d1
Removed deprecated options in 'lua_gc'
Options 'setpause' and 'setstepmul' were deprecated in Lua 5.4.
11 months ago
Roberto Ierusalimschy
63d68bd657
Comments detailing the ages for generational GC
Plus other comments and small details.
11 months ago
Roberto Ierusalimschy
842a83f09c
Panic functions should not raise errors
The standard panic function was using 'lua_tostring', which may raise
a memory-allocation error if error value is a number.
12 months ago
Roberto Ierusalimschy
011850a8f8
Details in the manual
12 months ago
Roberto Ierusalimschy
52b899d60d
Simpler coding for new representation for arrays
With the tags comming first in a cell, we can define the whole cell
as a C type and let C do part of the address computations.
12 months ago
Roberto Ierusalimschy
25cd3d377e
Buffer in 'luai_makeseed' measured in bytes
In the (rare) cases when sizeof(void*) or sizeof(time_t) are not
multiples of sizeof(int), we still can use all their bytes in the seed.
12 months ago
Roberto Ierusalimschy
1028f296a8
Default paths stored as external strings
12 months ago
Roberto Ierusalimschy
6d042a178f
Auxiliary buffer uses external strings
The buffer system from the auxiliary library reuses its buffer
as external memory when closing long strings.
12 months ago
Roberto Ierusalimschy
eabf425c76
Correct anchoring and GC barriers in 'loadString'
Call to 'luaH_setint' could call the GC with the string unanchored.
Moreover, previously saved strings were being assigned to the prototype
without a barrier.
12 months ago
Roberto Ierusalimschy
3b57e37e48
Fixed buffers save long strings as external.
1 year ago
Roberto Ierusalimschy
024f9064f1
External strings
Strings can use external buffers to store their contents.
1 year ago
Roberto Ierusalimschy
7f4906f565
Towards external strings
Long strings have a pointer to string contents.
1 year ago
Roberto Ierusalimschy
b8a9d14032
Details
Comments and parameter name in header file.
1 year ago
Roberto Ierusalimschy
19afd91687
Solving merge issue with use of tables in dump/undump
The use of tables in dump/undump to reuse strings did not exist in
the version that changed the representation of arrays, so it was not
corrected for the new API for tables.
1 year ago
Roberto Ierusalimschy
37c215b43f
Merge branch 'newarray' into nextversion
1 year ago
Roberto Ierusalimschy
9e99f3071d
Merge branch 'master' into nextversion
1 year ago
Roberto Ierusalimschy
fa075b7953
Merge branch 'master' into newarray
1 year ago
Roberto Ierusalimschy
08a077d673
Full implementation of new representation for arrays
1 year ago
Roberto Ierusalimschy
7923dbbf72
Bug: Recursion in 'getobjname' can stack overflow
'getobjname' now broken in two, a basic version that handles locals,
upvalues, and constants, and a full version, which uses the basic
version to handle table accesses (globals and fields).
1 year ago
Roberto Ierusalimschy
43c8e5bded
Full abstraction for representation of array values
1 year ago
Roberto Ierusalimschy
b8b709b6d4
Avoid direct accesses to the array part of a table
1 year ago
Roberto Ierusalimschy
81e4fce530
Simpler test in 'luaH_getint'
The test whether key is inside the array part of a table uses a bit
trick to avoid computing the real size of the array part.
1 year ago
Roberto Ierusalimschy
6baee9ef9d
Removed test for "corrupted binary dump"
Test is too non portable. (For instance, it does not work for
different number types.)
1 year ago
Roberto Ierusalimschy
edd8589f47
Avoid casts from unsigned long to floating-point
Old Microsoft compilers do not support those casts.
1 year ago
Roberto Ierusalimschy
14e416355f
Added suport for Fixed Buffers
A fixed buffer keeps a binary chunk "forever", so that the program
does not need to copy some of its parts when loading it.
1 year ago
Roberto Ierusalimschy
f33cda8d6e
New macro 'getlstr'
Accesses content and length of a 'TString'.
1 year ago
Roberto Ierusalimschy
96f7714237
Field 'Proto.is_vararg' uses only one bit
So that the other bits can be used for other purposes.
1 year ago
Roberto Ierusalimschy
0554581605
Opcode in dumps is stored properly aligned
1 year ago
Roberto Ierusalimschy
07a9eab23a
Cannot use 'getshrstr' before setting 'shrlen'
1 year ago
Roberto Ierusalimschy
c815c2f0eb
Merge branch 'master' into nextversion
1 year ago
Roberto Ierusalimschy
9363a8b990
Documentation for "LUA_NOENV"
Registry field "LUA_NOENV" (that signals to libraries that option -E
is on) now part of the "official" API of Lua stand-alone.
1 year ago
Roberto Ierusalimschy
5ab6a5756b
Bug: Wrong line number for function calls
1 year ago
Roberto Ierusalimschy
9b4f39ab14
More disciplined use of 'getstr' and 'tsslen'
We may want to add other string variants in the future; this change
documents better where the code may need to handle those variants.
1 year ago
Roberto Ierusalimschy
f4211a5ea4
More control over encoding of test files
The few UTF-8 test files are commented as such, and there is only one
non UTF-8 test file (to test non UTF-8 sources).
1 year ago
Roberto Ierusalimschy
1b3f507f62
Bug: Call hook may be called twice when count hook yields
Took the opportunity and moved the code that controls call hooks
in 'luaV_execute' into a function.
1 year ago
Roberto Ierusalimschy
6b51133a98
Thread stacks resized in the atomic phase
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.
1 year ago
Roberto Ierusalimschy
cbae016202
Details
1 year ago
Roberto Ierusalimschy
ab6a949522
Merge branch 'master' into nextversion
1 year ago
Roberto Ierusalimschy
ea39042e13
Removed redundancy in definitions of version/release
String rendering now derived from the numeric original definitions.
1 year ago
Roberto Ierusalimschy
05ec55f16b
Avoid inclusion loop in 'ltm.h'
1 year ago
Roberto Ierusalimschy
f623b96932
Bug: read overflow in 'l_strcmp'
Equality according to 'strcoll' does not imply that strings have
the same length.
1 year ago
Roberto Ierusalimschy
9be74ccc21
Several functions turned 'static'
Several functions that were already being used only inside their
own file have been declared as 'static'.
1 year ago
Roberto Ierusalimschy
819bd51d87
Some cleaning in the new table API
2 years ago
Roberto Ierusalimschy
f8d30826dd
New table API for 'set' functions
2 years ago
Roberto Ierusalimschy
351ccd7332
Towards a new implementation of arrays
The array part of a table wastes too much space, due to padding.
To avoid that, we need to store values in the array as something
different from a TValue. Therefore, the API for table access
should not assume that any value in a table lives in a *TValue.
This commit is the first step to remove that assumption: functions
luaH_get*, instead of returning a *TValue where the value lives,
receive a *TValue where to put the value being accessed.
(We still have to change the luaH_set* functions.)
2 years ago
Roberto Ierusalimschy
09f3c2372f
Option '-l' discards version sufix from file name
Like 'require', the command-line option '-l' discards an optional
version suffix (everything after an hyphen) from a file name when
creating the module name.
2 years ago
Roberto Ierusalimschy
c197885cb0
Small improvements in tests
2 years ago
Roberto Ierusalimschy
934e77a286
Details
- Better comments about short strings in opcodes.
- luaH_newkey made static.
2 years ago
Roberto Ierusalimschy
6443185167
"Emergency" new version 5.4.6
'lua_resetthread' is back to its original signature, to avoid
incompatibilities in the ABI between releases of the same version.
New function 'lua_closethread' added with the "correct" signature.
2 years ago
Roberto Ierusalimschy
e15f1f2bb7
Details
Typos in comments and details in the manual.
2 years ago