MetaspaceAllocationTest gtest shall lock during space creation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: