aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-10-09 14:48:21 +0200
committerLukas Larsson <[email protected]>2012-10-09 14:48:21 +0200
commitf667680342e7fba3b5c8316f73a872147d502e01 (patch)
tree99f9f56002080a032bd0f5c27b6953cd1bf8495d /erts/emulator
parentab151d0adebc31fbb74adffa69e4524f69dc8b62 (diff)
parentdf013a70b72f41a1b83e42d6d08db362ffd79067 (diff)
downloadotp-f667680342e7fba3b5c8316f73a872147d502e01.tar.gz
otp-f667680342e7fba3b5c8316f73a872147d502e01.tar.bz2
otp-f667680342e7fba3b5c8316f73a872147d502e01.zip
Merge branch 'lukas/erts/bucket_mask_fix/OTP-10374' into maint
* lukas/erts/bucket_mask_fix/OTP-10374: Add comment about eproviderfailedinit error Increase sbct for win64 as block alignment is 16
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_posix_str.c1
-rw-r--r--erts/emulator/test/alloc_SUITE_data/bucket_mask.c10
2 files changed, 10 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_posix_str.c b/erts/emulator/beam/erl_posix_str.c
index 02db10905b..deb7e3e173 100644
--- a/erts/emulator/beam/erl_posix_str.c
+++ b/erts/emulator/beam/erl_posix_str.c
@@ -619,6 +619,7 @@ erl_errno_id(error)
case WSAEINVALIDPROVIDER: return "einvalidprovider";
#endif
#ifdef WSAEPROVIDERFAILEDINIT
+ /* You could get this if SYSTEMROOT env variable is set incorrectly */
case WSAEPROVIDERFAILEDINIT: return "eproviderfailedinit";
#endif
#ifdef WSASYSCALLFAILURE
diff --git a/erts/emulator/test/alloc_SUITE_data/bucket_mask.c b/erts/emulator/test/alloc_SUITE_data/bucket_mask.c
index 13af7d861a..b214f87e4a 100644
--- a/erts/emulator/test/alloc_SUITE_data/bucket_mask.c
+++ b/erts/emulator/test/alloc_SUITE_data/bucket_mask.c
@@ -16,11 +16,19 @@
* $Id$
*/
+#include "erl_int_sizes_config.h"
+
#include "testcase_driver.h"
#include "allocator_test.h"
#include <stdio.h>
-#define SBCT (512*1024)
+#ifdef __WIN32__ && SIZEOF_VOID_P == 8
+/* Use larger threashold for win64 as block alignment
+ is 16 bytes and not 8 */
+#define SBCT ((1024*1024))
+#else
+#define SBCT ((512*1024))
+#endif
char *
testcase_name(void)