if (gcInvocationBugReport != null && !sawCurrentTimeMillis) {   boolean outOfMemoryHandler = false; for (int i = 0; i < exceptionTable.length; ++i) { CodeException handler = exceptionTable[i]; if (gcInvocationPC < handler.getHandlerPC() || gcInvocationPC > handler.getHandlerPC() + OOM_CATCH_LEN) continue; int catchTypeIndex = handler.getCatchType(); if (catchTypeIndex > 0) { ConstantPool cp = getThisClass().getConstantPool(); Constant constant = cp.getConstant(catchTypeIndex); if (constant instanceof ConstantClass) { String exClassName = (String) ((ConstantClass) constant).getConstantValue(cp); if (exClassName.equals("java/lang/OutOfMemoryError")) { outOfMemoryHandler = true; break;
if (gcInvocationBugReport != null && !sawCurrentTimeMillis) {   boolean outOfMemoryHandler = false; for (int i = 0; i < exceptionTable.length; ++i) { CodeException handler = exceptionTable[i]; if (gcInvocationPC < handler.getHandlerPC() || gcInvocationPC > handler.getHandlerPC() + OOM_CATCH_LEN) continue; int catchTypeIndex = handler.getCatchType(); if (catchTypeIndex > 0) { ConstantPool cp = getThisClass().getConstantPool(); Constant constant = cp.getConstant(catchTypeIndex); if (constant instanceof ConstantClass) { String exClassName = (String) ((ConstantClass) constant).getConstantValue(cp); if (exClassName.equals("java/lang/OutOfMemoryError")) { outOfMemoryHandler = true; break; }
   private void flush() {	if (gcInvocationBugReport != null && !sawCurrentTimeMillis) {		// Make sure the GC invocation is not in an exception handler		// for OutOfMemoryError.		boolean outOfMemoryHandler = false;		for (int i = 0; i < exceptionTable.length; ++i) {			CodeException handler = exceptionTable[i];			if (gcInvocationPC < handler.getHandlerPC() ||			    gcInvocationPC > handler.getHandlerPC() + OOM_CATCH_LEN)				continue;			int catchTypeIndex = handler.getCatchType();			if (catchTypeIndex > 0) {				ConstantPool cp = getThisClass().getConstantPool();				Constant constant = cp.getConstant(catchTypeIndex);				if (constant instanceof ConstantClass) {					String exClassName = (String) ((ConstantClass) constant).getConstantValue(cp);					if (exClassName.equals("java/lang/OutOfMemoryError")) {						outOfMemoryHandler = true;						break;					}				}			}		}		if (!outOfMemoryHandler)			bugReporter.reportBug(gcInvocationBugReport);	}	sawCurrentTimeMillis = false;	gcInvocationBugReport = null;	alreadyReported.clear();	exceptionTable = null;   }