Skip to content

Commit

Permalink
Support dumping Rubinius::AtomicReference
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Apr 29, 2012
1 parent cc1f4fd commit 1cc7702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/bootstrap/atomic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ def initialize(val=nil)
set(val) if val
end

def marshal_dump
get
end

def get
Rubinius.primitive :atomic_get
raise PrimitiveFailure, "get failed"
Expand Down

0 comments on commit 1cc7702

Please sign in to comment.