diff options
author | Bruce Yinhe <[email protected]> | 2014-11-10 09:34:28 +0100 |
---|---|---|
committer | Bruce Yinhe <[email protected]> | 2014-11-10 09:34:28 +0100 |
commit | 6af3ab986ac6561db52b79fb7a6f646c4314c4e2 (patch) | |
tree | 1307ce9d65d88c6357c9dea4b568ff75734fd7bb /erts/emulator/test/nif_SUITE.erl | |
parent | 983a39ab079c9f825d31cfe349588a76824d8ef2 (diff) | |
parent | 66a184c576d9262045194e95c752a50c74877802 (diff) | |
download | otp-6af3ab986ac6561db52b79fb7a6f646c4314c4e2.tar.gz otp-6af3ab986ac6561db52b79fb7a6f646c4314c4e2.tar.bz2 otp-6af3ab986ac6561db52b79fb7a6f646c4314c4e2.zip |
Merge branch 'vinoski/dirty-nif-return-gc' into maint
OTP-12300
* vinoski/dirty-nif-return-gc:
Fix gc-related problem with dirty NIFs
Diffstat (limited to 'erts/emulator/test/nif_SUITE.erl')
-rw-r--r-- | erts/emulator/test/nif_SUITE.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl index 14e6585220..4560077a51 100644 --- a/erts/emulator/test/nif_SUITE.erl +++ b/erts/emulator/test/nif_SUITE.erl @@ -1564,6 +1564,8 @@ dirty_nif(Config) when is_list(Config) -> Val2 = "Erlang", Val3 = list_to_binary([Val2, 0]), {Val1, Val2, Val3} = call_dirty_nif(Val1, Val2, Val3), + LargeArray = lists:duplicate(1000, ok), + LargeArray = call_dirty_nif_zero_args(), ok catch error:badarg -> @@ -1740,6 +1742,7 @@ call_nif_schedule(_,_) -> ?nif_stub. call_dirty_nif(_,_,_) -> ?nif_stub. send_from_dirty_nif(_) -> ?nif_stub. call_dirty_nif_exception() -> ?nif_stub. +call_dirty_nif_zero_args() -> ?nif_stub. %% maps is_map_nif(_) -> ?nif_stub. |