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

JNI Weak Ref handling needs improvement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.3.1_04
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      04
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description


        See bug 4462056 regarding JNI Specification problems with weak refs.

        It is currently possible to pass a deleted weak reference as an
        argument, resulting in the access of a private object internal to
        hotspot (call a sentinel). A more appropriate action is desirable,
        including a fatal error.

        Passing weak refs to most JNI functions should be illegal, and in any
        case, is a bad idea. See comments.


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                foliversunw Fred Oliver (Inactive)
                Reporter:
                foliversunw Fred Oliver (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: