Skip to content

Commit 9c2abb8

Browse files
committed
rt: Fix the calculation of the location of GC safe points
1 parent 955bef3 commit 9c2abb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_gc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class safe_point_map {
4141
#endif
4242
n_safe_points = *data++;
4343
index = (const std::pair<void *,const safe_point *> *)data;
44-
data += n_safe_points;
44+
data += n_safe_points * 2;
4545
safe_points = (const safe_point *)data;
4646
}
4747
};

0 commit comments

Comments
 (0)