Ignore:
Timestamp:
Feb 4, 2011, 7:54:11 PM (15 years ago)
Author:
dmik
Message:

kernel32: Disable logging exceptions in release builds through RAS since this involves .sym file reading and significantly slows down applications that use exception handlers like traps for implementing application logic (e.g. JVM uses it for catching NullPointerExceptions).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r21473 r21568  
    10721072 *****************************************************************************/
    10731073
     1074#ifdef DEBUG
     1075
    10741076static void dprintfException(PEXCEPTIONREPORTRECORD       pERepRec,
    10751077                             PEXCEPTIONREGISTRATIONRECORD pERegRec,
     
    10841086    dprintf(("\n%s", szTrapDump));
    10851087}
     1088
     1089#else // DEBUG
     1090#define dprintfException(a,b,c,d) do {} while (0)
     1091#endif // DEBUG
     1092
    10861093//*****************************************************************************
    10871094static char szExceptionLogFileName[CCHMAXPATH] = "";
     
    14601467                goto continuesearch;
    14611468
    1462 #if defined(DEBUG) || defined(RAS)
     1469#if defined(DEBUG)
    14631470        dprintfException(pERepRec, pERegRec, pCtxRec, p);
    14641471
Note: See TracChangeset for help on using the changeset viewer.