Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-4729

[drlvm][jni] JNI transition should inline hythread_suspend_enable() and hythread_suspend_disable()

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • DRLVM
    • None
    • Patch Available
    • Moderate

    Description

      JNI calls a pair of hythread_suspend_enable() and hythread_suspend_disable() every time the transition occurs. That lead to serious overhead due to calls.
      The idea is to inline these methods by implementing two mnemonics in LIL - hse() and hsd(), then LIL codegenerator will generate the code for them. More solid solution should inline method calls in LIL, but it's too complex to achieve.

      Attachments

        1. jni-hythr.patch
          8 kB
          Aleksey Shipilev
        2. jni-hythr-2.patch
          6 kB
          Aleksey Shipilev

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aleksey.shipilev Aleksey Shipilev

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment