Package io.netty.util

Examples of io.netty.util.IllegalReferenceCountException


    }

    for (;;) {
      int refCnt = this.refCnt;
      if (refCnt == 0) {
        throw new IllegalReferenceCountException(0, increment);
      }
      if (refCnt > Integer.MAX_VALUE - increment) {
        throw new IllegalReferenceCountException(refCnt, increment);
      }
      if (refCntUpdater.compareAndSet(this, refCnt, refCnt + increment)) {
        break;
      }
    }
View Full Code Here


  @Override
  public AlternativeCompositeByteBuf retain() {
    for (;;) {
      int refCnt = this.refCnt;
      if (refCnt == 0) {
        throw new IllegalReferenceCountException(0, 1);
      }
      if (refCnt == Integer.MAX_VALUE) {
        throw new IllegalReferenceCountException(Integer.MAX_VALUE, 1);
      }
      if (refCntUpdater.compareAndSet(this, refCnt, refCnt + 1)) {
        break;
      }
    }
View Full Code Here

TOP

Related Classes of io.netty.util.IllegalReferenceCountException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.