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

JVM_SocketAvailable uses long*. Should be 32bit pointer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • None
    • sparc
    • solaris_8

      Not sure if this is really a bug, but I just noticed it and it
      seems not right.

      According to the STREAMS programming guide the FIONREAD ioctl
      should be given the address of a 32 bit quantity regardless
      of the kernel mode.
      The call in hpi::available() uses a long *
      which would compile to a 64 bit pointer on
      a 64 bit system.

            phh Paul Hohensee
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: