JNI DetachCurrentThread decrements the UserThreadCount under green threads

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.2.0
    • Component/s: hotspot
    • None
    • generic
    • generic

      JNI DetachCurrentThread decrements the UserThreadCount while
      JNI AttachCurrentThread doesn't - under green threads. On
      native & win32 AttachCurrentThread increments UserThreadCount.

      One effect of this is that java_main.c which does the following JNI
      calls in sequence: DetachCurrentThread, AttachCurrentThread, DestroyJavaVM -
      exits prematurely because the UserThreadCount is incorrectly one. This, at
      a minimum, causes the debugger to exit prematurely.

            Assignee:
            Tom Rodriguez
            Reporter:
            Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: