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

MetaspaceAllocationTest gtest shall lock during space creation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b11

      Description

      MetaspaceAllocationTest mimicks ClassLoaderMetaspace creation, allocation and destruction to stress metaspace allocation.

      So it runs outside the normal create-allocate-delete cycle in the VM. For instance, there are no associated ClassLoaderData. So, the test needs to mimick the surroundings of the VM.

      This means, when creating ClassLoaderMetaspace objects, the test needs to lock its associated lock. In the VM, this happens in ClassLoaderData::metaspace_non_null(), and there the associated lock is pulled before allocation too.

        Attachments

          Activity

            People

            Assignee:
            stuefe Thomas Stuefe
            Reporter:
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: