diff options
author | Rickard Green <[email protected]> | 2011-12-07 20:06:31 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2011-12-07 20:21:30 +0100 |
commit | d51b42b76fb9d6826ee282352ca878c02a7b459d (patch) | |
tree | 5a1573ca7ade12ef2552a2d9f6684c14a6b66156 /erts/emulator | |
parent | 2bfc6d6791274e8f170e8972c899dcb66e8881c1 (diff) | |
download | otp-d51b42b76fb9d6826ee282352ca878c02a7b459d.tar.gz otp-d51b42b76fb9d6826ee282352ca878c02a7b459d.tar.bz2 otp-d51b42b76fb9d6826ee282352ca878c02a7b459d.zip |
Give elements of lock-free queues some time to be deallocated
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/driver_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl index c07dbc5871..dac2208952 100644 --- a/erts/emulator/test/driver_SUITE.erl +++ b/erts/emulator/test/driver_SUITE.erl @@ -2185,6 +2185,14 @@ wait_deallocations() -> end. driver_alloc_size() -> + case erlang:system_info(smp_support) of + true -> + ok; + false -> + %% driver_alloc also used by elements in lock-free queues, + %% give these some time to be deallocated... + receive after 100 -> ok end + end, wait_deallocations(), case erlang:system_info({allocator_sizes, driver_alloc}) of false -> |