Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-840

Logic Error in ByteArrayPool implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5
    • Core
    • None

    Description

      The is some logical error in ByteArrayPool#create(int size).

      The two lines below should be changed to
      if (!freeBuffers.isEmpty()) {
      DirectBufferByteArray ba = freeBuffers.get(bits).pop();

      if (!freeBuffers.get(bits).isEmpty()) {
      DirectBufferByteArray ba = freeBuffers.get(bits).pop();

      Attachments

        Activity

          People

            Unassigned Unassigned
            wfxiang08 Fei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.1h
                0.1h
                Remaining:
                Remaining Estimate - 0.1h
                0.1h
                Logged:
                Time Spent - Not Specified
                Not Specified