summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorJohn Högberg <john@erlang.org>2020-11-06 11:31:47 +0100
committerJohn Högberg <john@erlang.org>2020-11-12 12:30:36 +0100
commit78377ca5c87d911bf6b42e653755312438bdddfc (patch)
tree11be71fee38fe102d9a454a1741d18fee9b961d3 /erts/emulator/beam/sys.h
parentdd4d21753afecf13b1aa54af83bc1785e611079f (diff)
downloaderlang-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.h1
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