Skip to content

Commit

Permalink
[Truffle] Define {Queue,ConditionVariable}#marshal_dump as MRI.
Browse files Browse the repository at this point in the history
* Allows to keep running MRI Queue tests.
  • Loading branch information
eregon committed May 18, 2015
1 parent c4dae0b commit 199b45e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/ruby/truffle/mri/thread.rb
Expand Up @@ -373,3 +373,12 @@ def num_waiting

# Documentation comments:
# - How do you make RDoc inherit documentation from superclass?

# Truffle: define marshal_dump as MRI tests expect it
[ConditionVariable, Queue].each do |klass|
klass.class_exec do
def marshal_dump
raise TypeError, "can't dump #{self.class}"
end
end
end

0 comments on commit 199b45e

Please sign in to comment.