hotspot/src/os/windows/vm/decoder_windows.cpp
changeset 10246 adee0cf4c981
parent 7447 32c42d627f41
child 11483 4d3f4bca0019
equal deleted inserted replaced
10234:31f396799198 10246:adee0cf4c981
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "prims/jvm.h"
    26 #include "prims/jvm.h"
       
    27 #include "runtime/os.hpp"
    27 #include "utilities/decoder.hpp"
    28 #include "utilities/decoder.hpp"
    28 
    29 
    29 HMODULE                   Decoder::_dbghelp_handle = NULL;
    30 HMODULE                   Decoder::_dbghelp_handle = NULL;
    30 bool                      Decoder::_can_decode_in_vm = false;
    31 bool                      Decoder::_can_decode_in_vm = false;
    31 pfn_SymGetSymFromAddr64   Decoder::_pfnSymGetSymFromAddr64 = NULL;
    32 pfn_SymGetSymFromAddr64   Decoder::_pfnSymGetSymFromAddr64 = NULL;
    33 
    34 
    34 void Decoder::initialize() {
    35 void Decoder::initialize() {
    35   if (!_initialized) {
    36   if (!_initialized) {
    36     _initialized = true;
    37     _initialized = true;
    37 
    38 
    38     HMODULE handle = ::LoadLibrary("dbghelp.dll");
    39     HINSTANCE handle = os::win32::load_Windows_dll("dbghelp.dll", NULL, 0);
    39     if (!handle) {
    40     if (!handle) {
    40       _decoder_status = helper_not_found;
    41       _decoder_status = helper_not_found;
    41         return;
    42         return;
    42     }
    43     }
    43 
    44