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

no suitable conversion function from "pthread_t" to "int" exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0
    • hotspot
    • beta
    • generic
    • generic

        Problem:
                      this->thread_id = t->osthread()->thread_id();
                                               
        "/h/emile/hotspot/hotspot13-compiler2rc-src-solsparc/src/share/vm/utilities/
        events.cpp",
                line 139: error(494):
                no suitable conversion function from "pthread_t" to "int" exists
            Analysis:
                The statement assigns a thread_t to an int.
                "this" is an Event (events.cpp #139 in Event::fill)
                "thread_id" is an int (events.cpp #27 in class Event)
                "t" is a Thread* (events.cpp #134 in Event::fill)
                "osthread()" is an OSThread* (thread.hpp #154 and #210 in class
        Thread)
                "thread_id()" is a thread_t (osThread_solaris.hpp #23 and #19 in
        class OSThread)
            Remark:
                thread_t is a platform-dependent type. On Tandem, it is not
        assignment
                compatible to int.

        Tandem would like to see this bug fixed in jdk1.3.1.

              sgoldman Steve Goldman (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: