7016797: Hotspot: securely/restrictive load dlls and new API for loading system dlls

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
This commit is contained in:
Zhengyu Gu 2011-04-15 09:34:43 -04:00
parent 3e1a7d0e17
commit 462140d52d
5 changed files with 584 additions and 209 deletions

View file

@ -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 @@ void Decoder::initialize() {
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;