--- 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);
}