jdk/src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java
changeset 40734 48879ea67e2a
parent 39723 9aa34e4a0469
child 40817 4f5fb115676d
equal deleted inserted replaced
40733:8d1263354d62 40734:48879ea67e2a
  1201                         e.execute(new ConsumerTask<T>(this));
  1201                         e.execute(new ConsumerTask<T>(this));
  1202                         break;
  1202                         break;
  1203                     } catch (RuntimeException | Error ex) { // back out
  1203                     } catch (RuntimeException | Error ex) { // back out
  1204                         do {} while (((c = ctl) & DISABLED) == 0 &&
  1204                         do {} while (((c = ctl) & DISABLED) == 0 &&
  1205                                      (c & ACTIVE) != 0 &&
  1205                                      (c & ACTIVE) != 0 &&
  1206                                      !CTL.weakCompareAndSetVolatile
  1206                                      !CTL.weakCompareAndSet
  1207                                      (this, c, c & ~ACTIVE));
  1207                                      (this, c, c & ~ACTIVE));
  1208                         throw ex;
  1208                         throw ex;
  1209                     }
  1209                     }
  1210                 }
  1210                 }
  1211             }
  1211             }