Print this page
4719 Common patchset for jdk1.7 support preparation

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/LocalConsumer.java
          +++ new/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/LocalConsumer.java
↓ open down ↓ 629 lines elided ↑ open up ↑
 630  630                  exceptionHandler.handleException(e);
 631  631              } else {
 632  632                  e.printStackTrace();
 633  633              }
 634  634          } finally {
 635  635              synchronized (stopLock) {
 636  636                  // Notify listeners while holding stopLock to guarantee
 637  637                  // that listeners finish executing consumerStopped()
 638  638                  // before the stop() method returns.
 639  639                  synchronized (this) {
 640      -                    if (state == State.STOPPED || state == state.CLOSED) {
      640 +                    if (state == State.STOPPED || state == State.CLOSED) {
 641  641                          //
 642  642                          // This consumer was stopped just after calling
 643  643                          // go() but before starting (the premature return
 644  644                          // case at the top of this work() method). It is
 645  645                          // possible to call close() on a consumer that has
 646  646                          // been stopped before starting. In that case the
 647  647                          // premature return above still takes us here in the
 648  648                          // finally clause, and we must not revert the CLOSED
 649  649                          // state to STOPPED.
 650  650                          //
↓ open down ↓ 794 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX