Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3731

Improve calculation of refSize in ClassSize.java

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.4.2.1, 10.5.1.1
    • Component/s: SQL
    • Labels:
      None

      Description

      java/engine/org/apache/derby/iapi/services/cache/ClassSize.java has a static code block which calculates the size of a reference for the architecture. This code could be improved by adding garbage collection before measuring memory, to give a consistent reading. Also there have been suggestions that we use os.arch or sun.arch.data.model to make the measurement more reliable, especially on 64bit machines.

        Attachments

        1. DERBY-3731_diff.txt
          0.8 kB
          Katherine Marsden
        2. derby-3731-1a-refsize_from_properties.diff
          5 kB
          Kristian Waagan
        3. derby-3731-1b-refsize_from_properties.diff
          6 kB
          Kristian Waagan
        4. derby-3731-1b-refsize_from_properties.stat
          0.2 kB
          Kristian Waagan
        5. derby-3731-1c-refsize_from_properties.diff
          6 kB
          Kristian Waagan
        6. derby-3731-2a_update_of_policy_template.diff
          0.8 kB
          Kristian Waagan
        7. derby-3731-3a-doc_changes.diff
          3 kB
          Kristian Waagan

          Issue Links

            Activity

              People

              • Assignee:
                kristwaa Kristian Waagan
                Reporter:
                kmarsden Katherine Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: