File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,7 @@ upcall_s_exchange_malloc(s_exchange_malloc_args *args) {
158
158
LOG_UPCALL_ENTRY (task);
159
159
160
160
size_t total_size = get_box_size (args->size , args->td ->align );
161
- // FIXME--does this have to be calloc? (Issue #2682)
162
- void *p = task->kernel ->calloc (total_size, " exchange malloc" );
161
+ void *p = task->kernel ->malloc (total_size, " exchange malloc" );
163
162
164
163
rust_opaque_box *header = static_cast <rust_opaque_box*>(p);
165
164
header->ref_count = -1 ; // This is not ref counted
@@ -234,8 +233,7 @@ upcall_s_malloc(s_malloc_args *args) {
234
233
LOG_UPCALL_ENTRY (task);
235
234
LOG (task, mem, " upcall malloc(0x%" PRIxPTR " )" , args->td );
236
235
237
- // FIXME--does this have to be calloc? (Issue #2682)
238
- rust_opaque_box *box = task->boxed .calloc (args->td , args->size );
236
+ rust_opaque_box *box = task->boxed .malloc (args->td , args->size );
239
237
void *body = box_body (box);
240
238
241
239
debug::maybe_track_origin (task, box);
You can’t perform that action at this time.
0 commit comments