-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc_arena
overhaul
#116224
rustc_arena
overhaul
#116224
Commits on Sep 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 79b11f0 - Browse repository at this point
Copy the full SHA 79b11f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a11f7e4 - Browse repository at this point
Copy the full SHA a11f7e4View commit details -
Inline and remove
DroplessArena::grow_and_alloc
.It has a single callsite.
Configuration menu - View commit details
-
Copy full SHA for 0001edd - Browse repository at this point
Copy the full SHA 0001eddView commit details -
Inline and remove
TypedArena::ensure_capacity
.It has a single callsite.
Configuration menu - View commit details
-
Copy full SHA for 55de23e - Browse repository at this point
Copy the full SHA 55de23eView commit details -
Remove
unsafe
fromTypedArena::alloc_raw_slice
.There's no good reason for it.
Configuration menu - View commit details
-
Copy full SHA for 51edc21 - Browse repository at this point
Copy the full SHA 51edc21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98d97b7 - Browse repository at this point
Copy the full SHA 98d97b7View commit details -
Make
DroplessArena::alloc
callDroplessArena::alloc_raw
.They're very similar.
Configuration menu - View commit details
-
Copy full SHA for 25407bc - Browse repository at this point
Copy the full SHA 25407bcView commit details -
Reduce
grow_and_alloc_raw
to a single call site.The current structure is clumsy, calling `alloc_raw_without_grow` in one function, and then if that fails, calling another function that calls `alloc_raw_without_grow` again.
Configuration menu - View commit details
-
Copy full SHA for 55a1a52 - Browse repository at this point
Copy the full SHA 55a1a52View commit details -
Inline and remove
DroplessArena::alloc_raw_without_grow
.It has a single call site. I find the code clearer with it gone.
Configuration menu - View commit details
-
Copy full SHA for bb5344a - Browse repository at this point
Copy the full SHA bb5344aView commit details