-
Notifications
You must be signed in to change notification settings - Fork 471
Merge darwin/libdispatch-913.1.4 to master #289
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
Conversation
Signed-off-by: Daniel A. Steffen <[email protected]>
update README and INSTALL for libpwq removal Signed-off-by: Daniel A. Steffen <[email protected]>
As suggested in review of PR-206, DISPATCH_USE_INTERNAL_WORKQUEUES should not enable HAVE_PTHREAD_WORKQUEUES. Instead, a new DISPATCH_USE_WORKQUEUES is defined in queue.c to guard code that should be enabled in either case. Signed-off-by: Daniel A. Steffen <[email protected]>
clarify config of pthread_workqueue vs. internal_workqueue Signed-off-by: Daniel A. Steffen <[email protected]>
define WORKQ_ADDTHREADS_OPTION_OVERCOMMIT for DISPATCH_USE_INTERNAL_WORKQUEUE remove unused _swift_dispatch_apply_current_root_queue symbol remove duplicate _dispatch_adopt_wlh_anon() in _dispatch_mgr_thread(), this is already set by its caller _dispatch_root_queue_drain() Signed-off-by: Daniel A. Steffen <[email protected]>
…aster Merge darwin/libdispatch-890 to master Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
…ibdispatch-890-merge-master Re-merge darwin/libdispatch-890 to master Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
[Overlay/Queue]: Allow setting an optional value in setSpecific Signed-off-by: Daniel A. Steffen <[email protected]>
Update dispatch_workq (DISPATCH_USE_INTERNAL_WORKQUEUE) to use QoS-based constants instead of legacy priorities. Enhance monitoring code to count runnable threads from highest QoS to lowest and to suppress voluntary oversubscription for lower QoS queues if the total count of runnable worker threads is already over the desired threshold. Signed-off-by: Daniel A. Steffen <[email protected]>
Convert dispatch_workq from legacy priorities to qos Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
Thread detach hook for Java JNI on Android Signed-off-by: Daniel A. Steffen <[email protected]>
Use the target_sources function to add additional sources to the dispatch target rather than managing lists. This simplifies the handling and modernises the CMake usage. Signed-off-by: Daniel A. Steffen <[email protected]>
Add support to the cmake based build system to use the internal pthread workqueue implementation. This restores parity with the autotools build. Signed-off-by: Daniel A. Steffen <[email protected]>
cmake parity updates Signed-off-by: Daniel A. Steffen <[email protected]>
Use a darwin specific modulemap on darwin, and the generic one elsewhere. This fixes the cmake build to create the symlinks like the autotools build and cause the installation to be correct on Darwin as well as the build. Signed-off-by: Daniel A. Steffen <[email protected]>
build: switch the module map according to the target Signed-off-by: Daniel A. Steffen <[email protected]>
This used to be an option in the autotools build. Address the TODO item and add an option to control that. Signed-off-by: Daniel A. Steffen <[email protected]>
build: add option to use the gold linker Signed-off-by: Daniel A. Steffen <[email protected]>
Add the missing support for dtrace header script support. Signed-off-by: Daniel A. Steffen <[email protected]>
build: add dtrace USDT probe support Signed-off-by: Daniel A. Steffen <[email protected]>
Remove the supporting code for WITH_PTHREAD_WORKQUEUES which was removed previously. NFC. Signed-off-by: Daniel A. Steffen <[email protected]>
build: remove dead code Signed-off-by: Daniel A. Steffen <[email protected]>
- This allows it to be used by Foundation so that the duplicate function can be removed. Signed-off-by: Daniel A. Steffen <[email protected]>
Export objc_retainAutoreleasedReturnValue() Signed-off-by: Daniel A. Steffen <[email protected]>
All of the swift projects that depend on finding libdispatch.so during their builds (swift, foundation, swiftpm) all expect it to be in src/.libs/libdispatch.so (libtool convention). Temporarily add a rule to copy the built library to where libtool would have placed it to decouple using CMake for libdispatch from updating all of the other dependent projects' build expectations. Signed-off-by: Daniel A. Steffen <[email protected]>
CMake compatibility with Swift build assumptions Signed-off-by: Daniel A. Steffen <[email protected]>
There may be a more elegant way to do this, but we really want to build shared libraries by default on Linux and we want to build the test cases and be able to run them. Signed-off-by: Daniel A. Steffen <[email protected]>
Set CMake defaults to match autoconf Linux behavior. Signed-off-by: Daniel A. Steffen <[email protected]>
…iler with SE-0176 support. Signed-off-by: Daniel A. Steffen <[email protected]>
Fix warnings in DispatchQueue.sync() implementation when using a comp… Signed-off-by: Daniel A. Steffen <[email protected]>
By not inlining the fastpath of dispatch_once() when the hardware cannot give us the right semantics. Signed-off-by: Daniel A. Steffen <[email protected]>
Remove dependency on sys_membarrier on linux Signed-off-by: Daniel A. Steffen <[email protected]>
_dispatch_epoll_update() was being called without dmn->dmn_events being updated beforehand. Signed-off-by: Pierre Habouzit <[email protected]> Signed-off-by: Daniel A. Steffen <[email protected]>
Actually update epoll events if needed when unregistering Signed-off-by: Daniel A. Steffen <[email protected]>
Make sure we don't keep doing these syscalls and log stupid errors about it failing forever. Signed-off-by: Daniel A. Steffen <[email protected]>
the buffer size ioctls on linux return EINVAL when it's not supported Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
Fix improper double-fire of signal sources on Linux Signed-off-by: Daniel A. Steffen <[email protected]>
work in progress on cleaning up code so it can be compiled with the same set of warning flags used on Darwin. This is an initial pass through the C files in src to resolve warnings. Most warnings are related to implicit size/sign conversions between integral types and missing explicit prototypes for non-static functions. Signed-off-by: Daniel A. Steffen <[email protected]>
fixes to src to prep for enabling additional compiler warnings Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
Signed-off-by: Daniel A. Steffen <[email protected]>
ec0f661
to
0eaaab6
Compare
Signed-off-by: Daniel A. Steffen <[email protected]>
485b60f
to
17c153a
Compare
@swift-ci please test |
with those last two changes, the CI is happy. @dgrove-oss would you mind giving this a manual sanity check on your end as well just to make sure we don't break anything at this late stage ? |
sure. i'll do that this morning. |
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.
Tested locally on Linux; looks good.
Thanks Dave! |
…ge-master Merge darwin/libdispatch-913.1.4 to master Signed-off-by: Daniel A. Steffen <[email protected]>
Merge tag darwin/libdispatch-913.1.4 on darwin/trunk.
This includes the latest Apple source drop libdispatch-913.1.4 (up from libdispatch-890 in #254), on top of darwin/darwin-009.
The latter tag includes the github PR's below merged to trunk that we've pulled back into the Apple internal repository, along with any changes made to them during internal review and testing on Darwin:
#249 from dgrove-oss/update-docs
#248 from dgrove-oss/queue_config_cleanup
#254 from apple/das-darwin-libdispatch-890-merge-master
#256 from apple/revert-255-revert-254-das-darwin-libdispatch-890-merge-master
#172 from karwa/removespecific
#253 from dgrove-oss/linux-qos-prioritty
#259 from johnno1962a/master
#260 from compnerd/cmake-parity
#261 from compnerd/module-maps
#262 from compnerd/gold
#264 from compnerd/dtrace-usdt-probes
#266 from compnerd/pwq
#258 from spevans/pr_expose_symbol
#267 from dgrove-oss/cmake-copy-libdisaptch
#269 from dgrove-oss/cmake-default-args
#268 from ktopley-apple/dispatch-sync-fixup-overlay
#277 from apple/mad/remove-sys-membarrier
#280 from apple/mad/epoll-fixes
#281 from apple/mad/epoll-fixes-2
#279 from apple/mad/greedy-signalfd
#273 from dgrove-oss/match-darwin-cflags-round1