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

NPG: Bad assert in JVM_ENTRY(jobject, jmm_GetMemoryUsage(JNIEnv* env, jboolean heap))

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs25
    • hs25
    • hotspot
    • gc

      The function JVM_ENTRY(jobject, jmm_GetMemoryUsage(JNIEnv* env, jboolean heap)) asserts the following for the memory pools:

        // In our current implementation, we make sure that all non-heap
        // pools have defined init and max sizes. Heap pools do not matter,
        // as we never use total_init and total_max for them.
        assert(heap || !has_undefined_init_size, "Undefined init size");
        assert(heap || !has_undefined_max_size, "Undefined max size");

      This is no longer true when the perm gen was removed and the metaspace was added.

      These asserts should be removed.

            ehelin Erik Helin
            ehelin Erik Helin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: