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

Refs are not cleared when they should be

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • hs20
    • hs19
    • hotspot
    • None
    • gc
    • generic
    • generic

      The program in the comments section, courtesy of ###@###.###,
      throws an OOM when it should not. The bug seems to have first appeared
      in 6u18 (hs16), and is present in all subsequent releases. As far as
      I can tell the bug is not present in releases prior to and including
      6u17 (hs14.3).
      I am adding another program, courtesy of ###@###.### / ###@###.###,
      where WeakRefs are not cleared when their referents are not reachable. The program is in the
      comments section. In this case, reference processing reports that the referents are unreachable
      and that it has cleared the referents, yet the subsequent get() returns a non-NULL reference.

            ysr Y. Ramakrishna
            ysr Y. Ramakrishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: