Skip to content

Commit

Permalink
revert breaking change to GC.gc() (#34336)
Browse files Browse the repository at this point in the history
Removes the breaking part of b0ed147
from PR #34303

(cherry picked from commit 15d693b)
  • Loading branch information
vtjnash authored and KristofferC committed Jan 21, 2020
1 parent 1c977b0 commit 7ef6328
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/gcutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ module GC
GC.gc()
GC.gc(full::Bool)
Perform garbage collection. The argument `full` determines the kind of collection: A full
collection scans all objects, while an incremental collection only scans so-called young
objects and is much quicker. If called without an argument, heuristics are used to determine
which type of collection is needed.
Perform garbage collection. The argument `full` determines the kind of
collection: A full collection (default) sweeps all objects, which makes the
next GC scan much slower, while an incremental collection may only sweep
so-called young objects.
!!! warning
Excessive use will likely lead to poor performance.
"""
gc() = ccall(:jl_gc_collect, Cvoid, (Cint,), 0)
gc() = ccall(:jl_gc_collect, Cvoid, (Cint,), 1)
gc(full::Bool) = ccall(:jl_gc_collect, Cvoid, (Cint,), full ? 1 : 2)

"""
Expand Down

0 comments on commit 7ef6328

Please sign in to comment.