mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
rm the unused calloc wrapper from memory_region
it doesn't actually call calloc, so it's fairly pointless
This commit is contained in:
@@ -58,7 +58,7 @@ check_stack_canary(stk_seg *stk) {
|
||||
stk_seg *
|
||||
create_stack(memory_region *region, size_t sz) {
|
||||
size_t total_sz = sizeof(stk_seg) + sz;
|
||||
stk_seg *stk = (stk_seg *)region->malloc(total_sz, "stack", false);
|
||||
stk_seg *stk = (stk_seg *)region->malloc(total_sz, "stack");
|
||||
memset(stk, 0, sizeof(stk_seg));
|
||||
stk->end = (uintptr_t) &stk->data[sz];
|
||||
add_stack_canary(stk);
|
||||
|
||||
Reference in New Issue
Block a user