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

(jni) Calling from C to Java is very slow.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      generic
    • OS:
      generic, solaris_2.5.1

      Description

      Calling from C to Java is very slow. In the worst case, when no
      method block is provided, the calling sequence can (I think) acquire and
      release as many as 8+ locks, even if the called method is not even
      synchronized. This should also have an impact on salability.

      ----------------------------------------------------

      There seems to be some question how often this acutally happens, so I asked around and found that JavaMedia does this a lot. Here is one comment:

      ----------
      java sound uses callbacks from native code to java pretty
      aggressively. it calls back as often as once ever 11
      milliseconds for each audio stream being rendered. (we
      also have a few much less frequently made callbacks to
      signal that audio playback has started or finished, etc.)
      since jmf uses java sound for its audio support, this will
      affect the performance of jmf as well as java sound on its
      own.
      --------------

      We also found that non-sound related parts of JMF do this often.
      steve.wilson@eng 1999-01-08

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bobv Bob Vandette (Inactive)
              Reporter:
              jkoenigsunw Janet Koenig (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: