I'd rather see the functionality in irtest.bat in IronRuby's run.bat. That way 
it runs with run 0. 

The specs will probably need to be cleaned up to meet RubySpec style 
guidelines, and to get Brian to approve them. Go ahead and commit them, and I 
can clean them up, or we can work on them together later.

For future reference, style guidelines are here: 
http://rubyspec.org/wiki/rubyspec/Style_Guide

JD

-----Original Message-----
From: Shri Borde 
Sent: Monday, January 05, 2009 10:18 AM
To: IronRuby External Code Reviewers; DLR Code Reviews
Cc: ironruby-core@rubyforge.org
Subject: Code Review: Thread.critical


  tfpt review "/shelveset:critical;REDMOND\sborde"

Microsoft.Scripting.dll: 

  Fix to interpreter to get better stack trace even when call-site caching 
kicks in. The try-catch needs to be added to all code that can throw an 
exception in the interpreter (or preferably in one function like 
Interpreter.Interpret), but I have not done that here.

IronRuby:

  Implements Thread.critical= by using Monitor.Enter/Exit. This will work for 
90% or more of scenarios IMO. MRI does not schedule other threads while 
Thread.critical is true (while IronRuby will), but this is more an 
implementation detail that falls out with the green threads scheduler, than 
something that should be by spec. In fact, other threads do get scheduled 
anyway if the critical thread does Thread.pass etc (added tests to show this 
behavior if you want to play with it).
  Added tests
  Added irtests.bat to run all IronRuby tests with a single command, in four 
processes


_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to