Skip to content

Commit def5708

Browse files
committed
FIXMEs
1 parent 2bf2cc6 commit def5708

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/arena.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ unsafe impl<'o, 'n, 'r: 'n, O: NoGc + Immutable + 'o, N: NoGc + Immutable + 'r>
152152
.entry((offset / size_of::<N>()) as u16)
153153
.and_modify(|gc| new_gc = *gc)
154154
.or_insert_with(|| {
155+
// FIXME overrun
155156
unsafe { *next = ((*next as usize) - size_of::<N>()) as *mut N };
156157
new_gc
157158
});

tests/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ where
9595
.and_modify(|gc| new_gc = unsafe { std::mem::transmute(*gc) })
9696
.or_insert_with(|| {
9797
unsafe {
98+
// FIXME overrun
9899
*next = ((*next as usize) - std::mem::size_of::<List<N>>()) as *mut _
99100
};
100101
new_gc

0 commit comments

Comments
 (0)