Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1434

ObjectCreator.cs is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.5
    • 1.7.6
    • csharp
    • None
    • Windows

    Description

      Public methods ObjectCreator.GetType() assign to shared fields without locks. This causes unpredictable behaviour in a multi-threaded application. The easiest fix is to simply remove the shared variables as they appear to exist as a potential performance improvement but constructing local variables seems to add no significant overhead.

      Attachments

        1. ObjectCreator.cs.diff
          2 kB
          David Taylor

        Activity

          People

            davidtaylor David Taylor
            davidtaylor David Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: