src/hotspot/share/utilities/exceptions.hpp
changeset 53784 31e3aa9c0c71
parent 53244 9807daeb47c4
child 54490 bf07e140c49c
--- a/src/hotspot/share/utilities/exceptions.hpp	Fri Feb 15 11:46:15 2019 -0300
+++ b/src/hotspot/share/utilities/exceptions.hpp	Sat Feb 16 11:40:34 2019 +0900
@@ -237,7 +237,11 @@
 // visible within the scope containing the THROW. Usually this is achieved by declaring the function
 // with a TRAPS argument.
 
+#ifdef THIS_FILE
+#define THREAD_AND_LOCATION                      THREAD, THIS_FILE, __LINE__
+#else
 #define THREAD_AND_LOCATION                      THREAD, __FILE__, __LINE__
+#endif
 
 #define THROW_OOP(e)                                \
   { Exceptions::_throw_oop(THREAD_AND_LOCATION, e);                             return;  }