hotspot/src/share/vm/runtime/jniHandles.cpp
changeset 7896 08aadd7aa3ee
parent 7397 5b173b4ca846
child 7918 ce1e4ae77aea
--- a/hotspot/src/share/vm/runtime/jniHandles.cpp	Mon Jan 10 09:23:20 2011 -0800
+++ b/hotspot/src/share/vm/runtime/jniHandles.cpp	Mon Jan 10 17:14:53 2011 -0500
@@ -25,6 +25,7 @@
 #include "precompiled.hpp"
 #include "classfile/systemDictionary.hpp"
 #include "oops/oop.inline.hpp"
+#include "prims/jvmtiTagMap.hpp"
 #include "runtime/jniHandles.hpp"
 #include "runtime/mutexLocker.hpp"
 #ifdef TARGET_OS_FAMILY_linux
@@ -428,6 +429,12 @@
       break;
     }
   }
+
+  /*
+   * JvmtiTagMap may also contain weak oops.  The iteration of it is placed
+   * here so that we don't need to add it to each of the collectors.
+   */
+  JvmtiTagMap::weak_oops_do(is_alive, f);
 }