Skip to content

Commit af453a3

Browse files
committed
This assert does not necessarily hold; sometimes we temporarily increase ref-count
1 parent 541c45b commit af453a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/boxed_region.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ rust_opaque_box *boxed_region::realloc(rust_opaque_box *box,
4040
size_t new_size) {
4141

4242
// We also get called on the unique-vec-in-managed-heap path.
43-
assert(box->ref_count == 1 ||
44-
box->ref_count == (size_t)(-2));
43+
// assert(box->ref_count == 1 ||
44+
// box->ref_count == (size_t)(-2));
4545

4646
size_t total_size = new_size + sizeof(rust_opaque_box);
4747
rust_opaque_box *new_box =

0 commit comments

Comments
 (0)