< prev index next >
src/hotspot/share/utilities/macros.hpp
Print this page
*** 638,643 ****
--- 638,649 ----
#define NOT_CDS_JAVA_HEAP(x) x
#define NOT_CDS_JAVA_HEAP_RETURN {}
#define NOT_CDS_JAVA_HEAP_RETURN_(code) { return code; }
#endif
+ // THIS_FILE will always be the relative path to the source file from the
+ // workspace root. FILE_MACRO_OFFSET is calculated in configure to be the
+ // absolute path length of the workspace root dir (or 0 if
+ // -fmacro-prefix-map is used to limit the length of __FILE__).
+ #define THIS_FILE (__FILE__ + FILE_MACRO_OFFSET)
+
#endif // SHARE_UTILITIES_MACROS_HPP
< prev index next >