Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
out of the JVM's default heap. Client-compat now warns, in the job summary,
when a client's graph holds a second spawned version. The PR template asks
for an independent review of concurrency changes and trace-validated models.
- `#[actor]` marks the generated await-free dispatch
(`__spawned_handle_immediate`) `#[inline]`. Since the module split (#278)
the compiler had stopped inlining it into the envelope, adding 22
instructions per `send` (+3.6% over 0.8.0 on `async_ct_send_*`, +0.4% to
+1.2% on the async request benchmarks). With the hint every gated async
benchmark is below 0.8.0 (send -3.4%, requests -0.6% to -0.9%).
- Fix the flaky `supervision::transient_startup_timeout_retries_after_actual_cleanup`
(a 20 ms startup deadline raced the fast starts on a loaded host, which also
made cargo-mutants report surviving mutants as caught): the replacement's
Expand Down
6 changes: 6 additions & 0 deletions macros/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,12 @@ pub(crate) fn expand(attr: TokenStream, item: TokenStream) -> TokenStream {
let _ = #reply_name.reply(self.#method_name(#msg_name, #ctx_name).await);
}

// Inlined into the envelope's dispatch with the
// handler body and reply(); left to the heuristics,
// whether that happens depends on how the crate is
// split into modules (+3.6% instructions per send
// after #278).
#[inline]
fn __spawned_handle_immediate<#turn_lifetime>(
&mut self,
#msg_name: #msg_ty,
Expand Down
Loading