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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 12
    • hotspot
    • None

      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")

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

              Created:
              Updated:
              Resolved: