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

(porting) differences between Solaris native threads & POSIX thread

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      For the JDK 116 release on the DIGITAL UNIX platform running on DIGITAL's
      Alpha hardware, DIGITAL has changed, for the reasons listed below, the
      following JDK 116 source files in the shared part of the JDK.

      Compatibility of the changes with Sun's JDK was assured by visual inspection of
      the changes and by running the appropriate JCK test suites. No changes were
      made to modify any APIs nor to modify the virtual machine instruction set.

      Modifications needed because of differences between Solaris native threads
      and POSIX threads. The following files were modified because of differences
      in the Alpha hardware on which DIGITAL UNIX runs:
              src/share/java/runtime/finalize.c
              src/share/java/runtime/threadruntime.c
              src/share/java/runtime/threads.c

      Diffs:
      ======
      diff -r digital_src/src/share/java/runtime/finalize.c javasoft_src/src/share/java/runtime/finalize.c
      1d0
      < /* Modifications Copyright 1997 Digital Equipment Corporation */
      259d257
      < pthread_lock_global_np(); /*** HDS synchronize with parent thread ***/
      261d258
      < pthread_unlock_global_np(); /*** HDS synchronize with parent thread ***/
      333,334d329
      < /*** HDS store priority where threadCreate can find it ***/
      < THREAD(tid)->priority = MinimumPriority;
      341c336
      < /*** HDS moved THREAD(tid)->priority = MinimumPriority; ***/
      ---
      > THREAD(tid)->priority = MinimumPriority;
      343d337
      < /*** HDS - use attributes to set thread priority, not the following:
      346d339
      < ***/
      369,370c362
      < /*** OSF/cds - format was 0x%lx ***/
      < jio_fprintf(stderr, " Has finalizer: %s (handle 0x%p)\n",
      ---
      > jio_fprintf(stderr, " Has finalizer: %s (handle 0x%lx)\n",
      388,389c380
      < /*** OSF/cds - format was 0x%lx ***/
      < jio_fprintf(stderr, " To be finalized: %s (handle 0x%p)\n",
      ---
      > jio_fprintf(stderr, " To be finalized: %s (handle 0x%lx)\n",

      diff -r digital_src/src/share/java/runtime/threadruntime.c javasoft_src/src/share/java/runtime/threadruntime.c
      1d0
      < /* Modifications Copyright 1997 Digital Equipment Corporation */
      196,197d194
      < /*** OSF/cds - not needed (and gives compile errors if not commented out) ***/
      < /*********
      209c206
      < ********/
      ---
      >

      diff -r digital_src/src/share/java/runtime/threads.c javasoft_src/src/share/java/runtime/threads.c
      1d0
      < /* Modifications Copyright 1997 Digital Equipment Corporation */
      118d116
      < pthread_lock_global_np(); /*** HDS synchronize with child thread ***/
      131d128
      < pthread_unlock_global_np(); /*** HDS release child thread sync lock ***/
      136,137d132
      <
      < pthread_unlock_global_np(); /*** HDS synchronize with child thread ***/
      374,375c369
      < /*** cds - was long ***/
      < int
      ---
      > long

        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: