JDK-8060187 : Tests for correct OOME catching/rethrowing should be developed.
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 1.5.1,4_fcs,6.0,11
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: x86
  • Submitted: 2010-12-03
  • Updated: 2020-01-27
  • Resolved: 2020-01-27
Related Reports
Relates :  
Description
Tests for situatiion like in 6362318 should be developed.

VM should be able to correctly work when OOME happens even then thre is not enogh memory.

It is a common situation when in 
try {} catch (Throwable t) {...}
block inside catch contains addition memory allocation. In this cases VM could throw another OOME but not just exit.

Comments
It is hard to develop stable and useful test for OOME throwing/catching.
27-01-2020

One test for OOM("Heap") is enough.
10-11-2014

Does we need more scenarios for OOM in OOM handler for metaspace OOM and for Unsage::allocateMemory OOM?
21-10-2014