Mercurial > hg > graal-compiler
diff src/os/windows/vm/decoder_windows.cpp @ 3833:b1cbb0907b36
7016797: Hotspot: securely/restrictive load dlls and new API for loading system dlls
Summary: Created Windows Dll wrapped to handle jdk6 and jdk7 platform requirements, also provided more restictive Dll search orders for Windows system Dlls.
Reviewed-by: acorn, dcubed, ohair, alanb
author | zgu |
---|---|
date | Fri, 15 Apr 2011 09:34:43 -0400 |
parents | 2d4762ec74af |
children | d7e3846464d0 |
line wrap: on
line diff
--- a/src/os/windows/vm/decoder_windows.cpp Sat Jul 23 10:42:20 2011 -0400 +++ b/src/os/windows/vm/decoder_windows.cpp Fri Apr 15 09:34:43 2011 -0400 @@ -24,6 +24,7 @@ #include "precompiled.hpp" #include "prims/jvm.h" +#include "runtime/os.hpp" #include "utilities/decoder.hpp" HMODULE Decoder::_dbghelp_handle = NULL; @@ -35,7 +36,7 @@ if (!_initialized) { _initialized = true; - HMODULE handle = ::LoadLibrary("dbghelp.dll"); + HINSTANCE handle = os::win32::load_Windows_dll("dbghelp.dll", NULL, 0); if (!handle) { _decoder_status = helper_not_found; return;