diff options
author | Björn Gustavsson <[email protected]> | 2017-08-25 14:40:50 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-08-31 15:45:32 +0200 |
commit | e53b75431e40cec0c26032df1867301e76688009 (patch) | |
tree | 592f6aed85e6dc26531ebf217cd6c69283754e1c /erts/emulator/beam/bif.c | |
parent | 50da607331bc2de990828c3c74bbf4ee7efa27f0 (diff) | |
download | otp-e53b75431e40cec0c26032df1867301e76688009.tar.gz otp-e53b75431e40cec0c26032df1867301e76688009.tar.bz2 otp-e53b75431e40cec0c26032df1867301e76688009.zip |
Eliminate three arguments for erts_hibernate()
We don't need to pass x(0), x(1), and x(2) because they
can already be found in the register array.
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r-- | erts/emulator/beam/bif.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index cbbc2e88a1..ded6c6f1a4 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -1250,7 +1250,11 @@ BIF_RETTYPE hibernate_3(BIF_ALIST_3) */ Eterm reg[3]; - if (erts_hibernate(BIF_P, BIF_ARG_1, BIF_ARG_2, BIF_ARG_3, reg)) { + reg[0] = BIF_ARG_1; + reg[1] = BIF_ARG_2; + reg[2] = BIF_ARG_3; + + if (erts_hibernate(BIF_P, reg)) { /* * If hibernate succeeded, TRAP. The process will be wait in a * hibernated state if its state is inactive (!ERTS_PSFLG_ACTIVE); |