Skip to content

Commit 12524ba

Browse files
committed
---
yaml --- r: 53081 b: refs/heads/dist-snap c: 7103ca9 h: refs/heads/master i: 53079: 3a18055 v: v3
1 parent 8e27b2f commit 12524ba

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 22e88d510f09a29a6799c4522d6c6ae83c324a64
10+
refs/heads/dist-snap: 7103ca95ac8e92fd32ab65321cd443a7233a48e0
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/rt/rust_exchange_alloc.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
uintptr_t exchange_count = 0;
1919

2020
void *
21-
rust_exchange_alloc::malloc(size_t size, bool zero) {
21+
rust_exchange_alloc::malloc(size_t size) {
2222
void *value = ::malloc(size);
2323
assert(value);
24-
if (zero) {
25-
memset(value, 0, size);
26-
}
2724

2825
sync::increment(exchange_count);
2926

branches/dist-snap/src/rt/rust_exchange_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class rust_exchange_alloc {
1818
public:
19-
void *malloc(size_t size, bool zero = true);
19+
void *malloc(size_t size);
2020
void *calloc(size_t size);
2121
void *realloc(void *mem, size_t size);
2222
void free(void *mem);

branches/dist-snap/src/rt/rust_stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ destroy_stack(memory_region *region, stk_seg *stk) {
7575
stk_seg *
7676
create_exchange_stack(rust_exchange_alloc *exchange, size_t sz) {
7777
size_t total_sz = sizeof(stk_seg) + sz;
78-
stk_seg *stk = (stk_seg *)exchange->malloc(total_sz, false);
78+
stk_seg *stk = (stk_seg *)exchange->malloc(total_sz);
7979
memset(stk, 0, sizeof(stk_seg));
8080
stk->end = (uintptr_t) &stk->data[sz];
8181
add_stack_canary(stk);

0 commit comments

Comments
 (0)