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

Improve calculation of refSize in ClassSize.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.5.1.1
    • 10.4.2.1, 10.5.1.1
    • SQL
    • 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-3a-doc_changes.diff
          3 kB
          Kristian Waagan
        2. derby-3731-2a_update_of_policy_template.diff
          0.8 kB
          Kristian Waagan
        3. derby-3731-1c-refsize_from_properties.diff
          6 kB
          Kristian Waagan
        4. derby-3731-1b-refsize_from_properties.stat
          0.2 kB
          Kristian Waagan
        5. derby-3731-1b-refsize_from_properties.diff
          6 kB
          Kristian Waagan
        6. derby-3731-1a-refsize_from_properties.diff
          5 kB
          Kristian Waagan
        7. DERBY-3731_diff.txt
          0.8 kB
          Katherine Marsden

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: