This commit is contained in:
Christian Tornqvist 2016-05-20 16:39:40 +00:00
commit 3469a820b9
2 changed files with 3 additions and 2 deletions
hotspot
src/os/windows/vm
test/testlibrary_tests

@ -5277,7 +5277,8 @@ bool os::check_heap(bool force) {
}
}
DWORD err = GetLastError();
if (err != ERROR_NO_MORE_ITEMS && err != ERROR_CALL_NOT_IMPLEMENTED) {
if (err != ERROR_NO_MORE_ITEMS && err != ERROR_CALL_NOT_IMPLEMENTED &&
(err == ERROR_INVALID_FUNCTION && phe.lpData != NULL)) {
HeapUnlock(heap);
fatal("heap walk aborted with error %d", err);
}

@ -24,7 +24,7 @@
/*
* @test
* @library /testlibrary
*
* @requires vm.flavor != "minimal"
* @run main/othervm/native -agentlib:SimpleClassFileLoadHook=Foo,XXX,YYY
* SimpleClassFileLoadHookTest
*/