1.1 --- a/src/share/vm/runtime/os.hpp Thu Aug 01 03:44:03 2019 +0100 1.2 +++ b/src/share/vm/runtime/os.hpp Mon Aug 12 18:30:40 2019 +0300 1.3 @@ -556,6 +556,7 @@ 1.4 //File i/o operations 1.5 1.6 static size_t read(int fd, void *buf, unsigned int nBytes); 1.7 + static size_t read_at(int fd, void *buf, unsigned int nBytes, jlong offset); 1.8 static size_t restartable_read(int fd, void *buf, unsigned int nBytes); 1.9 static size_t write(int fd, const void *buf, unsigned int nBytes); 1.10 1.11 @@ -604,6 +605,16 @@ 1.12 // Unload library 1.13 static void dll_unload(void *lib); 1.14 1.15 + // Callback for loaded module information 1.16 + // Input parameters: 1.17 + // char* module_file_name, 1.18 + // address module_base_addr, 1.19 + // address module_top_addr, 1.20 + // void* param 1.21 + typedef int (*LoadedModulesCallbackFunc)(const char *, address, address, void *); 1.22 + 1.23 + static int get_loaded_modules_info(LoadedModulesCallbackFunc callback, void *param); 1.24 + 1.25 // Return the handle of this process 1.26 static void* get_default_process_handle(); 1.27