diff options
author | Sverker Eriksson <[email protected]> | 2019-03-28 20:56:31 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-03-28 22:17:42 +0100 |
commit | bff3ef4e41c7637b0a9c1ca5a42a1c28efe242f5 (patch) | |
tree | a003afd1e1af4ecf7061f1471f9787dd17a73bc3 | |
parent | f30b1052c7097a95faaba272feccc6190682a7f8 (diff) | |
download | otp-bff3ef4e41c7637b0a9c1ca5a42a1c28efe242f5.tar.gz otp-bff3ef4e41c7637b0a9c1ca5a42a1c28efe242f5.tar.bz2 otp-bff3ef4e41c7637b0a9c1ca5a42a1c28efe242f5.zip |
erts: Use ptr_val for pointer in gc msg copy
Cherry-pick: 3d7d66b84b69f3eb42e8bcd8dc510b6676e31cac
Without this fix asserts would trigger in debug build
but nothing else would break.
-rw-r--r-- | erts/emulator/beam/erl_gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c index d5dfb096b1..cf44640f12 100644 --- a/erts/emulator/beam/erl_gc.c +++ b/erts/emulator/beam/erl_gc.c @@ -2477,7 +2477,7 @@ erts_copy_one_frag(Eterm** hpp, ErlOffHeap* off_heap, *hpp = hp; for (i = 0; i < nrefs; i++) { - if (is_not_immed(refs[i]) && !erts_is_literal(refs[i],boxed_val(refs[i]))) + if (is_not_immed(refs[i]) && !erts_is_literal(refs[i],ptr_val(refs[i]))) refs[i] = offset_ptr(refs[i], offs); } bp->off_heap.first = NULL; |