fesil
37e59085cc
Merge branch 'dontstarve' of https://github.com/fesily/luajit into dontstarve
2024-07-18 20:44:26 +08:00
fesil
12fb2eea33
fix crash
2024-07-18 20:44:23 +08:00
fesily
876ca620b8
Merge branch 'LuaJIT:v2.1' into dontstarve
2024-07-05 08:22:01 +08:00
Mike Pall
04dca7911e
Call math.randomseed() without arguments to seed from system entropy.
...
Reminder: the math.random() PRNG is NOT SUITABLE FOR CRYPTOGRAPHIC USE.
2024-07-04 01:26:29 +02:00
Mike Pall
7421a1b33c
Restore state when recording __concat metamethod throws an error.
...
Thanks to Sergey Kaplun. #1234
2024-07-04 00:48:49 +02:00
Mike Pall
510f88d468
Add build flag LUAJIT_DISABLE_TAILCALL to disable tailcall generation.
...
Only use this for debugging purposes. NEVER set it for regular builds
or distro builds! In Lua, tailcalls are a language guarantee.
Suggested by Steve Vermeulen. #1220
2024-07-04 00:13:58 +02:00
Mike Pall
444c8ff19a
Clarify that lj_buf_shrink() does not keep any buffer data.
...
https://www.freelists.org/post/luajit/lj-buf-shrink-may-truncate-the-data-and-sbw-point-over-the-end-of-the-buffer,1
Thanks to Junlong li.
2024-07-04 00:03:40 +02:00
Mike Pall
747fc02eb9
OSX: Fix installed luajit.pc.
...
Reported by leleliu008. #1221
2024-07-03 23:59:59 +02:00
Mike Pall
8038430110
Merge branch 'master' into v2.1
2024-07-03 23:59:03 +02:00
Mike Pall
7a608e4425
FFI: Fix various issues in recff_cdata_arith.
...
Thanks to Sergey Kaplun. #1224
2024-07-03 23:46:47 +02:00
Mike Pall
f602f0154b
Fix predict_next() in parser (for real now).
...
Reported by Sergey Kaplun. #1226 #1054
2024-07-03 23:45:16 +02:00
Mike Pall
f2a1cd4328
FFI: Fix __tostring metamethod access to enum cdata value.
...
Thanks to Sergey Kaplun. #1232
2024-07-03 23:43:57 +02:00
Mike Pall
0f8b878e2f
Fix typo.
...
Reported by Sergey Bronnikov. #1223
2024-07-03 23:43:29 +02:00
Mike Pall
6885efb73e
Merge branch 'master' into v2.1
2024-07-03 23:42:38 +02:00
Mike Pall
811c5322c8
Handle partial snapshot restore due to stack overflow.
...
Reported by pwnhacker0x18. Fixed by Peter Cawley. #1196
2024-07-03 21:42:21 +02:00
fesily
5b750a81c3
support macos
2024-06-29 17:51:57 +08:00
fesily
14eb04d173
Merge branch 'LuaJIT:v2.1' into dontstarve
2024-06-28 15:55:29 +08:00
Mike Pall
93e87998b2
Update Nintendo Switch build script.
...
Thanks to IoriBranford. #1214
2024-05-25 19:01:18 +02:00
Mike Pall
f5587f5eb3
Merge branch 'master' into v2.1
2024-05-25 16:41:53 +02:00
Mike Pall
4a22050df9
Prevent sanitizer warning in snap_restoredata().
...
Thanks to Sergey Kaplun. #1193
2024-05-25 16:38:05 +02:00
Mike Pall
80c1c65bce
Typo.
2024-05-25 16:25:35 +02:00
Mike Pall
4fc48c50fe
Limit number of string format elements to compile.
...
Reported by pwnhacker0x18. #1203
2024-05-25 16:22:39 +02:00
Mike Pall
a6386bdabe
FFI: Clarify scalar boxing behavior.
...
Prevent misunderstandings like in #1216
2024-05-25 15:48:07 +02:00
Mike Pall
9398123383
Fix internal link in docs.
...
Thanks to GitSparTV. #1219
2024-05-25 14:56:15 +02:00
fesily
262cc3031c
Merge remote-tracking branch 'origin/v2.1' into dontstarve
...
# Conflicts:
# src/msvcbuild.bat
2024-05-24 09:58:02 +08:00
Mike Pall
5790d25397
OSX/iOS: Fix SDK incompatibility.
...
Thanks to Ryan Carsten Schmidt. #1189
2024-04-22 10:06:42 +02:00
Mike Pall
b3e4987389
Windows/MSVC: Cleanup msvcbuild.bat and always generate PDB.
...
Thanks to Miku AuahDark. #1127
2024-04-19 11:01:13 +02:00
Mike Pall
75e9277798
Merge branch 'master' into v2.1
2024-04-19 01:47:48 +02:00
Mike Pall
9b5e837ac2
Fix segment release check in internal memory allocator.
...
Thanks to Jinji Zeng. #1179 #1157
2024-04-19 01:44:19 +02:00
Mike Pall
d032c637b1
Fix compiler warning.
2024-04-19 01:41:12 +02:00
Mike Pall
f5affaa6c4
FFI: Turn FFI finalizer table into a proper GC root.
...
Reported by Sergey Bronnikov. #1168
2024-04-19 01:33:19 +02:00
Mike Pall
7110b93567
OSX/iOS: Always generate 64 bit non-FAT Mach-O object files.
...
Reported by Sergey Bronnikov. #1181
2024-04-19 00:31:06 +02:00
Mike Pall
d2fe2a6d46
Show name of NYI bytecode in -jv and -jdump.
...
Suggested by Sergey Kaplun. #1176 #567
2024-04-19 00:12:22 +02:00
Mike Pall
b8b49bf395
Use generic trace error for OOM during trace stitching.
...
Thanks to Sergey Kaplun. #1166
2024-04-18 23:57:53 +02:00
Mike Pall
243b7682a5
Fix serialization format docs.
...
Reported by nounwind.
2024-04-18 23:49:43 +02:00
Mike Pall
d06beb0480
Handle all types of errors during trace stitching.
...
Thanks to Sergey Kaplun and Peter Cawley. #1166 #720
2024-03-10 17:29:48 +01:00
Mike Pall
bcc5125a91
Fix recording of __concat metamethod.
...
Thanks to Sergey Kaplun. #1164
2024-03-10 17:26:36 +01:00
Mike Pall
913df6a945
Merge branch 'master' into v2.1
2024-03-10 17:26:03 +01:00
Mike Pall
cae361187e
Prevent down-recursion for side traces.
...
Thanks to Sergey Kaplun. #1169
2024-03-10 17:23:21 +01:00
Mike Pall
302366a338
Check frame size limit before returning to a lower frame.
...
Thanks to Sergey Kaplun. #1173
2024-03-10 17:19:29 +01:00
Mike Pall
dda1ac273a
FFI: Treat cdata finalizer table as a GC root.
...
Thanks to Sergey Bronnikov. #1168
2024-03-10 17:16:41 +01:00
Mike Pall
88ed9fdbbb
Handle stack reallocation in debug.setmetatable() and lua_setmetatable().
...
Thanks to Sergey Kaplun. #1172
2024-03-10 17:13:28 +01:00
fesil
b778623e16
fix debug_getinfo
2024-02-26 14:23:15 +08:00
fesil
2a843e0286
add lua_getinfo_game
2024-02-26 13:46:59 +08:00
fesil
2efde665e7
rm lj_path_map
2024-02-25 21:52:28 +08:00
fesil
7df0342082
remove table.reverse kleiloadlua gemcore hack
2024-02-23 10:54:12 +08:00
fesily
a893073d7f
add lj_need_transform_path
2024-02-22 11:52:16 +08:00
fesily
a3ce7c53cb
fix parser bug
2024-02-22 11:09:38 +08:00
fesily
32d892111d
fix arg error
2024-02-20 22:53:28 +08:00
fesily
3e78833b0a
Merge commit '0d313b243194a0b8d2399d8b549ca5a0ff234db5' into dontstarve
2024-02-20 17:29:51 +08:00