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

Debugger does not stop inside the low memory notifications code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u112, 11
    • Fix Version/s: 14
    • Component/s: core-svc
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      Using the attached reporducer, run jdb as below to reporduce the issue.

      jdb -Xmx32m MemoryWarningSystem
      Initializing jdb ...
      > stop in MemoryWarningSystem$MyListener.memoryUsageLow
      Deferring breakpoint MemoryWarningSystem$MyListener.memoryUsageLow.
      It will be set after the class is loaded.
      > run
      run MemoryWarningSystem
      Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      >
      VM Started: Memory usage low!!!

      Exception occurred: java.lang.OutOfMemoryError (uncaught)"thread=main", java.lang.Double.valueOf(), line=524 bci=0

      main[1]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dtitov Daniil Titov
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: