diff options
author | Sverker Eriksson <[email protected]> | 2015-08-31 15:39:02 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-08-31 15:44:04 +0200 |
commit | bf9b55d9341ca6e1bbb8c1d2c2763b17538426b6 (patch) | |
tree | 6f71224b73d11f1d7f2fb827ba82689fd60ead5a /erts/emulator/beam | |
parent | 46332e63065f0b76e0373f77b862590760b23f85 (diff) | |
parent | 90e0bad70affc23228e3d11d1131aba615895dd5 (diff) | |
download | otp-bf9b55d9341ca6e1bbb8c1d2c2763b17538426b6.tar.gz otp-bf9b55d9341ca6e1bbb8c1d2c2763b17538426b6.tar.bz2 otp-bf9b55d9341ca6e1bbb8c1d2c2763b17538426b6.zip |
Merge branch 'sverk/hipe-maps-merge-wrapper' into maint
* sverk/hipe-maps-merge-wrapper:
erts: Fix hipe bug for maps:merge/2
erts: Beautify hipe wrapper macro
OTP-12965
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_map.c b/erts/emulator/beam/erl_map.c index a91e36e3c5..ff2a355309 100644 --- a/erts/emulator/beam/erl_map.c +++ b/erts/emulator/beam/erl_map.c @@ -32,7 +32,9 @@ #include "global.h" #include "erl_process.h" #include "error.h" +#define ERL_WANT_HIPE_BIF_WRAPPER__ #include "bif.h" +#undef ERL_WANT_HIPE_BIF_WRAPPER__ #include "erl_binary.h" #include "erl_map.h" @@ -952,8 +954,11 @@ BIF_RETTYPE maps_keys_1(BIF_ALIST_1) { BIF_P->fvalue = BIF_ARG_1; BIF_ERROR(BIF_P, BADMAP); } + /* maps:merge/2 */ +HIPE_WRAPPER_BIF_DISABLE_GC(maps_merge, 2) + BIF_RETTYPE maps_merge_2(BIF_ALIST_2) { if (is_flatmap(BIF_ARG_1)) { if (is_flatmap(BIF_ARG_2)) { |