Carl Lerche
8108de2129
remove repr align
2023-06-21 01:29:43 +00:00
Carl Lerche
cbacaa3e4f
Merge remote-tracking branch 'origin/master' into rt-threaded-rework
2023-06-21 01:24:43 +00:00
Carl Lerche
6546b21581
wip
2023-06-21 01:06:25 +00:00
Carl Lerche
bc5128f255
move fields around
2023-06-19 15:15:41 -07:00
Jack Wrenn
56c4365584
tokio: improve taskdump documentation ( #5805 )
...
- Add example trace output.
- Add note on enabling unstable features.
- Add note on performance overhead.
2023-06-19 13:34:48 -04:00
Andrew Mackenzie
fb0d305a7a
ci: build tokio for redox-os ( #5800 )
2023-06-19 19:33:17 +02:00
Carl Lerche
ce19836b9a
wip
2023-06-14 13:28:49 -07:00
Carl Lerche
a65d23afe9
wip
2023-06-14 12:45:52 -07:00
Carl Lerche
9e38f568ad
wip
2023-06-14 11:58:17 -07:00
Carl Lerche
2dec4a93c1
wip
2023-06-14 10:57:31 -07:00
Carl Lerche
814a3c5c93
wip
2023-06-14 09:39:24 -07:00
盏一
848482d2bb
rt(threaded): adjust transition_from_parked behavior after introducing disable_lifo_slot feature ( #5753 )
2023-06-14 12:42:31 +02:00
Carl Lerche
46c4e87ab4
wip
2023-06-13 13:43:58 -07:00
Carl Lerche
152d4fc899
wip
2023-06-13 13:14:10 -07:00
Carl Lerche
464e59caab
wip
2023-06-13 13:08:00 -07:00
Carl Lerche
0866ee376b
wip
2023-06-13 12:08:36 -07:00
Carl Lerche
e28b1e59ef
wip
2023-06-13 11:21:06 -07:00
Carl Lerche
f6f54de2bf
wip
2023-06-13 11:12:48 -07:00
Carl Lerche
908ebc705a
wip
2023-06-13 11:07:33 -07:00
Carl Lerche
3095e7fc0d
wip
2023-06-13 10:39:44 -07:00
Andrew Mackenzie
00af6eff77
net: add support for Redox OS ( #5790 )
2023-06-13 12:42:40 +02:00
Carl Lerche
e6a1444fac
fix more bugz
2023-06-12 16:14:33 -07:00
Carl Lerche
fab5adc17c
fix another issue
2023-06-12 13:45:08 -07:00
Carl Lerche
22ccfe48c1
more fix shutdown
2023-06-12 12:57:54 -07:00
Carl Lerche
904dabb23d
fix more bugs
2023-06-12 12:51:23 -07:00
Carl Lerche
0cfaaea2b9
wip
2023-06-12 12:07:55 -07:00
Carl Lerche
f71c369203
fixes
2023-06-12 11:53:22 -07:00
Carl Lerche
392cd057ed
wip
2023-06-12 11:07:09 -07:00
icedrocket
b7290910f7
sync: fix typo in batch semaphore ( #5789 )
2023-06-12 15:43:12 +02:00
Taiki Endo
af6c87a045
chore: upgrade remaining 2018 edition crates to 2021 edition ( #5788 )
2023-06-12 02:21:50 +09:00
Taiki Endo
6257712d68
ci: update cargo-check-external-types to 0.1.7 ( #5786 )
2023-06-11 19:02:12 +09:00
Taiki Endo
c5d52c17ae
chore: enable cargo v2 resolver to prevent dev-deps from enabling log feature of mio ( #5787 )
2023-06-11 17:34:22 +09:00
Erk
2a54ad01d0
time: do not overflow to signal value ( #5710 )
2023-06-10 14:24:19 +02:00
Jack Wrenn
cb18b0a231
tokio: improve task dump documentation ( #5778 )
...
Adds depth to the taskdump example, and documentation to Handle::dump.
2023-06-10 13:30:08 +02:00
nvartolomei
7ccd3e0c6d
task: add JoinSet::poll_join_next ( #5721 )
2023-06-10 13:19:07 +02:00
Bugen Zhao
e63d0f10bf
task: use pin-project for TaskLocalFuture ( #5758 )
...
Signed-off-by: Bugen Zhao <[email protected] >
2023-06-10 12:38:52 +02:00
Carl Lerche
31839f6ed3
wip
2023-06-09 17:00:35 -07:00
Carl Lerche
22e568d818
wip
2023-06-09 14:29:32 -07:00
Carl Lerche
6cbdb587bb
wip
2023-06-09 11:41:06 -07:00
Carl Lerche
97123db204
wip
2023-06-09 11:00:31 -07:00
Carl Lerche
0f605b51ca
wip
2023-06-08 14:07:07 -07:00
Carl Lerche
e5371b3820
wip
2023-06-08 10:47:43 -07:00
Alice Ryhl
a2941e48be
ci: temporarily disable semver check ( #5774 )
2023-06-08 10:36:25 +02:00
Carl Lerche
5b4225b13c
wip
2023-06-07 15:37:58 -07:00
Carl Lerche
1c8d22c18b
rt: reduce code defined in macros ( #5773 )
...
Instead of defining code in macros, move code definition to sub modules
and use the cfg_macro to declare the module.
2023-06-07 08:48:27 -07:00
Carl Lerche
cbb3c155dd
rt: panic if EnterGuard dropped incorrect order ( #5772 )
...
Calling `Handle::enter()` returns a `EnterGuard` value, which resets the
thread-local context on drop. The drop implementation assumes that
guards from nested `enter()` calls are dropped in reverse order.
However, there is no static enforcement of this requirement.
This patch checks that the guards are dropped in reverse order and
panics otherwise. A future PR will deprecate `Handle::enter()` in favor
of a method that takes a closure, ensuring the guard is dropped
appropriately.
2023-06-07 08:47:58 -07:00
Jack Wrenn
038c4d9999
rt: implement task dumps for multi-thread runtime ( #5717 )
...
This patch implements task dumps on the multi-thread runtime. It
complements #5608 , which implemented task dumps on the current-thread
runtime.
2023-06-06 13:55:37 -07:00
Folkert de Vries
7b24b22901
io: support PRIORITY epoll events ( #5566 )
...
Add support for epoll priority events. The commit adds `Interest::PRIORITY`, `ready`, and `ready_mut` functions to `AsyncFd`.
Closes #4885
2023-06-06 11:57:20 -07:00
Carl Lerche
779b9c19d5
ci: disable tuning test when runing ASAN ( #5770 )
...
The tuning test relies on a predictable execution environment. It
assumes that spawning a new task can complete reasonably fast. When
running tests with ASAN, the tuning test will spurriously fail. After
investigating, I believe this is due to running tests with ASAN enabled
and without `release` in a low resource environment (CI) results in an
execution environment that is too slow for the tuning test to succeed.
2023-06-06 09:35:19 -07:00
Carl Lerche
1204da7300
rt: split runtime::context into multiple files ( #5768 )
...
This PR restructures `runtime::context` into multiple files by component and feature flag. The goal is to reduce code defined in macros and make each context component more manageable.
There should be no behavior changes except tweaking how the RNG seed is set. Instead of putting it in `set_current`, we set it when entering the runtime. This aligns better with the feature's original intent, enabling users to make a runtime's RNG deterministic. The seed should not be changed by `Handle::enter()`, so there is no need to have the code in `context::set_current`.
2023-06-06 08:37:11 -07:00