RFR: JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died (original) (raw)
Laurent Bourgès bourges.laurent at gmail.com
Thu May 7 07:06:41 UTC 2015
- Previous message: RFR: JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died
- Next message: RFR: JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Peter,
I looked at Cleaner by curiosity and it seems to be not catching the oome from thunk.run !
If oome1 is thrown by thunk.run at line 150 then it is catched at line 157 but your new try/catch block (oome2) only encapsulates the doPriviledge block.
If this block also throws a new oome2 due to the first oome1 (no memory left), it will work but I would have prefered a more explicit solution and check oome1 first ...
My 2 cents (I am not a reviewer).
Laurent
- Previous message: RFR: JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died
- Next message: RFR: JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]