--- old/src/hotspot/share/utilities/macros.hpp 2019-04-04 15:12:08.906098635 -0700 +++ new/src/hotspot/share/utilities/macros.hpp 2019-04-04 15:12:08.354079778 -0700 @@ -640,4 +640,10 @@ #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