File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9ea4afe5daf359c7022057774f943645d0d32043
2
+ refs/heads/master: 3405c548e8f65c9955dfc89188f3cd9db4432bba
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ unsafe fn walk_gc_roots(mem: Memory, visitor: Visitor) {
102
102
match sp {
103
103
Some ( sp_info) => {
104
104
for walk_safe_point( frame. fp, sp_info) |root, tydesc| {
105
+ // Skip null pointers, which can occur when a
106
+ // unique pointer has already been freed.
107
+ if ptr:: is_null ( * root) {
108
+ again;
109
+ }
110
+
105
111
if ptr:: is_null ( tydesc) {
106
112
// Root is a generic box.
107
113
let refcount = * * root;
You can’t perform that action at this time.
0 commit comments