Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3246

Recyclable Cocoon components should clear local variables

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 6.0
    • Fix Version/s: 5.6, 6.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      All XMLUI components that are marked as 'recyclable' need to implement the recycle method:

      This method should be implemented to remove all costly resources in object. These resources can be object references, database connections, threads, etc. What is categorised as "costly" resources is determined on a case by case analysis.

      Many of our components don't do this, and/or don't call the superclass method and thus only clear resources defined in the subclass but not those in the superclass. This results in unnecessarily high memory usage / garbage collection effort.

        Attachments

          Activity

            People

            • Assignee:
              hardyoyo Hardy Pottinger
              Reporter:
              schweer Andrea Schweer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: