Skip to content

Commit 61de1dd

Browse files
test: update allocation tests
1 parent 8f347ad commit 61de1dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
@test y == 5
3232
# FIXME This should not allocate but I couldn't figure out where these
3333
# allocations come from.
34-
n = (VERSION >= v"1.11" ? 14 : 10) * sizeof(Int)
34+
n = (VERSION >= v"1.11" ? 42 : 30) * sizeof(Int)
3535
alloc_test(() -> MA.broadcast!!(+, a, b), n)
3636
alloc_test(() -> MA.broadcast!!(+, a, c), 0)
3737
end

test/utilities.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
include("dummy.jl")
88

99
# Allocating size for allocating a `BigInt`. Half size on 32-bit.
10-
const BIGINT_ALLOC = @static if VERSION >= v"1.12"
11-
Sys.WORD_SIZE == 64 ? 72 : 36
12-
elseif VERSION >= v"1.11"
10+
const BIGINT_ALLOC = @static if VERSION >= v"1.12-beta1"
1311
Sys.WORD_SIZE == 64 ? 56 : 28
12+
elseif VERSION >= v"1.11"
13+
Sys.WORD_SIZE == 64 ? 48 : 24
1414
else
1515
Sys.WORD_SIZE == 64 ? 48 : 24
1616
end

0 commit comments

Comments
 (0)