Skip to content

Commit 95b19bb

Browse files
committed
don't be too perf-greedy
1 parent b2612cb commit 95b19bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
158158
}
159159

160160
// For simplicities' sake, we implement reallocate as "alloc, copy, dealloc".
161-
// FIXME: Do something more efficient.
161+
// This happens so rarely, the perf advantage is outweighed by the maintenance cost.
162162
let new_ptr = self.allocate(new_size, new_align, kind)?;
163163
self.copy(
164164
ptr.into(),

0 commit comments

Comments
 (0)