<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 04/30/2013 04:57 PM, Thomas Schatzl
      wrote:<br>
    </div>
    <blockquote cite="mid:1367333840.2722.118.camel@cirrus" type="cite"><!--[if !IE]><DIV style="border-left: 2px solid #009900; border-right: 2px solid #009900;  padding: 0px 15px; margin: 2px 0px;"><![endif]-->
      <pre wrap="">I implemented a nice way to reproduce an OOME in the reference
handler. This involves implementing a custom
java.lang.ref.ReferenceQueue and overriding the enqueue() method, and
doing some allocation that causes an OOME within that method.</pre>
      <!--[if !IE]></DIV><![endif]--></blockquote>
    <br>
    Hi Thomas,<br>
    <br>
    I don't think many people are doing that. Overriding package-private
    system classes/methods and putting custom code in boot classloader
    can break anything. I think that anyone messing with system code
    should catch his own OOMEs.<br>
    <br>
    Regards, Peter<br>
    <br>
  </body>
</html>