src/share/vm/runtime/os.hpp

changeset 9931
fd44df5e3bc3
parent 9756
2be326848943
parent 9858
b985cbb00e68
     1.1 --- a/src/share/vm/runtime/os.hpp	Wed Oct 14 16:43:13 2020 +0800
     1.2 +++ b/src/share/vm/runtime/os.hpp	Wed Oct 14 17:44:48 2020 +0800
     1.3 @@ -562,6 +562,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 @@ -610,6 +611,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  

mercurial