Permalink
Browse files

Remove unused prime_lock arg from Thread#setup

Remove unused argument called prime_lock from Thread#setup.

The following commit removed code, which was using prime_lock in Thread#setup.
But it forgot to change the method's signature to remove prime_lock itself.

  6097398 Use Rubinius.lock instead of Channel
  • Loading branch information...
1 parent 580680b commit 8e8e6f2f1c3190061c55f11930df04d68e473423 @ryoqun ryoqun committed Nov 1, 2012
Showing with 6 additions and 9 deletions.
  1. +1 −2 kernel/bootstrap/thread.rb
  2. +2 −3 kernel/bootstrap/thread18.rb
  3. +2 −3 kernel/bootstrap/thread19.rb
  4. +1 −1 kernel/delta/thread.rb
@@ -111,8 +111,7 @@ def self.new(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
@@ -13,8 +13,7 @@ def self.start(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
@@ -99,7 +98,7 @@ def __run__()
end
end
- def setup(prime_lock)
+ def setup
@group = nil
@alive = true
@result = false
@@ -10,8 +10,7 @@ def self.start(*args)
run obj
dup
- push_false
- send :setup, 1, true
+ send :setup, 0, true
pop
run args
@@ -87,7 +86,7 @@ def __run__()
end
end
- def setup(prime_lock)
+ def setup
@group = nil
@alive = true
@result = false
View
@@ -1,7 +1,7 @@
# -*- encoding: us-ascii -*-
class Thread
- Thread.current.setup(true)
+ Thread.current.setup
Thread.initialize_main_thread(Thread.current)
dg = ThreadGroup.new
Default = dg

0 comments on commit 8e8e6f2

Please sign in to comment.