diff options
author | John Högberg <john@erlang.org> | 2020-11-06 11:31:47 +0100 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2020-11-12 12:30:36 +0100 |
commit | 78377ca5c87d911bf6b42e653755312438bdddfc (patch) | |
tree | 11be71fee38fe102d9a454a1741d18fee9b961d3 /erts/emulator/beam/sys.h | |
parent | dd4d21753afecf13b1aa54af83bc1785e611079f (diff) | |
download | erlang-78377ca5c87d911bf6b42e653755312438bdddfc.tar.gz |
erts: Replace `BeamInstr*` with `ErtsCodePtr` (void*)
Using `BeamInstr*` means that all code must be word-aligned even
when we're not pointing at BEAM opcodes, which is rather wasteful.
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 7befc6bce7..0239d16db5 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -423,6 +423,7 @@ typedef Uint UWord; typedef Sint SWord; #define ERTS_UINT_MAX ERTS_UWORD_MAX +typedef const void *ErtsCodePtr; typedef UWord BeamInstr; #ifndef HAVE_INT64 |