ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/SingleProducerMultipleConsumerLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/SingleProducerMultipleConsumerLoops.java (file contents):
Revision 1.11 by jsr166, Sat Dec 31 19:40:49 2016 UTC vs.
Revision 1.12 by jsr166, Sat Dec 31 21:34:47 2016 UTC

# Line 216 | Line 216 | public class SingleProducerMultipleConsu
216      static final class LTQasSQ<T> extends LinkedTransferQueue<T> {
217          LTQasSQ() { super(); }
218          public void put(T x) {
219 <            try { super.transfer(x);
220 <            } catch (InterruptedException ex) { throw new Error(); }
219 >            try { super.transfer(x); }
220 >            catch (InterruptedException ex) { throw new Error(ex); }
221          }
222      }
223  
# Line 228 | Line 228 | public class SingleProducerMultipleConsu
228              if ((++calls & 1) == 0)
229                  super.put(x);
230              else {
231 <                try { super.transfer(x);
232 <                } catch (InterruptedException ex) {
233 <                    throw new Error();
234 <                }
231 >                try { super.transfer(x); }
232 >                catch (InterruptedException ex) { throw new Error(ex); }
233              }
234          }
235      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines