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

View file

@ -5277,7 +5277,8 @@ bool os::check_heap(bool force) {
} }
} }
DWORD err = GetLastError(); 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); HeapUnlock(heap);
fatal("heap walk aborted with error %d", err); fatal("heap walk aborted with error %d", err);
} }

View file

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