diff options
author | Björn Gustavsson <[email protected]> | 2016-06-29 11:36:20 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-29 11:36:20 +0200 |
commit | 1e0ef3f2285eae3bd00047c4f10c4a44084e1aa9 (patch) | |
tree | c658258c82a1eb7871165d5fd52f55892e974998 /erts/emulator/beam/beam_load.c | |
parent | d0ae94966b4224f56f17e47e7fed2a979aad91ef (diff) | |
parent | 644cc778e9770b847700dca41a0c3ebe20da64df (diff) | |
download | otp-1e0ef3f2285eae3bd00047c4f10c4a44084e1aa9.tar.gz otp-1e0ef3f2285eae3bd00047c4f10c4a44084e1aa9.tar.bz2 otp-1e0ef3f2285eae3bd00047c4f10c4a44084e1aa9.zip |
Merge branch 'bjorn/erts/use-const'
* bjorn/erts/use-const:
beam_makeops: Save some memory by making loader tables 'const'
beam_makeops: Separate static information from counters
make_preload: Save some memory by making preloaded code 'const'
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r-- | erts/emulator/beam/beam_load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index 0c2743beb2..4ca2c6a13f 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -4860,7 +4860,7 @@ transform_engine(LoaderState* st) { Uint op; int ap; /* Current argument. */ - Uint* restart; /* Where to restart if current match fails. */ + const Uint* restart; /* Where to restart if current match fails. */ GenOpArg var[TE_MAX_VARS]; /* Buffer for variables. */ GenOpArg* rest_args = NULL; int num_rest_args = 0; @@ -4869,7 +4869,7 @@ transform_engine(LoaderState* st) GenOp* instr; GenOp* first = st->genop; GenOp* keep = NULL; - Uint* pc; + const Uint* pc; static Uint restart_fail[1] = {TOP_fail}; ASSERT(gen_opc[first->op].transform != -1); |