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

AttachCurrentThread change thread priority

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0, 1.4.2
    • hotspot
    • x86
    • windows_nt, windows_xp

      Name: ap32198 Date: 02/11/99

      =20
      HANDLE th =3D _beginthread(myThread, ...)
      SetThreadPriority(th, THREAD_PRIORITY_TIME_CRITICAL)
      ...

      myThread() {
          ...
          if(jni_vm && (*jni_vm)->GetEnv(jni_vm, (void **)&env, JNI_VERSION_1_2) =
      =3D=3D JNI_EDETACHED) {
              JavaVMAttachArgs args =3D { JNI_VERSION_1_2, "etel native thread", =
      NULL };
              // we have now thread priority 15
      =09(*jni_vm)->AttachCurrentThread(jni_vm, (void **)&env, &args);
              // we have now thread priority 9 ???
          }
          ...
      }
      (Review ID: 38075)
      ======================================================================
      This bug has been closed as "Will Not Fix" due to a strategic
      redirection of resources to Java 1.4. If bug needs to be fixed
      in an old release then an escalation will need to be filed.
      Bugs which are escalations from external customers will continue to be
      addressed by the support team. Internal customers may escalate
      bugs by filing them as priority 1 (P1) bugs.


      ###@###.### 2001-11-01

            hhuangsunw Hui Huang (Inactive)
            apalanissunw Anand Palaniswamy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: