aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
committerSverker Eriksson <[email protected]>2016-11-22 14:22:19 +0100
commit9563cd5b296fe589c8abe357710fbb79bc766d09 (patch)
tree464ff57782299c2e42d937ab3428a651615bfdbf /erts/emulator/beam/utils.c
parent3d7b55f946162b5a129241dbe67397784a1ba1a5 (diff)
parent011242f927259aa477ebe488a3ee3c4e22081488 (diff)
downloadotp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.gz
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.tar.bz2
otp-9563cd5b296fe589c8abe357710fbb79bc766d09.zip
Merge branch 'sverker/Wundef'
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index cd7131f5df..80c116fdac 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -204,9 +204,8 @@ erl_grow_wstack(ErtsWStack* s, Uint need)
void
erl_grow_pstack(ErtsPStack* s, void* default_pstack, unsigned need_bytes)
{
- Uint old_size = s->pend - s->pstart;
+ Uint old_size = s->size;
Uint new_size;
- Uint sp_offs = s->psp - s->pstart;
if (need_bytes < old_size)
new_size = 2 * old_size;
@@ -220,8 +219,7 @@ erl_grow_pstack(ErtsPStack* s, void* default_pstack, unsigned need_bytes)
sys_memcpy(new_ptr, s->pstart, old_size);
s->pstart = new_ptr;
}
- s->pend = s->pstart + new_size;
- s->psp = s->pstart + sp_offs;
+ s->size = new_size;
}
/*