RFR(xxxs): 8193429: "assert(false) failed: GetModuleFileName failed (126)" in symbolengine.cpp

Thomas Stüfe thomas.stuefe at gmail.com
Tue Mar 6 08:30:46 UTC 2018

Hi all,

please take a look at this small fix.


bug: https://bugs.openjdk.java.net/browse/JDK-8193429

Basically, the assert is too strict. We retrieve a list of loaded modules
(EnumProcessModules) and then attempt to retrieve their file names
(GetModuleFileName). On the latter we get an invalid handle error.

Since both operations together are not atomic, it may happen that the
module got unloaded when the file name is retrieved. So, the assert is too
strict and should be removed.

(Note: I did my fix for 11, should that

Best Regards, Thomas

More information about the hotspot-runtime-dev mailing list