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]
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]
- csr for
-
JDK-8231593 Add a command line option to control notification mechanism.
-
- Closed
-
- relates to
-
JDK-8329113 Deprecate -XX:+UseNotificationThread
-
- Resolved
-
-
JDK-8231597 NPE is thrown when JDB tries to stop in low memory notifications code
-
- Open
-