-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Overhaul of the AllocRef
trait to match allocator-wg's latest consens; Take 2
#70362
Conversation
fb2e3c4
to
14b6d13
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 44440b3cc53fdee09b42d6add442729b7795b6ec with merge 596ca62e7a53ded2213f364156eae2a6a5478c8f... |
☀️ Try build successful - checks-azure |
Queued 596ca62e7a53ded2213f364156eae2a6a5478c8f with parent 3c1d9ad, future comparison URL. |
Finished benchmarking try commit 596ca62e7a53ded2213f364156eae2a6a5478c8f, comparison URL. |
The average from both, all cpu-clock avg values and all task-clock avg values, is 0.692% and 0.693% respectively, which is fine I think. The biggest regression we have in a stress test, all other regressions (if any) are below 3%. In comparison to the last perf-run this is much better. |
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 78f6ca31edcc805151e7cf72cb922673386a738e with merge 266627c4feaf72ec1b9019f3a957804478ef516c... |
☀️ Try build successful - checks-azure |
Queued 266627c4feaf72ec1b9019f3a957804478ef516c with parent a17dd36, future comparison URL. |
@bors retry yield |
☀️ Test successful - checks-azure |
Tested on commit rust-lang/rust@127a11a. Direct link to PR: <rust-lang/rust#70362> 💔 nomicon on windows: test-pass → test-fail (cc @Gankra @frewsxcv). 💔 nomicon on linux: test-pass → test-fail (cc @Gankra @frewsxcv).
rustup for AllocRef changes Cc rust-lang/rust#70362
rustup for AllocRef changes Cc rust-lang/rust#70362
This was accidentally removed in rust-lang#70362 56cbf2f
…ruppe re-add Layout::for_value_raw Tracking issue: rust-lang#69835 This was accidentally removed in rust-lang#70362 56cbf2f. Originally added in rust-lang#69079.
GitHub won't let me reopen #69889 so I make a new PR.
In addition to #69889 this fixes the unsoundness of
RawVec::into_box
when using allocators supporting overallocating. Also it usesMemoryBlock
inAllocRef
to unify_in_place
methods by passing&mut MemoryBlock
. Additionally,RawVec
now checks forsize_of::<T>()
again and ignore every ZST. The internal capacity ofRawVec
isn't used by ZSTs anymore, asinto_box
now requires a length to be specified.r? @Amanieu
fixes rust-lang/wg-allocators#38
fixes rust-lang/wg-allocators#41
fixes rust-lang/wg-allocators#44
fixes rust-lang/wg-allocators#51