You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would, if the named service doesn't exist, create a new task and execute the specified function. You would use this in each test to create or retrieve a global service to manage your state. The big reservation I have about this is that we can not currently make this interface type safe - we can't even check the types at runtime.
Description was copied from mail-list.
The text was updated successfully, but these errors were encountered:
Add a benchmark of the hang-on-test-failure code path
This is the code pattern that produces the performance problem in rust-lang/miri#2273
I figured out what I was stuck on in rust-lang/miri#2315 (comment). For a while I was just doing `let x: &[u8] = &[0u8; 4096];` but that doesn't produce the runtime inside `Stack::item_popped` that I was looking for, I think because this allocation is never deallocated. But with `Vec`, I get the profile I'm looking for.
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
We can come up with a public API to create global, singleton tasks, possibly with the following signatures:
This would, if the named service doesn't exist, create a new task and execute the specified function. You would use this in each test to create or retrieve a global service to manage your state. The big reservation I have about this is that we can not currently make this interface type safe - we can't even check the types at runtime.
Description was copied from mail-list.
The text was updated successfully, but these errors were encountered: