Uploaded image for project: 'Apache Lucy-Clownfish'
  1. Apache Lucy-Clownfish
  2. CLOWNFISH-78

Bootstrap process isn't thread-safe

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      The Clownfish bootstrap process isn't thread-safe. For a lock-free solution:

      • Class_bootstrap must set the global class pointer at the very end, possibly destroying the class if another thread set the pointer before.
      • The runtime inheritance cycle detection must be reworked, or simply left out. It only protects from a really contrived scenario.
      • Probably other things I missed.

      We could also consider a global lock using a locking facility provided by the host language.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            nwellnhof Nikolas Wellnhofer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment