--- old/src/macosx/native/sun/osxapp/AWT_debug.h 2014-06-16 15:24:47.000000000 +0400 +++ new/src/macosx/native/sun/osxapp/AWT_debug.h 2014-06-16 15:24:47.000000000 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,12 +28,16 @@ #import +bool ShouldPrintVerboseDebugging(); #define kInternalError "java/lang/InternalError" #define AWT_DEBUG_LOG(str) \ NSLog(@"\tCocoa AWT: %@ %@", str, [NSThread callStackSymbols]) +#define AWT_STARTUP_LOG(str) \ + if (ShouldPrintVerboseDebugging()) AWT_DEBUG_LOG((str)) + #define AWT_DEBUG_BUG_REPORT_MESSAGE \ NSLog(@"\tPlease file a bug report at http://bugreport.java.com/bugreport \ with this message and a reproducible test case.")