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

Explicitly handle upcall stub allocation failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 22
    • 22
    • core-libs
    • None

    Description

      When allocating UpcallStubs in the code cache in UpcallStub::create, the new expression can potentially return nullptr when the code cache is full.

      For RuntimeStubs, which we use for FFM downcalls, this results in a fatal error. We should also handle this case explicitly in UpcallStub::create

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: