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

(bf) Out of direct buffer memory message should include the limits

XMLWordPrintable

    • b10
    • sparc
    • solaris_10

      A DESCRIPTION OF THE REQUEST :
      In the java.nio.Bits class the line:

      throw new OutOfMemoryError("Direct buffer memory");

      is not very useful for debugging problems. It would be significantly more useful if the message included the values of the reservedMemory, size, and maxMemory fields.

      JUSTIFICATION :
      The current message makes it very difficult to debug direct memory problems, and a tiny change would make it significantly more useful.

            bpb Brian Burkhalter
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: