aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_x86_stack.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-04-25 22:31:41 +0200
committerSverker Eriksson <[email protected]>2014-04-29 16:17:55 +0200
commit23246d73bbd3188e2c0a45408b9bd29fd034ccaf (patch)
tree63e0a5ec04187a00da149f3ee622b1dba1103914 /erts/emulator/hipe/hipe_x86_stack.c
parent07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff)
downloadotp-23246d73bbd3188e2c0a45408b9bd29fd034ccaf.tar.gz
otp-23246d73bbd3188e2c0a45408b9bd29fd034ccaf.tar.bz2
otp-23246d73bbd3188e2c0a45408b9bd29fd034ccaf.zip
erts: Save some space in process struct for hipe
by combining hipe.ncallee and hipe.closure in a union as the comment indicate should be possible.
Diffstat (limited to 'erts/emulator/hipe/hipe_x86_stack.c')
-rw-r--r--erts/emulator/hipe/hipe_x86_stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_x86_stack.c b/erts/emulator/hipe/hipe_x86_stack.c
index 9ad3fa9d31..7f1c2f7d41 100644
--- a/erts/emulator/hipe/hipe_x86_stack.c
+++ b/erts/emulator/hipe/hipe_x86_stack.c
@@ -209,7 +209,7 @@ void (*hipe_handle_stack_trap(Process *p))(void)
* The native stack MUST contain a stack frame as it appears on
* entry to a function (return address, actuals, caller's frame).
* p->hipe.narity MUST contain the arity (number of actuals).
- * On exit, p->hipe.ncallee is set to the handler's PC and p->hipe.nsp
+ * On exit, p->hipe.u.ncallee is set to the handler's PC and p->hipe.nsp
* is set to its SP (low address of its stack frame).
*/
void hipe_find_handler(Process *p)
@@ -240,7 +240,7 @@ void hipe_find_handler(Process *p)
if ((exnra = sdesc_exnra(sdesc)) != 0 &&
(p->catches >= 0 ||
exnra == (unsigned long)nbif_fail)) {
- p->hipe.ncallee = (void(*)(void)) exnra;
+ p->hipe.u.ncallee = (void(*)(void)) exnra;
p->hipe.nsp = nsp;
p->hipe.narity = 0;
/* update the gray/white boundary if we threw past it */