diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-02-26 16:53:23 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:29 +0100 |
commit | 6507ec20f00acac025252bf7b7609eee1f593a84 (patch) | |
tree | b2bb60cefa299eacdb9af889de399863f4e6660a /erts/emulator/beam/utils.c | |
parent | f7ee6181417f05670e2e733085dd7f038d6f30f8 (diff) | |
download | otp-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.c | 4 |
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 { |