This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
deps: update libuv to 0.10.36 #9274
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,3 +132,6 @@ Javier Hernández <[email protected]> | |
Tonis Tiigi <[email protected]> | ||
Michael Hudson-Doyle <[email protected]> | ||
Helge Deller <[email protected]> | ||
Logan Rosen <[email protected]> | ||
Kenneth Perry <[email protected]> | ||
Michael Penick <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* Copyright (c) 2013, Ben Noordhuis <[email protected]> | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
* copyright notice and this permission notice appear in all copies. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
|
||
#ifndef UV_ATOMIC_OPS_H_ | ||
#define UV_ATOMIC_OPS_H_ | ||
|
||
#include "internal.h" /* UV_UNUSED */ | ||
|
||
UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)); | ||
UV_UNUSED(static long cmpxchgl(long* ptr, long oldval, long newval)); | ||
UV_UNUSED(static void cpu_relax(void)); | ||
|
||
/* Prefer hand-rolled assembly over the gcc builtins because the latter also | ||
* issue full memory barriers. | ||
*/ | ||
UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)) { | ||
#if defined(__i386__) || defined(__x86_64__) | ||
int out; | ||
__asm__ __volatile__ ("lock; cmpxchg %2, %1;" | ||
: "=a" (out), "+m" (*(volatile int*) ptr) | ||
: "r" (newval), "0" (oldval) | ||
: "memory"); | ||
return out; | ||
#else | ||
return __sync_val_compare_and_swap(ptr, oldval, newval); | ||
#endif | ||
} | ||
|
||
UV_UNUSED(static long cmpxchgl(long* ptr, long oldval, long newval)) { | ||
#if defined(__i386__) || defined(__x86_64__) | ||
long out; | ||
__asm__ __volatile__ ("lock; cmpxchg %2, %1;" | ||
: "=a" (out), "+m" (*(volatile long*) ptr) | ||
: "r" (newval), "0" (oldval) | ||
: "memory"); | ||
return out; | ||
#else | ||
return __sync_val_compare_and_swap(ptr, oldval, newval); | ||
#endif | ||
} | ||
|
||
UV_UNUSED(static void cpu_relax(void)) { | ||
#if defined(__i386__) || defined(__x86_64__) | ||
__asm__ __volatile__ ("rep; nop"); /* a.k.a. PAUSE */ | ||
#endif | ||
} | ||
|
||
#endif /* UV_ATOMIC_OPS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just want to make sure we acknowledge that this doesn't change the ABI because sizeof(AFD_POLL_INFO) >= sizeof(AFD_POLL_INFO*).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 it looks ok.