diff options
author | John Högberg <[email protected]> | 2019-08-12 15:19:04 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-08-12 15:19:04 +0200 |
commit | 1f6cb54c0ada901fb6dc6efba282c1d499a8e0a8 (patch) | |
tree | 1f9eb1c1b0ebf8ff493e76e527789ba8e154c556 /erts/emulator/test/binary_SUITE.erl | |
parent | 8ecd95336a0c5ffadab5727a7e2bea3d7d03d059 (diff) | |
parent | 65874ca12f22c0135399c9161b3091a39e40e20f (diff) | |
download | otp-1f6cb54c0ada901fb6dc6efba282c1d499a8e0a8.tar.gz otp-1f6cb54c0ada901fb6dc6efba282c1d499a8e0a8.tar.bz2 otp-1f6cb54c0ada901fb6dc6efba282c1d499a8e0a8.zip |
Merge branch 'maint'
* maint:
erts: Create heap binaries in binary:split/2-3
erts: Create heap binaries in binary_part/2-3
erts: Create heap binaries in split_binary/2
erts: Create heap binaries in bs_get_binary2
erts: Remove size check in bs_start_match
erts: Disallow binaries whose size in bits exceeds UWORD_MAX
Diffstat (limited to 'erts/emulator/test/binary_SUITE.erl')
-rw-r--r-- | erts/emulator/test/binary_SUITE.erl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/erts/emulator/test/binary_SUITE.erl b/erts/emulator/test/binary_SUITE.erl index 4fb339926e..fbd1325c3a 100644 --- a/erts/emulator/test/binary_SUITE.erl +++ b/erts/emulator/test/binary_SUITE.erl @@ -1438,7 +1438,8 @@ sleeper() -> gc_test(Config) when is_list(Config) -> %% Note: This test is only relevant for REFC binaries. %% Therefore, we take care that all binaries are REFC binaries. - B = list_to_binary(lists:seq(0, ?heap_binary_size)), + true = 192 > ?heap_binary_size, + B = list_to_binary(lists:seq(1, 192)), Self = self(), F1 = fun() -> gc(), @@ -1447,22 +1448,22 @@ gc_test(Config) when is_list(Config) -> end, F = fun() -> receive go -> ok end, - {binary,[{_,65,1}]} = process_info(self(), binary), + {binary,[{_,192,1}]} = process_info(self(), binary), gc(), - {B1,B2} = my_split_binary(B, 4), + {B1,B2} = my_split_binary(B, 68), gc(), gc(), {binary,L1} = process_info(self(), binary), [Binfo1,Binfo2,Binfo3] = L1, - {_,65,3} = Binfo1 = Binfo2 = Binfo3, - 65 = size(B), - 4 = size(B1), - 61 = size(B2), + {_,192,3} = Binfo1 = Binfo2 = Binfo3, + 192 = size(B), + 68 = size(B1), + 124 = size(B2), F1() end, gc(), gc(), - 65 = size(B), + 192 = size(B), gc_test1(spawn_opt(erlang, apply, [F,[]], [link,{fullsweep_after,0}])). gc_test1(Pid) -> |