Commit Graph

  • 986c11daa6 removal of weird construction in definition of LUA_STRFTIMEOPTIONS (two empty strings concatenated as in "" "") Roberto Ierusalimschy 2014-02-26 12:55:58 -03:00
  • c6c41e85b2 more uniformity for defining system-dependent features Roberto Ierusalimschy 2014-02-26 12:27:56 -03:00
  • 87c930676f detail (comments) Roberto Ierusalimschy 2014-02-26 09:39:30 -03:00
  • 11e762dbcd added macro MAX_UINTEGER Roberto Ierusalimschy 2014-02-26 09:38:43 -03:00
  • 5c9cb5f0b1 detail (comment) Roberto Ierusalimschy 2014-02-26 09:38:18 -03:00
  • fed236ca7f detail (unknown lines are marked as -1, not 0) Roberto Ierusalimschy 2014-02-25 11:31:16 -03:00
  • 295f7ac04e added 'stip' parameter to lua_dump/string.dump Roberto Ierusalimschy 2014-02-25 11:30:21 -03:00
  • 6318de80d3 added 'strip' parameter to lua_dump/string.dump Roberto Ierusalimschy 2014-02-25 11:30:21 -03:00
  • 5715de344f 'read_all' does not need to grow buffer, as 'luaL_prepbuffsize' already does that Roberto Ierusalimschy 2014-02-21 11:39:50 -03:00
  • c86b9da022 userdata can have any Lua value as uservalue Roberto Ierusalimschy 2014-02-19 10:52:42 -03:00
  • a4c6dcf999 detail (better error messages for light userdata) Roberto Ierusalimschy 2014-02-19 10:48:53 -03:00
  • 3f78de256e no need to keep threads in a different GC list, now that there is the 'twups' list Roberto Ierusalimschy 2014-02-18 10:46:26 -03:00
  • d764cc5522 new list 'twups' to allow traversal of upvalues from dead threads (+ fixed some problems with cycles involving those upvalues) Roberto Ierusalimschy 2014-02-18 10:39:37 -03:00
  • ffa96d988d field 'op' renamed to 'open' Roberto Ierusalimschy 2014-02-15 11:12:01 -02:00
  • 6a24bd17a8 no more second result from 'collectgarbage"count"' (as Lua seldom will need lua_Number to be an integer) Roberto Ierusalimschy 2014-02-14 14:45:38 -02:00
  • 1cce3e6842 change in the way 'collectgarbage("step", size)' interprets 'size' (mimicking the way the GC itself behaves when Lua allocates 'size' Kbytes) Roberto Ierusalimschy 2014-02-14 14:43:14 -02:00
  • 0b04c561f5 new syntax for Unicode escape '\u{012F}' Roberto Ierusalimschy 2014-02-14 13:23:51 -02:00
  • 90b0ac6495 limit to 'gcstepmul' imposed by 'lua_gc' (+ some details in 'lgc.c') Roberto Ierusalimschy 2014-02-13 15:25:20 -02:00
  • de3b1c9b53 better control for number of finalizers called at each GC cycle (increases progressively) Roberto Ierusalimschy 2014-02-13 12:46:38 -02:00
  • 733c58595b no more local collection Roberto Ierusalimschy 2014-02-13 10:11:34 -02:00
  • 4a1ed6e6e5 new field '__name' in metatables to help better error messages Roberto Ierusalimschy 2014-02-11 15:39:15 -02:00
  • 6b30774469 detail (better presentation for 'luaC_step') Roberto Ierusalimschy 2014-02-11 10:28:47 -02:00
  • ba3586cc90 keep a single list of objects to be finalized (with local and non-local objects), to ensure finalization order Roberto Ierusalimschy 2014-02-11 10:18:12 -02:00
  • 68df7c6279 added proper headers for a standard lib file Roberto Ierusalimschy 2014-02-06 18:03:24 -02:00
  • 19ad78d713 C++ needs casts for arithmetic with enums Roberto Ierusalimschy 2014-02-06 17:55:55 -02:00
  • 6ccf150039 new library: utf8 Roberto Ierusalimschy 2014-02-06 15:32:33 -02:00
  • 4ea60463f5 UTF-8 encoding exported as format '%U' in 'lua_pushfstring' Roberto Ierusalimschy 2014-02-06 13:59:24 -02:00
  • d438e1379d insertion of ".0" in floats with integer values done by "luaL_tolstring", not by the core Roberto Ierusalimschy 2014-02-05 17:14:53 -02:00
  • 1721d09ac8 still accepts initial '=' for expressions, for compatibility with old versions (and old habits...) Roberto Ierusalimschy 2014-02-05 12:22:55 -02:00
  • 2f3da00e51 added support for UTF-8 escapes Roberto Ierusalimschy 2014-02-04 16:57:34 -02:00
  • 5a73e3ad9e simpler way to create messages for errors in escape sequences Roberto Ierusalimschy 2014-01-31 13:14:22 -02:00
  • 86dd8bf3f5 no more 'L' in macros "luai_num*" (several places that use those macros cannot throw errors anyway...) Roberto Ierusalimschy 2014-01-27 11:34:32 -02:00
  • 67c5de9283 comment Roberto Ierusalimschy 2014-01-27 11:28:45 -02:00
  • 0a850e641d larger limit + better error messages for loop detection in inheritance Roberto Ierusalimschy 2014-01-22 18:02:04 -02:00
  • 916bd874ad added explicit default options to string.pack/unpack functions Roberto Ierusalimschy 2014-01-09 14:21:28 -02:00
  • cd848cab6b first implementation for string.pack/unpackfloat + try not to assume that chars have 8 bits Roberto Ierusalimschy 2014-01-08 16:34:34 -02:00
  • 29256e8960 first implementation of string.packint/string.unpackint Roberto Ierusalimschy 2014-01-05 12:05:58 -02:00
  • 438c534ff4 'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.) renamed all to 'arg' Roberto Ierusalimschy 2014-01-05 12:04:46 -02:00
  • 1ea2d20f74 first implementation of '<<', '>>', and '~' (bitwise not) Roberto Ierusalimschy 2013-12-30 18:47:58 -02:00
  • f5133aa1a5 small change in handling of unary operations Roberto Ierusalimschy 2013-12-18 16:44:42 -02:00
  • c0edab0f6d first implementation of bitwise operators '&' (band), '|' (bor), and '~' (bxor) Roberto Ierusalimschy 2013-12-18 12:12:03 -02:00
  • a948054a19 new order for binary operations (grouping them by type of result) Roberto Ierusalimschy 2013-12-16 17:06:52 -02:00
  • a8f8c7fd80 integer exponentiation with negative exponent is invalid Roberto Ierusalimschy 2013-12-16 12:30:22 -02:00
  • 1a19893d6f new "calculator mode"; no need to add '=' to print expressions Roberto Ierusalimschy 2013-12-16 12:27:17 -02:00
  • 88e23f508c details Roberto Ierusalimschy 2013-12-13 13:42:08 -02:00
  • c8585efc78 use goto to implement a tail call in 'reallymarkobject' Roberto Ierusalimschy 2013-12-13 13:17:00 -02:00
  • 16493b777f 'lua_sethook' returns void Roberto Ierusalimschy 2013-12-09 12:21:10 -02:00
  • cac1ebd1e0 detail ('ttisuserdata' renamed to 'ttisfulluserdata') Roberto Ierusalimschy 2013-12-04 10:15:22 -02:00
  • 7ea44b56a8 details (typos in comments) v5.2.3 Roberto Ierusalimschy 2013-11-21 15:26:16 -02:00
  • 73c5515e00 details (comments) Roberto Ierusalimschy 2013-11-21 15:23:14 -02:00
  • 63048dc9b7 'LUA_VERSION_RELEASE' updated to 5.2.3. Roberto Ierusalimschy 2013-11-11 10:09:16 -02:00
  • e34c35abcf new bug: Resuming the running coroutine makes it unyieldable Roberto Ierusalimschy 2013-11-08 16:23:16 -02:00
  • 6867055546 bug: Resuming the running coroutine makes it unyieldable Roberto Ierusalimschy 2013-11-08 16:22:50 -02:00
  • 7a8eb83b4a bug: attempting to resume the running coroutine makes it unyieldable Roberto Ierusalimschy 2013-11-08 16:16:33 -02:00
  • 2fb7d94bd6 bug: Call to macro 'luai_userstateclose' should be done only after the calls to __gc methods. Roberto Ierusalimschy 2013-11-08 15:45:31 -02:00
  • ab5fa213b3 added patch for last bug Roberto Ierusalimschy 2013-11-08 15:45:10 -02:00
  • 39929384c6 new macro 'luai_userstateclose' (to test it is being called correctly) Roberto Ierusalimschy 2013-11-08 15:36:05 -02:00
  • de7cf8e63a bug: should call 'luai_userstateclose' only when 'luai_userstateopen' has been called before Roberto Ierusalimschy 2013-11-08 15:34:22 -02:00
  • 124598917f "./?/init.lua" added to default path Roberto Ierusalimschy 2013-10-10 12:45:03 -03:00
  • c5fcba1a17 detail (changing some names of macros) Roberto Ierusalimschy 2013-10-07 11:20:31 -03:00
  • 4c6dfc342b CallInfo lists shrinks together with their associated stacks Roberto Ierusalimschy 2013-09-17 12:40:06 -03:00
  • 686e57cf9c GC local pause configurable Roberto Ierusalimschy 2013-09-13 13:21:52 -03:00
  • 06156e7575 detail (setmetatable do not need to use a back GC barrier) Roberto Ierusalimschy 2013-09-11 17:15:31 -03:00
  • 2e2c109daf type of 'refcount' changed to lu_mem (to ensure there will be no overflows) Roberto Ierusalimschy 2013-09-11 12:17:00 -03:00
  • 6ca7b63bce check for shrinking string table done only at the end of a GC cycle Roberto Ierusalimschy 2013-09-11 11:56:15 -03:00
  • 4eeb1831be new names and better order for GC states (sweep first lists that can have dead objects) Roberto Ierusalimschy 2013-09-11 11:47:08 -03:00
  • dd373a8f66 threads are kept in a separated GC list, linked after the main thread Roberto Ierusalimschy 2013-09-11 11:09:55 -03:00
  • 7061fe1d56 detail: 'sweepstep' checks end of phase after calling 'sweeplist', so that phases with small lists return 0 at the first call to 'sweepstep' Roberto Ierusalimschy 2013-09-11 10:24:55 -03:00
  • d8aa8dd97e objects in list 'tobefnz' have a GC life-cycle like all others (specifically they are cleaned during sweep phase) Roberto Ierusalimschy 2013-09-11 09:47:48 -03:00
  • 1150873447 'luaC_newobj' does not handle special cases; only special case now is threads, which do not use 'luaC_newobj' anymore. Roberto Ierusalimschy 2013-09-11 09:26:14 -03:00
  • 79ab21be90 more invariants added to memory check Roberto Ierusalimschy 2013-09-11 09:26:14 -03:00
  • d3bbb34c24 back to open hashing for the string table (but with a different 'hnext' field, to strings are still collected like all other objects) Roberto Ierusalimschy 2013-09-05 16:31:49 -03:00
  • 0ad15fc100 better (and correct!) control of 'maybedead' Roberto Ierusalimschy 2013-09-04 12:34:24 -03:00
  • aeff4f79fa local collection now calls finalizers Roberto Ierusalimschy 2013-09-03 12:37:10 -03:00
  • 1bf4faec64 new GC state to sweep 'localgc' list + small changes in sweep control Roberto Ierusalimschy 2013-08-30 16:14:26 -03:00
  • 8ef9e8460e bug (GC can collect long identifier during parser) + change (using a single constant table for all functions in a chunk) Roberto Ierusalimschy 2013-08-30 13:01:37 -03:00
  • 4f292d753c bug: GC can collect a long string still in use during parser Roberto Ierusalimschy 2013-08-30 12:51:12 -03:00
  • c23f705349 BUG: GC can collect a long string still in use during parser Roberto Ierusalimschy 2013-08-30 12:49:41 -03:00
  • 26629d0af1 details (a few casts moved from macro invocation to macro definition) Roberto Ierusalimschy 2013-08-29 10:49:57 -03:00
  • b5e75fde4e bug: local collection must clear rest of stack Roberto Ierusalimschy 2013-08-29 10:34:16 -03:00
  • 9a871dd3db tables and userdata all go to local list, too Roberto Ierusalimschy 2013-08-28 15:30:26 -03:00
  • 90972ff136 LOCALBLACK changed to LOCALMARK and used also to control whether object is in 'localgc' list + luaC_newobj by default puts object in 'localgc' list Roberto Ierusalimschy 2013-08-27 17:04:00 -03:00
  • af35c7f398 upvalues collected by reference count Roberto Ierusalimschy 2013-08-27 15:53:35 -03:00
  • 742b7377d3 Lua closures go to local, too Roberto Ierusalimschy 2013-08-26 09:41:10 -03:00
  • 50955e27f5 C functions and strings now go to the local list; first version of the local collector Roberto Ierusalimschy 2013-08-23 10:34:54 -03:00
  • 33c49f7fa0 some details over new implementation of string table Roberto Ierusalimschy 2013-08-22 12:21:48 -03:00
  • 0df6635711 "fixed" objects kept in a separated list (instead of being kept in 'allgc' list with a bit marking them) Roberto Ierusalimschy 2013-08-21 17:09:51 -03:00
  • ae800656c9 change in string table: string table is now independent of GC lists; all strings live in 'normal' GC lists Roberto Ierusalimschy 2013-08-21 16:21:16 -03:00
  • 8c68863960 initial size of string table (MINSTRTABSIZE) should be large enough to hold all strings needed by an empty Lua state Roberto Ierusalimschy 2013-08-21 16:02:30 -03:00
  • 8f6b80aa1d GC bits SEPARATED and FINALIZEDBIT mixed in FINALIZEDBIT (with simpler control) Roberto Ierusalimschy 2013-08-20 14:46:34 -03:00
  • 9eff921f8f "barrier" for link prototype->cache changed to be consistent with GC behavior (link is cleared to preserve invariant) Roberto Ierusalimschy 2013-08-19 11:18:43 -03:00
  • 8e6b7ef9ab new function 'isgclocal' + test for GC consistency of prototype's caches Roberto Ierusalimschy 2013-08-19 11:16:33 -03:00
  • caceeab750 'next' field for tables changed from pointer to integer (for better alignment on 64-bit machines) Roberto Ierusalimschy 2013-08-18 13:12:18 -03:00
  • 3991312b94 details Roberto Ierusalimschy 2013-08-16 16:02:31 -03:00
  • 439d74e29f added 'local' bit (true => object is only refered by local variables) Roberto Ierusalimschy 2013-08-16 15:55:49 -03:00
  • 3679d33b02 barrier conditions rewritten to test first 'isblack' and then 'iswhite' (during a pause all objects are white, so 'isblack' fails much more often than 'iswhite') Roberto Ierusalimschy 2013-08-13 14:36:44 -03:00
  • 78b941039d change to allow collector to stop when it goes to the atomic phase (just for debugging) Roberto Ierusalimschy 2013-08-07 12:39:09 -03:00
  • 623e388bb4 double-linked list of all upvalues elliminated and changed to a traversal of all non-marked threads Roberto Ierusalimschy 2013-08-07 09:18:11 -03:00
  • 677d90165f no more generational collection !!! Roberto Ierusalimschy 2013-08-05 13:58:28 -03:00
  • 4244da96bf 'debug.subtype' -> 'math.type' (to distinguish integers and floats) Roberto Ierusalimschy 2013-07-22 13:05:53 -03:00