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

Upcall stubs should be smaller

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • hotspot
    • b21

    Description

      Upcall stubs currently use resolve_jobject which may generate a lot of code depending on the selected GC.
      We can use resolve_global_jobject (introduced by JDK-8299089) because we know that the handle is created by JNIHandles::make_global in UL_MakeUpcallStub. That creates much shorter code.
      An alternative solution was proposed during review of JDK-8303040: Move the jobject handling into UpcallLinker::on_entry which is called anyway. This helps for Shenandoah and ZGC which emit more code in resolve_global_jobject.

      Attachments

        Issue Links

          Activity

            People

              mdoerr Martin Doerr
              mdoerr Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: