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

Add an assert that Metaspace::allocate should not be called in VM thread

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 12
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      MetaWord* Metaspace::allocate(ClassLoaderData* loader_data, size_t word_size,
                                    MetaspaceObj::Type type, TRAPS) {
      + assert(!THREAD->is_VM_thread(), "metaspace allocation may cause GC, but GC cannot be started in VM thread")

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iklam Ioi Lam
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: