Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1252205

GC is more conservative than it needs to be

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified

      The garbage collector scans the Java frame's local variables and operand stack
      conservatively, which is unnecessary. We know that only handles occur in those
      areas, never direct object pointers, so something that appears to be a direct
      object pointer must really be a numeric quantity. Similarly, when scanning
      the constant pool we scan conservatively, when we should be able to scan
      exactly -- the only thing we need to mark there are String objects, and there
      we always have handles, never direct object pointers.

      The result can be unpredictable and unnecessary garbage being kept or
      fragmentation. I've written the code to make these scans nonconservative,
      and just need to stare at it some more.

            tlindholsunw Timothy Lindholm (Inactive)
            tlindholsunw Timothy Lindholm (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: