Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-757

ResizableDoubleArray is not thread-safe yet has some synch. methods

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None

    Description

      ResizableDoubleArray has several synchronised methods, but is not thread-safe, because class variables are not always accessed using the lock.

      Is the class supposed to be thread-safe?

      If so, all accesses (read and write) need to be synch.

      If not, the synch. qualifiers could be dropped.

      In any case, the protected fields need to be made private.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment