| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cd71aad commit 3a493b8
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -260,8 +260,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android") | |||
| 260 | 260 | src/unix/linux-syscalls.c | |
| 261 | 261 | src/unix/procfs-exepath.c | |
| 262 | 262 | src/unix/pthread-fixes.c | |
| 263 | - src/unix/sysinfo-loadavg.c | ||
| 264 | - src/unix/sysinfo-memory.c) | ||
| 263 | + src/unix/sysinfo-loadavg.c) | ||
| 265 | 264 | endif() | |
| 266 | 265 | ||
| 267 | 266 | if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "Android|Linux|OS/390") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,20 @@ | |||
| 1 | + 2019.07.03, Version 1.30.1 (Stable), 1551969c84c2f546a429dac169c7fdac3e38115e | ||
| 2 | + | ||
| 3 | + Changes since version 1.30.0: | ||
| 4 | + | ||
| 5 | + * doc: fix incorrect versionchanged (cjihrig) | ||
| 6 | + | ||
| 7 | + * test: allow UV_ECONNRESET in tcp_try_write_error (cjihrig) | ||
| 8 | + | ||
| 9 | + * unix: add uv_get_constrained_memory() cygwin stub (cjihrig) | ||
| 10 | + | ||
| 11 | + * build: fix android cmake build (Ben Noordhuis) | ||
| 12 | + | ||
| 13 | + * unix: squelch -Wcast-function-type warning (Ben Noordhuis) | ||
| 14 | + | ||
| 15 | + * build: fix compile error with uClibc (zlargon) | ||
| 16 | + | ||
| 17 | + | ||
| 1 | 18 | 2019.06.28, Version 1.30.0 (Stable), 365b6f2a0eacda1ff52be8e57ab9381cfddc5dbb | |
| 2 | 19 | ||
| 3 | 20 | Changes since version 1.29.1: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 14 | 14 | ||
| 15 | 15 | AC_PREREQ(2.57) | |
| 16 | - AC_INIT([libuv], [1.30.0], [https://github.com/libuv/libuv/issues]) | ||
| 16 | + AC_INIT([libuv], [1.30.1], [https://github.com/libuv/libuv/issues]) | ||
| 17 | 17 | AC_CONFIG_MACRO_DIR([m4]) | |
| 18 | 18 | m4_include([m4/libuv-extra-automake-flags.m4]) | |
| 19 | 19 | m4_include([m4/as_case.m4]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ Its default size is 4, but it can be changed at startup time by setting the | |||
| 12 | 12 | ``UV_THREADPOOL_SIZE`` environment variable to any value (the absolute maximum | |
| 13 | 13 | is 1024). | |
| 14 | 14 | ||
| 15 | - .. versionchanged:: 1.29.2 the maximum UV_THREADPOOL_SIZE allowed was increased from 128 to 1024. | ||
| 15 | + .. versionchanged:: 1.30.0 the maximum UV_THREADPOOL_SIZE allowed was increased from 128 to 1024. | ||
| 16 | 16 | ||
| 17 | 17 | The threadpool is global and shared across all event loops. When a particular | |
| 18 | 18 | function makes use of the threadpool (i.e. when using :c:func:`uv_queue_work`) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | 33 | #define UV_VERSION_MAJOR 1 | |
| 34 | 34 | #define UV_VERSION_MINOR 30 | |
| 35 | - #define UV_VERSION_PATCH 0 | ||
| 35 | + #define UV_VERSION_PATCH 1 | ||
| 36 | 36 | #define UV_VERSION_IS_RELEASE 1 | |
| 37 | 37 | #define UV_VERSION_SUFFIX "" | |
| 38 | 38 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,3 +52,7 @@ void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count) { | |||
| 52 | 52 | (void)cpu_infos; | |
| 53 | 53 | (void)count; | |
| 54 | 54 | } | |
| 55 | + | ||
| 56 | + uint64_t uv_get_constrained_memory(void) { | ||
| 57 | + return 0; /* Memory constraints are unknown. */ | ||
| 58 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ | |||
| 37 | 37 | #include <sys/sem.h> | |
| 38 | 38 | #endif | |
| 39 | 39 | ||
| 40 | - #ifdef __GLIBC__ | ||
| 40 | + #if defined(__GLIBC__) && !defined(__UCLIBC__) | ||
| 41 | 41 | #include <gnu/libc-version.h> /* gnu_get_libc_version() */ | |
| 42 | 42 | #endif | |
| 43 | 43 | ||
@@ -222,6 +222,12 @@ int uv_thread_create_ex(uv_thread_t* tid, | |||
| 222 | 222 | size_t pagesize; | |
| 223 | 223 | size_t stack_size; | |
| 224 | 224 | ||
| 225 | + /* Used to squelch a -Wcast-function-type warning. */ | ||
| 226 | + union { | ||
| 227 | + void (*in)(void*); | ||
| 228 | + void* (*out)(void*); | ||
| 229 | + } f; | ||
| 230 | + | ||
| 225 | 231 | stack_size = | |
| 226 | 232 | params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; | |
| 227 | 233 | ||
@@ -248,7 +254,8 @@ int uv_thread_create_ex(uv_thread_t* tid, | |||
| 248 | 254 | abort(); | |
| 249 | 255 | } | |
| 250 | 256 | ||
| 251 | - err = pthread_create(tid, attr, (void*(*)(void*)) entry, arg); | ||
| 257 | + f.in = entry; | ||
| 258 | + err = pthread_create(tid, attr, f.out, arg); | ||
| 252 | 259 | ||
| 253 | 260 | if (attr != NULL) | |
| 254 | 261 | pthread_attr_destroy(attr); | |
@@ -474,7 +481,7 @@ int uv_sem_trywait(uv_sem_t* sem) { | |||
| 474 | 481 | ||
| 475 | 482 | #else /* !(defined(__APPLE__) && defined(__MACH__)) */ | |
| 476 | 483 | ||
| 477 | - #ifdef __GLIBC__ | ||
| 484 | + #if defined(__GLIBC__) && !defined(__UCLIBC__) | ||
| 478 | 485 | ||
| 479 | 486 | /* Hack around https://sourceware.org/bugzilla/show_bug.cgi?id=12674 | |
| 480 | 487 | * by providing a custom implementation for glibc < 2.21 in terms of other | |
@@ -510,7 +517,8 @@ typedef struct uv_semaphore_s { | |||
| 510 | 517 | unsigned int value; | |
| 511 | 518 | } uv_semaphore_t; | |
| 512 | 519 | ||
| 513 | - #if defined(__GLIBC__) || platform_needs_custom_semaphore | ||
| 520 | + #if (defined(__GLIBC__) && !defined(__UCLIBC__)) || \ | ||
| 521 | + platform_needs_custom_semaphore | ||
| 514 | 522 | STATIC_ASSERT(sizeof(uv_sem_t) >= sizeof(uv_semaphore_t*)); | |
| 515 | 523 | #endif | |
| 516 | 524 | ||
@@ -639,7 +647,7 @@ static int uv__sem_trywait(uv_sem_t* sem) { | |||
| 639 | 647 | } | |
| 640 | 648 | ||
| 641 | 649 | int uv_sem_init(uv_sem_t* sem, unsigned int value) { | |
| 642 | - #ifdef __GLIBC__ | ||
| 650 | + #if defined(__GLIBC__) && !defined(__UCLIBC__) | ||
| 643 | 651 | uv_once(&glibc_version_check_once, glibc_version_check); | |
| 644 | 652 | #endif | |
| 645 | 653 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ static void incoming_close_cb(uv_handle_t* handle) { | |||
| 48 | 48 | while (r > 0) | |
| 49 | 49 | r = uv_try_write((uv_stream_t*) &client, &buf, 1); | |
| 50 | 50 | fprintf(stderr, "uv_try_write error: %d %s\n", r, uv_strerror(r)); | |
| 51 | - ASSERT(r == UV_EPIPE || r == UV_ECONNABORTED); | ||
| 51 | + ASSERT(r == UV_EPIPE || r == UV_ECONNABORTED || r == UV_ECONNRESET); | ||
| 52 | 52 | ASSERT(client.write_queue_size == 0); | |
| 53 | 53 | } | |
| 54 | 54 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments