diff -r c7a3e57fdf4a -r b985cbb00e68 src/share/vm/runtime/os.hpp --- a/src/share/vm/runtime/os.hpp Thu Aug 01 03:44:03 2019 +0100 +++ b/src/share/vm/runtime/os.hpp Mon Aug 12 18:30:40 2019 +0300 @@ -556,6 +556,7 @@ //File i/o operations static size_t read(int fd, void *buf, unsigned int nBytes); + static size_t read_at(int fd, void *buf, unsigned int nBytes, jlong offset); static size_t restartable_read(int fd, void *buf, unsigned int nBytes); static size_t write(int fd, const void *buf, unsigned int nBytes); @@ -604,6 +605,16 @@ // Unload library static void dll_unload(void *lib); + // Callback for loaded module information + // Input parameters: + // char* module_file_name, + // address module_base_addr, + // address module_top_addr, + // void* param + typedef int (*LoadedModulesCallbackFunc)(const char *, address, address, void *); + + static int get_loaded_modules_info(LoadedModulesCallbackFunc callback, void *param); + // Return the handle of this process static void* get_default_process_handle();