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

MetaspaceAllocationTest gtest shall lock during space creation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • None
    • b11

      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.

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

              Created:
              Updated:
              Resolved: