aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc_util.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-12-08 15:38:04 +0100
committerSverker Eriksson <[email protected]>2015-11-10 16:40:24 +0100
commit38ddf72b48377bd6b2fb8c4b6981360ae7d44d79 (patch)
treeccf98c7822d0fc0dc56edcb882706166b5357fb8 /erts/emulator/beam/erl_alloc_util.c
parentb72ad981e96fcc14c245ef2bd10c5c98c6a239f6 (diff)
downloadotp-38ddf72b48377bd6b2fb8c4b6981360ae7d44d79.tar.gz
otp-38ddf72b48377bd6b2fb8c4b6981360ae7d44d79.tar.bz2
otp-38ddf72b48377bd6b2fb8c4b6981360ae7d44d79.zip
erts: Add alloc_SUITE:migration
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.c')
-rw-r--r--erts/emulator/beam/erl_alloc_util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c
index 173cb091b6..8229a15824 100644
--- a/erts/emulator/beam/erl_alloc_util.c
+++ b/erts/emulator/beam/erl_alloc_util.c
@@ -6074,6 +6074,16 @@ erts_alcu_test(UWord op, UWord a1, UWord a2)
case 0x023: return (UWord) 0;
case 0x024: return (UWord) 0;
#endif
+ case 0x025: /* UMEM2BLK_TEST*/
+#ifdef DEBUG
+# ifdef HARD_DEBUG
+ return (UWord)UMEM2BLK(a1-3*sizeof(UWord));
+# else
+ return (UWord)UMEM2BLK(a1-2*sizeof(UWord));
+# endif
+#else
+ return (UWord)UMEM2BLK(a1);
+#endif
default: ASSERT(0); return ~((UWord) 0);
}