diff options
author | Sverker Eriksson <[email protected]> | 2014-04-25 22:31:41 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-04-29 16:17:55 +0200 |
commit | 23246d73bbd3188e2c0a45408b9bd29fd034ccaf (patch) | |
tree | 63e0a5ec04187a00da149f3ee622b1dba1103914 /erts/emulator/hipe/hipe_process.h | |
parent | 07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff) | |
download | otp-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_process.h')
-rw-r--r-- | erts/emulator/hipe/hipe_process.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/erts/emulator/hipe/hipe_process.h b/erts/emulator/hipe/hipe_process.h index 4ee99d78a2..cd88a37f80 100644 --- a/erts/emulator/hipe/hipe_process.h +++ b/erts/emulator/hipe/hipe_process.h @@ -28,9 +28,10 @@ struct hipe_process_state { Eterm *nsp; /* Native stack pointer. */ Eterm *nstack; /* Native stack block start. */ Eterm *nstend; /* Native stack block end (start+size). */ - /* XXX: ncallee and closure could share space in a union */ - void (*ncallee)(void); /* Native code callee (label) to invoke. */ - Eterm closure; /* Used to pass a closure from native code. */ + union { + void (*ncallee)(void); /* Native code callee (label) to invoke. */ + Eterm closure; /* Used to pass a closure from native code. */ + }u; Eterm *nstgraylim; /* Gray/white stack boundary. */ Eterm *nstblacklim; /* Black/gray stack boundary. Must exist if graylim exists. Ignored if no graylim. */ |