aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/code_ix.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-04 18:13:22 +0200
committerSverker Eriksson <[email protected]>2017-04-04 19:26:58 +0200
commit566ff495cb0f5f87306c81fc8d8ab2323b34d840 (patch)
tree426c4125cc871562a466e74a0380236445e6ebf0 /erts/emulator/beam/code_ix.h
parent0b3416203c37eba5354e284b9040799158567133 (diff)
downloadotp-566ff495cb0f5f87306c81fc8d8ab2323b34d840.tar.gz
otp-566ff495cb0f5f87306c81fc8d8ab2323b34d840.tar.bz2
otp-566ff495cb0f5f87306c81fc8d8ab2323b34d840.zip
erts: Refactor ErtsCodeInfo.native
into union with actual usage types.
Diffstat (limited to 'erts/emulator/beam/code_ix.h')
-rw-r--r--erts/emulator/beam/code_ix.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/erts/emulator/beam/code_ix.h b/erts/emulator/beam/code_ix.h
index 1b451bf921..e802ad5dd7 100644
--- a/erts/emulator/beam/code_ix.h
+++ b/erts/emulator/beam/code_ix.h
@@ -80,7 +80,13 @@ typedef struct ErtsCodeMFA_ {
in ops.tab to reflect the new func_info size */
typedef struct ErtsCodeInfo_ {
BeamInstr op; /* OpCode(i_func_info) */
- BeamInstr native; /* Used by hipe and trace to store extra data */
+ union {
+ struct generic_bp* gen_bp; /* Trace breakpoint */
+#ifdef HIPE
+ void (*ncallee)(void);
+ struct hipe_call_count* hcc;
+#endif
+ }u;
ErtsCodeMFA mfa;
} ErtsCodeInfo;