File tree Expand file tree Collapse file tree 3 files changed +1
-43
lines changed Expand file tree Collapse file tree 3 files changed +1
-43
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0babfd9f98a984b485c0d19344987d3db52f9fdb
2
+ refs/heads/master: 7efb9426394ce5854b906bd3d7394bfc2228a9d0
Original file line number Diff line number Diff line change @@ -557,46 +557,6 @@ upcall_start_task(rust_task *spawner,
557
557
return task;
558
558
}
559
559
560
- /* *
561
- * Resizes an interior vector that has been spilled to the heap.
562
- */
563
- extern " C" CDECL void
564
- upcall_ivec_resize (rust_task *task,
565
- rust_ivec *v,
566
- size_t newsz) {
567
- LOG_UPCALL_ENTRY (task);
568
-
569
- I (task->sched , !v->fill );
570
-
571
- size_t new_alloc = next_power_of_two (newsz);
572
- rust_ivec_heap *new_heap_part = (rust_ivec_heap *)
573
- task->realloc (v->payload .ptr , new_alloc + sizeof (size_t ));
574
-
575
- new_heap_part->fill = newsz;
576
- v->alloc = new_alloc;
577
- v->payload .ptr = new_heap_part;
578
- }
579
-
580
- /* *
581
- * Spills an interior vector to the heap.
582
- */
583
- extern " C" CDECL void
584
- upcall_ivec_spill (rust_task *task,
585
- rust_ivec *v,
586
- size_t newsz) {
587
- LOG_UPCALL_ENTRY (task);
588
- size_t new_alloc = next_power_of_two (newsz);
589
-
590
- rust_ivec_heap *heap_part = (rust_ivec_heap *)
591
- task->malloc (new_alloc + sizeof (size_t ));
592
- heap_part->fill = newsz;
593
- memcpy (&heap_part->data , v->payload .data , v->fill );
594
-
595
- v->fill = 0 ;
596
- v->alloc = new_alloc;
597
- v->payload .ptr = heap_part;
598
- }
599
-
600
560
/* *
601
561
* Resizes an interior vector that has been spilled to the heap.
602
562
*/
Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ upcall_flush_chan
61
61
upcall_free
62
62
upcall_get_type_desc
63
63
upcall_grow_task
64
- upcall_ivec_resize
65
64
upcall_ivec_resize_shared
66
- upcall_ivec_spill
67
65
upcall_ivec_spill_shared
68
66
upcall_kill
69
67
upcall_log_double
You can’t perform that action at this time.
0 commit comments