Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps (libuv, quickjs) #650

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ string(TOLOWER ${CMAKE_SYSTEM_NAME} TJS_PLATFORM)
target_compile_options(tjs PRIVATE ${tjs_cflags})
target_compile_definitions(tjs PRIVATE TJS__PLATFORM="${TJS_PLATFORM}")
target_include_directories(tjs PUBLIC src)
target_link_libraries(tjs qjs uv_a m3 sqlite3 m pthread CURL::libcurl)
target_link_libraries(tjs qjs uv_a m3 sqlite3 CURL::libcurl)

if (BUILD_WITH_MIMALLOC)
target_compile_definitions(tjs PRIVATE TJS__HAS_MIMALLOC)
Expand All @@ -178,4 +178,4 @@ set_target_properties(tjs-cli
add_executable(tjsc EXCLUDE_FROM_ALL
src/qjsc.c
)
target_link_libraries(tjsc qjs m)
target_link_libraries(tjsc qjs)
2 changes: 1 addition & 1 deletion deps/libuv
Submodule libuv updated 87 files
+7 −0 .github/dependabot.yml
+2 −2 .github/workflows/CI-docs.yml
+1 −1 .github/workflows/CI-sample.yml
+38 −7 .github/workflows/CI-unix.yml
+5 −6 .github/workflows/CI-win.yml
+10 −5 .github/workflows/sanitizer.yml
+2 −2 .mailmap
+15 −6 CMakeLists.txt
+3 −3 ChangeLog
+3 −0 Makefile.am
+12 −0 README.md
+19 −9 docs/src/fs.rst
+7 −4 docs/src/fs_event.rst
+1 −1 docs/src/guide/processes.rst
+2 −2 docs/src/handle.rst
+19 −1 docs/src/loop.rst
+41 −0 docs/src/misc.rst
+1 −1 docs/src/poll.rst
+3 −3 docs/src/process.rst
+15 −11 docs/src/request.rst
+51 −7 docs/src/tcp.rst
+1 −1 docs/src/tty.rst
+58 −21 docs/src/udp.rst
+45 −17 include/uv.h
+3 −250 include/uv/tree.h
+2 −2 include/uv/win.h
+1 −1 src/random.c
+1 −1 src/threadpool.c
+116 −16 src/unix/async.c
+50 −2 src/unix/core.c
+17 −0 src/unix/darwin-syscalls.h
+1 −7 src/unix/darwin.c
+6 −1 src/unix/freebsd.c
+152 −17 src/unix/fs.c
+0 −4 src/unix/fsevents.c
+1 −1 src/unix/getaddrinfo.c
+1 −1 src/unix/getnameinfo.c
+45 −3 src/unix/internal.h
+44 −0 src/unix/kqueue.c
+76 −84 src/unix/linux.c
+8 −0 src/unix/loop.c
+29 −10 src/unix/pipe.c
+3 −6 src/unix/process.c
+1 −1 src/unix/signal.c
+25 −20 src/unix/stream.c
+30 −12 src/unix/tcp.c
+32 −1 src/unix/tty.c
+113 −78 src/unix/udp.c
+3 −3 src/uv-common.h
+2 −1 src/win/error.c
+19 −1 src/win/fs-event.c
+220 −78 src/win/fs.c
+65 −61 src/win/getaddrinfo.c
+2 −2 src/win/getnameinfo.c
+159 −108 src/win/pipe.c
+19 −16 src/win/process-stdio.c
+11 −30 src/win/process.c
+5 −5 src/win/req-inl.h
+1 −1 src/win/signal.c
+1 −1 src/win/stream.c
+26 −19 src/win/tcp.c
+11 −33 src/win/thread.c
+4 −4 src/win/tty.c
+9 −3 src/win/udp.c
+41 −49 src/win/util.c
+10 −0 src/win/winapi.c
+61 −0 src/win/winapi.h
+4 −0 test/task.h
+8 −0 test/test-emfile.c
+6 −0 test/test-fs-copyfile.c
+136 −169 test/test-fs-event.c
+41 −1 test/test-fs.c
+9 −0 test/test-homedir.c
+111 −0 test/test-iouring-pollhup.c
+15 −2 test/test-list.h
+27 −11 test/test-pipe-bind-error.c
+75 −4 test/test-pipe-getsockname.c
+1 −1 test/test-platform-output.c
+45 −12 test/test-poll.c
+2 −2 test/test-ref.c
+8 −1 test/test-tcp-flags.c
+248 −0 test/test-tcp-reuseport.c
+7 −0 test/test-tmpdir.c
+1 −1 test/test-udp-multicast-join.c
+5 −0 test/test-udp-multicast-join6.c
+14 −7 test/test-udp-recv-in-a-row.c
+287 −0 test/test-udp-reuseport.c
6,782 changes: 3,416 additions & 3,366 deletions src/bundles/c/core/core.c

Large diffs are not rendered by default.

62,674 changes: 31,477 additions & 31,197 deletions src/bundles/c/core/polyfills.c

Large diffs are not rendered by default.

1,602 changes: 813 additions & 789 deletions src/bundles/c/core/run-main.c

Large diffs are not rendered by default.

4,025 changes: 2,035 additions & 1,990 deletions src/bundles/c/core/run-repl.c

Large diffs are not rendered by default.

138 changes: 70 additions & 68 deletions src/bundles/c/core/worker-bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,88 +2,90 @@

#include <inttypes.h>

const uint32_t tjs__worker_bootstrap_size = 640;
const uint32_t tjs__worker_bootstrap_size = 656;

const uint8_t tjs__worker_bootstrap[640] = {
0x0c, 0x10, 0x16, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x50, 0x69, 0x70, 0x65, 0x28, 0x64,
0x65, 0x66, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
0x75, 0x74, 0x65, 0x06, 0x6d, 0x73, 0x67, 0x08,
0x73, 0x65, 0x6c, 0x66, 0x1a, 0x64, 0x69, 0x73,
0x70, 0x61, 0x74, 0x63, 0x68, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x18, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x26,
0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2d, 0x62,
0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70,
0x2e, 0x6a, 0x73, 0x10, 0x6d, 0x73, 0x67, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x18, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x16, 0x70, 0x6f, 0x73, 0x74, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x3e, 0x74, 0x6a,
0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
0x61, 0x6c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x65,
0x72, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x50, 0x69, 0x70, 0x65, 0x12, 0x6f, 0x6e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1c,
0x6f, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x16, 0x45,
0x76, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x72, 0x67,
0x65, 0x74, 0x2c, 0x5f, 0x5f, 0x64, 0x65, 0x66,
0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
0x65, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x0c,
0x00, 0xfa, 0x00, 0x9e, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x05, 0x01, 0xa0, 0x01, 0x00,
const uint8_t tjs__worker_bootstrap[656] = {
0x10, 0x10, 0x01, 0x16, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x50, 0x69, 0x70, 0x65, 0x01,
0x28, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x45,
0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72,
0x69, 0x62, 0x75, 0x74, 0x65, 0x01, 0x06, 0x6d,
0x73, 0x67, 0x01, 0x08, 0x73, 0x65, 0x6c, 0x66,
0x01, 0x1a, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74,
0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x01,
0x18, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x45, 0x76, 0x65, 0x6e, 0x74, 0x01, 0x26, 0x77,
0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2d, 0x62, 0x6f,
0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2e,
0x6a, 0x73, 0x01, 0x10, 0x6d, 0x73, 0x67, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x01, 0x18, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x65, 0x72, 0x72,
0x6f, 0x72, 0x01, 0x16, 0x70, 0x6f, 0x73, 0x74,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x01,
0x3e, 0x74, 0x6a, 0x73, 0x2e, 0x69, 0x6e, 0x74,
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x77, 0x6f,
0x72, 0x6b, 0x65, 0x72, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x50, 0x69, 0x70, 0x65,
0x01, 0x12, 0x6f, 0x6e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x01, 0x1c, 0x6f, 0x6e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x01, 0x16, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
0x01, 0x2c, 0x5f, 0x5f, 0x64, 0x65, 0x66, 0x69,
0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41,
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
0x01, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x0c,
0x00, 0xfa, 0x00, 0xa2, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x05, 0x01, 0xa4, 0x01, 0x00,
0x00, 0x00, 0x0c, 0x43, 0xfa, 0x00, 0x00, 0x00,
0x02, 0x00, 0x04, 0x00, 0x03, 0x9e, 0x01, 0x02,
0xb2, 0x03, 0x01, 0x00, 0x70, 0xb4, 0x03, 0x01,
0xb8, 0x03, 0x01, 0x00, 0x70, 0xba, 0x03, 0x01,
0x01, 0x30, 0x0c, 0x42, 0xfa, 0x00, 0x00, 0x01,
0x00, 0x01, 0x06, 0x00, 0x00, 0x1d, 0x01, 0xb6,
0x03, 0x00, 0x01, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x42, 0xdd, 0x00, 0x00, 0x00, 0x38, 0xde,
0x00, 0x00, 0x00, 0x11, 0x04, 0x31, 0x00, 0x00,
0x00, 0xd0, 0x21, 0x02, 0x00, 0x24, 0x01, 0x00,
0x29, 0xbe, 0x03, 0x04, 0x1d, 0x08, 0x03, 0x27,
0x00, 0x01, 0x06, 0x00, 0x00, 0x1d, 0x01, 0xbc,
0x03, 0x00, 0x01, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x42, 0xe0, 0x00, 0x00, 0x00, 0x38, 0xe1,
0x00, 0x00, 0x00, 0x11, 0x04, 0x33, 0x00, 0x00,
0x00, 0xd1, 0x21, 0x02, 0x00, 0x24, 0x01, 0x00,
0x29, 0xc4, 0x03, 0x04, 0x1d, 0x08, 0x03, 0x27,
0x34, 0x2e, 0x39, 0x30, 0x26, 0x65, 0x00, 0x0c,
0x42, 0xfa, 0x00, 0x00, 0x01, 0x00, 0x01, 0x06,
0x00, 0x00, 0x1d, 0x01, 0xc0, 0x03, 0x00, 0x01,
0x00, 0x38, 0xdc, 0x00, 0x00, 0x00, 0x42, 0xdd,
0x00, 0x00, 0x00, 0x38, 0xde, 0x00, 0x00, 0x00,
0x11, 0x04, 0xe1, 0x00, 0x00, 0x00, 0xd0, 0x21,
0x02, 0x00, 0x24, 0x01, 0x00, 0x29, 0xbe, 0x03,
0x00, 0x00, 0x1d, 0x01, 0xc6, 0x03, 0x00, 0x01,
0x00, 0x38, 0xdf, 0x00, 0x00, 0x00, 0x42, 0xe0,
0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00, 0x00,
0x11, 0x04, 0xe4, 0x00, 0x00, 0x00, 0xd1, 0x21,
0x02, 0x00, 0x24, 0x01, 0x00, 0x29, 0xc4, 0x03,
0x08, 0x22, 0x08, 0x03, 0x31, 0x34, 0x2e, 0x39,
0x3a, 0x26, 0x6f, 0x00, 0x0c, 0x42, 0xfa, 0x00,
0x00, 0x01, 0x00, 0x01, 0x03, 0x01, 0x00, 0x0c,
0x01, 0x62, 0x00, 0x01, 0x00, 0xb2, 0x03, 0x00,
0x0d, 0x65, 0x00, 0x00, 0x42, 0xe2, 0x00, 0x00,
0x00, 0xd0, 0x25, 0x01, 0x00, 0xbe, 0x03, 0x0c,
0x01, 0x66, 0x00, 0x01, 0x00, 0xb8, 0x03, 0x00,
0x0d, 0x65, 0x00, 0x00, 0x42, 0xe5, 0x00, 0x00,
0x00, 0xd1, 0x25, 0x01, 0x00, 0xc4, 0x03, 0x0c,
0x18, 0x02, 0x02, 0x16, 0x00, 0x61, 0x01, 0x00,
0x61, 0x00, 0x00, 0x38, 0x8a, 0x00, 0x00, 0x00,
0x38, 0x96, 0x00, 0x00, 0x00, 0x42, 0x11, 0x00,
0x00, 0x00, 0x04, 0xe3, 0x00, 0x00, 0x00, 0x24,
0x01, 0x00, 0x47, 0xc8, 0x62, 0x00, 0x00, 0xbe,
0x00, 0x43, 0xe4, 0x00, 0x00, 0x00, 0x62, 0x00,
0x00, 0xbe, 0x01, 0x43, 0xe5, 0x00, 0x00, 0x00,
0x38, 0xdc, 0x00, 0x00, 0x00, 0xbe, 0x02, 0x43,
0xe2, 0x00, 0x00, 0x00, 0x38, 0xe6, 0x00, 0x00,
0x00, 0x41, 0xe7, 0x00, 0x00, 0x00, 0xc9, 0x62,
0x01, 0x00, 0x38, 0x90, 0x00, 0x00, 0x00, 0x42,
0x5e, 0x00, 0x00, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0x31, 0x00, 0x00,
0x00, 0xef, 0x0e, 0x62, 0x01, 0x00, 0x38, 0x90,
0x00, 0x00, 0x00, 0x42, 0x5e, 0x00, 0x00, 0x00,
0x38, 0xdc, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00,
0x04, 0xe1, 0x00, 0x00, 0x00, 0xef, 0x0e, 0x62,
0x01, 0x00, 0x38, 0x90, 0x00, 0x00, 0x00, 0x42,
0x5e, 0x00, 0x00, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0xe8, 0x00, 0x00,
0x00, 0xef, 0x29, 0xbe, 0x03, 0x01, 0x01, 0x20,
0x61, 0x00, 0x00, 0x38, 0x8c, 0x00, 0x00, 0x00,
0x38, 0x98, 0x00, 0x00, 0x00, 0x42, 0x11, 0x00,
0x00, 0x00, 0x04, 0xe6, 0x00, 0x00, 0x00, 0x24,
0x01, 0x00, 0x47, 0xc9, 0x62, 0x00, 0x00, 0xbf,
0x00, 0x43, 0xe7, 0x00, 0x00, 0x00, 0x62, 0x00,
0x00, 0xbf, 0x01, 0x43, 0xe8, 0x00, 0x00, 0x00,
0x38, 0xdf, 0x00, 0x00, 0x00, 0xbf, 0x02, 0x43,
0xe5, 0x00, 0x00, 0x00, 0x38, 0xe9, 0x00, 0x00,
0x00, 0x41, 0xea, 0x00, 0x00, 0x00, 0xca, 0x62,
0x01, 0x00, 0x38, 0x92, 0x00, 0x00, 0x00, 0x42,
0x60, 0x00, 0x00, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0x33, 0x00, 0x00,
0x00, 0xf0, 0x0e, 0x62, 0x01, 0x00, 0x38, 0x92,
0x00, 0x00, 0x00, 0x42, 0x60, 0x00, 0x00, 0x00,
0x38, 0xdf, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00,
0x04, 0xe4, 0x00, 0x00, 0x00, 0xf0, 0x0e, 0x62,
0x01, 0x00, 0x38, 0x92, 0x00, 0x00, 0x00, 0x42,
0x60, 0x00, 0x00, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0xeb, 0x00, 0x00,
0x00, 0xf0, 0x29, 0xc4, 0x03, 0x01, 0x01, 0x20,
0x02, 0x12, 0x21, 0x1e, 0x81, 0x27, 0x13, 0x00,
0x27, 0x00, 0x13, 0x00, 0x27, 0x00, 0x1b, 0x3c,
0x27, 0x01, 0x3b, 0x39, 0x84, 0x64, 0x0d, 0x63,
0x84, 0x64, 0x0d, 0x63, 0x84, 0x64, 0x08, 0x6b,
0x00, 0xbe, 0x00, 0xed, 0xcc, 0x28, 0xbe, 0x03,
0x00, 0xbf, 0x00, 0xee, 0xcd, 0x28, 0xc4, 0x03,
0x01, 0x01, 0x04, 0x00, 0x00, 0x24, 0x00, 0x00,
};

Loading
Loading