Skip to content

Commit 0109e12

Browse files
committed
deps: upgrade to libuv 1.26.0
Notable changes: - A bug that could result in 100% CPU utilization in Node has been fixed (libuv/libuv#2162) - Node's report module will now include the entire Windows product name (libuv/libuv#2170) PR-URL: #26037 Fixes: #26013 Fixes: #25875 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent ec76f7c commit 0109e12

28 files changed

+613
-58
lines changed

deps/uv/AUTHORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,6 @@ ptlomholt <[email protected]>
366366
Victor Costan <[email protected]>
367367
368368
Kevin Adler <[email protected]>
369+
Stephen Belanger <[email protected]>
370+
yeyuanfeng <[email protected]>
371+

deps/uv/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ set(uv_test_sources
149149
test/test-timer-from-check.c
150150
test/test-timer.c
151151
test/test-tmpdir.c
152+
test/test-tty-duplicate-key.c
152153
test/test-tty.c
153154
test/test-udp-alloc-cb-fail.c
154155
test/test-udp-bind.c

deps/uv/ChangeLog

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
2019.02.11, Version 1.26.0 (Stable), 8669d8d3e93cddb62611b267ef62a3ddb5ba3ca0
2+
3+
Changes since version 1.25.0:
4+
5+
* doc: fix uv_get_free_memory doc (Stephen Belanger)
6+
7+
* unix: fix epoll cpu 100% issue (yeyuanfeng)
8+
9+
* openbsd,tcp: special handling of EINVAL on connect (ptlomholt)
10+
11+
* win: simplify registry closing in uv_cpu_info() (cjihrig)
12+
13+
* src,include: define UV_MAXHOSTNAMESIZE (cjihrig)
14+
15+
* win: return product name in uv_os_uname() version (cjihrig)
16+
17+
* thread: allow specifying stack size for new thread (Anna Henningsen)
18+
19+
* win: fix duplicate tty vt100 fn key (erw7)
20+
21+
* unix: don't attempt to invalidate invalid fd (Ben Noordhuis)
22+
23+
124
2019.01.19, Version 1.25.0 (Stable), 4a10a9d425863330af199e4b74bd688e62d945f1
225

326
Changes since version 1.24.1:

deps/uv/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
277277
test/test-timer-from-check.c \
278278
test/test-timer.c \
279279
test/test-tmpdir.c \
280+
test/test-tty-duplicate-key.c \
280281
test/test-tty.c \
281282
test/test-udp-alloc-cb-fail.c \
282283
test/test-udp-bind.c \

deps/uv/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1414

1515
AC_PREREQ(2.57)
16-
AC_INIT([libuv], [1.25.0], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.26.0], [https://github.com/libuv/libuv/issues])
1717
AC_CONFIG_MACRO_DIR([m4])
1818
m4_include([m4/libuv-extra-automake-flags.m4])
1919
m4_include([m4/as_case.m4])

deps/uv/docs/src/misc.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ API
431431
432432
.. versionadded:: 1.9.0
433433
434-
.. uint64_t uv_get_free_memory(void)
434+
.. c:function:: uint64_t uv_get_free_memory(void)
435+
436+
Gets memory information (in bytes).
437+
435438
.. c:function:: uint64_t uv_get_total_memory(void)
436439
437440
Gets memory information (in bytes).
@@ -531,6 +534,10 @@ API
531534
532535
.. versionadded:: 1.12.0
533536
537+
.. versionchanged:: 1.26.0 `UV_MAXHOSTNAMESIZE` is available and represents
538+
the maximum `buffer` size required to store a
539+
hostname and terminating `nul` character.
540+
534541
.. c:function:: int uv_os_getpriority(uv_pid_t pid, int* priority)
535542
536543
Retrieves the scheduling priority of the process specified by `pid`. The

deps/uv/docs/src/threading.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,39 @@ API
5555
Threads
5656
^^^^^^^
5757

58+
.. c:type:: uv_thread_options_t
59+
60+
Options for spawning a new thread (passed to :c:func:`uv_thread_create_ex`).
61+
62+
::
63+
64+
typedef struct uv_process_options_s {
65+
enum {
66+
UV_THREAD_NO_FLAGS = 0x00,
67+
UV_THREAD_HAS_STACK_SIZE = 0x01
68+
} flags;
69+
size_t stack_size;
70+
} uv_process_options_t;
71+
72+
More fields may be added to this struct at any time, so its exact
73+
layout and size should not be relied upon.
74+
75+
.. versionadded:: 1.26.0
76+
5877
.. c:function:: int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg)
5978
6079
.. versionchanged:: 1.4.1 returns a UV_E* error code on failure
6180
81+
.. c:function:: int uv_thread_create_ex(uv_thread_t* tid, const uv_thread_options_t* params, uv_thread_cb entry, void* arg)
82+
83+
Like :c:func:`uv_thread_create`, but additionally specifies options for creating a new thread.
84+
85+
If `UV_THREAD_HAS_STACK_SIZE` is set, `stack_size` specifies a stack size for the new thread.
86+
`0` indicates that the default value should be used, i.e. behaves as if the flag was not set.
87+
Other values will be rounded up to the nearest page boundary.
88+
89+
.. versionadded:: 1.26.0
90+
6291
.. c:function:: uv_thread_t uv_thread_self(void)
6392
.. c:function:: int uv_thread_join(uv_thread_t *tid)
6493
.. c:function:: int uv_thread_equal(const uv_thread_t* t1, const uv_thread_t* t2)

deps/uv/include/uv.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,17 @@ UV_EXTERN int uv_os_getenv(const char* name, char* buffer, size_t* size);
11441144
UV_EXTERN int uv_os_setenv(const char* name, const char* value);
11451145
UV_EXTERN int uv_os_unsetenv(const char* name);
11461146

1147+
#ifdef MAXHOSTNAMELEN
1148+
# define UV_MAXHOSTNAMESIZE (MAXHOSTNAMELEN + 1)
1149+
#else
1150+
/*
1151+
Fallback for the maximum hostname size, including the null terminator. The
1152+
Windows gethostname() documentation states that 256 bytes will always be
1153+
large enough to hold the null-terminated hostname.
1154+
*/
1155+
# define UV_MAXHOSTNAMESIZE 256
1156+
#endif
1157+
11471158
UV_EXTERN int uv_os_gethostname(char* buffer, size_t* size);
11481159

11491160
UV_EXTERN int uv_os_uname(uv_utsname_t* buffer);
@@ -1574,6 +1585,24 @@ UV_EXTERN void uv_key_set(uv_key_t* key, void* value);
15741585
typedef void (*uv_thread_cb)(void* arg);
15751586

15761587
UV_EXTERN int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg);
1588+
1589+
typedef enum {
1590+
UV_THREAD_NO_FLAGS = 0x00,
1591+
UV_THREAD_HAS_STACK_SIZE = 0x01
1592+
} uv_thread_create_flags;
1593+
1594+
struct uv_thread_options_s {
1595+
unsigned int flags;
1596+
size_t stack_size;
1597+
/* More fields may be added at any time. */
1598+
};
1599+
1600+
typedef struct uv_thread_options_s uv_thread_options_t;
1601+
1602+
UV_EXTERN int uv_thread_create_ex(uv_thread_t* tid,
1603+
const uv_thread_options_t* params,
1604+
uv_thread_cb entry,
1605+
void* arg);
15771606
UV_EXTERN uv_thread_t uv_thread_self(void);
15781607
UV_EXTERN int uv_thread_join(uv_thread_t *tid);
15791608
UV_EXTERN int uv_thread_equal(const uv_thread_t* t1, const uv_thread_t* t2);

deps/uv/include/uv/unix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@
3131
#include <netinet/in.h>
3232
#include <netinet/tcp.h>
3333
#include <arpa/inet.h>
34-
#include <netdb.h>
34+
#include <netdb.h> /* MAXHOSTNAMELEN on Solaris */
3535

3636
#include <termios.h>
3737
#include <pwd.h>
3838

3939
#if !defined(__MVS__)
4040
#include <semaphore.h>
41+
#include <sys/param.h> /* MAXHOSTNAMELEN on Linux and the BSDs */
4142
#endif
4243
#include <pthread.h>
4344
#include <signal.h>

deps/uv/include/uv/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232

3333
#define UV_VERSION_MAJOR 1
34-
#define UV_VERSION_MINOR 25
34+
#define UV_VERSION_MINOR 26
3535
#define UV_VERSION_PATCH 0
3636
#define UV_VERSION_IS_RELEASE 1
3737
#define UV_VERSION_SUFFIX ""

0 commit comments

Comments
 (0)