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

JShell tool: jshell does not print stack trace for OutOfMemoryError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • tools

      JShell does not print stack trace for OutOfMemoryError. It looks like there is a race between writers.

      See ErrorTranslationTest#stressTest

      -> /open OOME.repl
      | State engine terminated. See /history

      -> /open OOME.repl
      Exception in t| State engine terminated. See /history
      hread "main"
      ->

      -> /open OOME.repl
      | State engine terminated. See /history

      -> /open OOME.repl
      | State engine terminated. See /history

      -> /open OOME.repl
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Me| State engine terminated. See /history
      thod.java:502)

            rfield Robert Field (Inactive)
            aeremeev Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: