Skip to content

Commit

Permalink
Allow -Dgc_none to "work" with weak_ref (crystal-lang#9806)
Browse files Browse the repository at this point in the history
Otherwise it is impossible on medium projects with crystal-db to run with the gc_none flag.
  • Loading branch information
Brian J. Cardiff authored Oct 7, 2020
1 parent a3f9182 commit 8c182b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gc/none.cr
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ module GC
def self.add_finalizer(object)
end

def self.register_disappearing_link(pointer : Void**)
end

def self.stats
zero = LibC::ULong.new(0)
Stats.new(zero, zero, zero, zero, zero)
Expand Down

0 comments on commit 8c182b8

Please sign in to comment.