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

(porting) shared code mods for OpenVMS platform in file thread.c

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      For the JDK 116 release on the OpenVMS platform running on DIGITAL's
      hardware, DIGITAL has changed, the following JDK 116 source file
      in the shared part of the JDK.

      - The following file was modified because of differences in the Alpha
      hardware on which OpenVMS runs:

      diff -c -r JDK116/src/share/java/lang/thread.c
      sun_JDK116/src/share/java/lang/thread.c
      *** JDK116/src/share/java/lang/thread.c Thu May 21 02:03:50 1998
      --- sun_JDK116/src/share/java/lang/thread.c Thu Apr 16 13:49:48 1998
      ***************
      *** 52,67 ****
            }
        #endif

      - /*** HDS make sure that the parent is done initializing before the child
      - *** tries dereferencing 'p' in macro threadInit ***/
      - pthread_lock_global_np();
      -
      - /*** HDS release lock used to synchronize with the parent thread ***/
      - pthread_unlock_global_np();
      -
            InitializeExecEnv(&ee, (JHandle *) p);
            threadInit(p, (stackp_t) &p);
      -
            if (unhand(p)->stillborn) {
              /* This thread was asked to exit before it got to run */
              threadExit();
      --- 52,59 ----
      ***************
      *** 118,128 ****
              if (threadCreate(p, flag, ProcStackSize, (void *(*)(void *)) ThreadRT0))
      {
                  SignalError(0, JAVAPKG "OutOfMemoryError", 0);
              } else {
      ! /*** HDS use attributes to set priority, not the following code:
      ! } else {
                  threadSetPriority(p, tid->priority);
                  threadResume(p);
      - ***/
              }
            }
              
      --- 110,118 ----
              if (threadCreate(p, flag, ProcStackSize, (void *(*)(void *)) ThreadRT0))
      {
                  SignalError(0, JAVAPKG "OutOfMemoryError", 0);
              } else {
      ! /* Set a default priority: see comments on {s,g}etPriority() */
                  threadSetPriority(p, tid->priority);
                  threadResume(p);
              }
            }

        Attachments

          Activity

            People

            Assignee:
            apalanissunw Anand Palaniswamy (Inactive)
            Reporter:
            jbenoit Jonathan Benoit (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: