Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-937

Possible memory leak or risk thereof in Fakes objects

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • s12
    • Middle "End"
    • None

      We have these Fake DFDL schema objects (defined in dsom.Types.scala), and they are risky. There is a fake SchemaSet for example.

      Now the way OOLAG works is that it accumulates diagnostic objects on the "root" component of the schema components. That root could be this Fake SchemaSet for example, and then error messages would accumulate there, and (1) be lost (2) never be reclaimed. The Fakes is a scala object, so a global mutable variable.

      Change so that using say, Fakes.fakeSD, creates a new SchemaDocument object each time. I.e., make it a factory for new fake schema components, not a singleton set of fixed shared ones.

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5 minutes
                  5m