--- old/src/hotspot/share/utilities/exceptions.hpp 2019-02-14 13:15:08.778582094 +0900 +++ new/src/hotspot/share/utilities/exceptions.hpp 2019-02-14 13:15:08.488584730 +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; }