changeset 11276:15849184fa18

Merge
author ctornqvi
date Fri, 20 May 2016 16:39:40 +0000
parents 1d72b0caffb5 553d9b487dc1
children 9ee381f08f70
files
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp	Fri May 20 14:53:13 2016 +0300
+++ b/src/os/windows/vm/os_windows.cpp	Fri May 20 16:39:40 2016 +0000
@@ -5277,7 +5277,8 @@
         }
       }
       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);
       }
--- a/test/testlibrary_tests/SimpleClassFileLoadHookTest.java	Fri May 20 14:53:13 2016 +0300
+++ b/test/testlibrary_tests/SimpleClassFileLoadHookTest.java	Fri May 20 16:39:40 2016 +0000
@@ -24,7 +24,7 @@
 /*
  * @test
  * @library /testlibrary
- *
+ * @requires vm.flavor != "minimal"
  * @run main/othervm/native -agentlib:SimpleClassFileLoadHook=Foo,XXX,YYY
  *      SimpleClassFileLoadHookTest
  */