Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-999

Wrong size of MemoryQueue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • bsp core
    • None

    Description

      I found that SuperstepPiEstimator example sometimes gives wrong result when call peer.getNumCurrentMessages(). And that was because of wrong size() of MemoryQueue. When I printed out sizes of queue from the example, sometimes it said,

      bundle size: 20, numOfMsg: 19, deque size: 0
      

      I think deque, bundles and numOfMsg of MemoryQueue should be properly synchronized to get correct result.

      Attachments

        Activity

          People

            Unassigned Unassigned
            seedengine JongYoon Lim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: