Skip to content

Commit

Permalink
Add test for GC chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed May 1, 2023
1 parent 4dde90e commit 7956bf6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/gc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ end
run_gctest("gc/binarytree.jl")
run_gctest("gc/linkedlist.jl")
run_gctest("gc/objarray.jl")
run_gctest("gc/chunks.jl")
end
14 changes: 14 additions & 0 deletions test/gc/chunks.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

# MWE from https://github.com/JuliaLang/julia/issues/49501
N = 1_000_000 # or larger
T = BigFloat

struct Q{T}
a::T
b::T
end
let
A = [Q(rand(T), rand(T)) for _ in 1:N]
end
GC.gc()

0 comments on commit 7956bf6

Please sign in to comment.