JShell tool: jshell does not print stack trace for OutOfMemoryError

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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)

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

              Created:
              Updated:
              Resolved: