Merge
authorctornqvi
Fri, 20 May 2016 16:39:40 +0000
changeset 38644 7d80e4a382f4
parent 38639 470ee64d4a67 (current diff)
parent 38643 3444f0668c83 (diff)
child 38645 3cffc9cf5ded
Merge
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Fri May 20 14:53:13 2016 +0300
+++ b/hotspot/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/hotspot/test/testlibrary_tests/SimpleClassFileLoadHookTest.java	Fri May 20 14:53:13 2016 +0300
+++ b/hotspot/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
  */