< prev index next >

src/java.desktop/share/native/common/awt/debug/debug_mem.c

Print this page
rev 52923 : 8226346: Build better binary builders
Reviewed-by: andrew

@@ -25,15 +25,10 @@
 
 #if defined(DEBUG)
 
 #include "debug_util.h"
 
-/* Use THIS_FILE when it is available. */
-#ifndef THIS_FILE
-    #define THIS_FILE __FILE__
-#endif
-
 #define DMEM_MIN(a,b)   (a) < (b) ? (a) : (b)
 #define DMEM_MAX(a,b)   (a) > (b) ? (a) : (b)
 
 typedef char byte_t;
 

@@ -294,11 +289,11 @@
     MemoryListLink *    link;
 
     DMutex_Enter(DMemMutex);
 
     /* Force memory leaks to be output regardless of trace settings */
-    DTrace_EnableFile(THIS_FILE, TRUE);
+    DTrace_EnableFile(__FILE__, TRUE);
     DTRACE_PRINTLN("--------------------------");
     DTRACE_PRINTLN("Debug Memory Manager Leaks");
     DTRACE_PRINTLN("--------------------------");
 
     /* walk through allocated list and dump any blocks not marked as freed */
< prev index next >