aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-02-26 16:53:23 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:29 +0100
commit6507ec20f00acac025252bf7b7609eee1f593a84 (patch)
treeb2bb60cefa299eacdb9af889de399863f4e6660a /erts/emulator/beam/utils.c
parentf7ee6181417f05670e2e733085dd7f038d6f30f8 (diff)
downloadotp-6507ec20f00acac025252bf7b7609eee1f593a84.tar.gz
otp-6507ec20f00acac025252bf7b7609eee1f593a84.tar.bz2
otp-6507ec20f00acac025252bf7b7609eee1f593a84.zip
erts: Make ESTACK usable through pointer
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index d234e8fc68..c8a21adf17 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -190,7 +190,7 @@ erts_set_hole_marker(Eterm* ptr, Uint sz)
* Helper function for the ESTACK macros defined in global.h.
*/
void
-erl_grow_estack(ErtsEStack* s, Eterm* default_estack, Uint need)
+erl_grow_estack(ErtsEStack* s, Uint need)
{
Uint old_size = (s->end - s->start);
Uint new_size;
@@ -201,7 +201,7 @@ erl_grow_estack(ErtsEStack* s, Eterm* default_estack, Uint need)
else
new_size = ((need / old_size) + 2) * old_size;
- if (s->start != default_estack) {
+ if (s->start != s->edefault) {
s->start = erts_realloc(s->alloc_type, s->start,
new_size*sizeof(Eterm));
} else {