Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GC.enable_logging(true) at start of test suite #1432

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@ using AbstractAlgebra

using Test


if VERSION >= v"1.8.0"
GC.enable_logging(true)

# print gc settings
jlmax = @ccall jl_gc_get_max_memory()::UInt64
totalmem = @ccall uv_get_total_memory()::UInt64
constrmem = @ccall uv_get_constrained_memory()::UInt64
println("Memory: max: ", Base.format_bytes(jlmax))
println(" total: ", Base.format_bytes(totalmem))
println(" constr: ", Base.format_bytes(constrmem))

#= FIXME/TODO: in the future we may wish to experiment with limiting the GC heap here
if VERSION >= v"1.10.0-"
# adjust heap size hint
memenv = parse(Int, get(ENV, "OSCARCI_MAX_MEM_GB", "5")) * 2^30
println("Setting heap size hint to ", Base.format_bytes(memenv))
@ccall jl_gc_set_max_memory(memenv::UInt64)::Cvoid
end
=#
end

include("Aqua.jl")
include("rand.jl")
include("AbstractAlgebra-test.jl")
Loading