Skip to content

Commit

Permalink
Adding GC.gc_active_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
udesou committed Jan 24, 2025
1 parent ce80502 commit 7050cfa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/checked.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,12 @@ end
@test checked_pow(BigInt(2), 2) == BigInt(4)
@test checked_pow(BigInt(2), 100) == BigInt(1267650600228229401496703205376)

# Perf test: Make sure BigInts allocs don't scale with the power:
@test @allocations(checked_pow(BigInt(2), 2)) @allocations(checked_pow(BigInt(2), 10000)) rtol=0.9
# FIXME: Issue #57103: the following test may fail because
# allocation may not be logged via MMTk's fastpath allocation
@static if Base.USING_STOCK_GC
# Perf test: Make sure BigInts allocs don't scale with the power:
@test @allocations(checked_pow(BigInt(2), 2)) ≈ @allocations(checked_pow(BigInt(2), 10000)) rtol=0.9
end
end

@testset "Additional tests" begin
Expand Down

0 comments on commit 7050cfa

Please sign in to comment.