src/hotspot/share/oops/weakHandle.cpp
changeset 50445 bd6b78feb6a3
parent 49824 e242740a92b8
child 50599 ecc2af326b5f
--- a/src/hotspot/share/oops/weakHandle.cpp	Thu Jun 07 06:27:09 2018 -0400
+++ b/src/hotspot/share/oops/weakHandle.cpp	Thu Jun 07 14:11:56 2018 +0200
@@ -24,6 +24,7 @@
 
 #include "precompiled.hpp"
 #include "classfile/systemDictionary.hpp"
+#include "classfile/stringTable.hpp"
 #include "gc/shared/oopStorage.hpp"
 #include "oops/access.inline.hpp"
 #include "oops/oop.hpp"
@@ -35,6 +36,10 @@
   return SystemDictionary::vm_weak_oop_storage();
 }
 
+template <> OopStorage* WeakHandle<vm_string_table_data>::get_storage() {
+  return StringTable::weak_storage();
+}
+
 template <WeakHandleType T>
 WeakHandle<T> WeakHandle<T>::create(Handle obj) {
   assert(obj() != NULL, "no need to create weak null oop");
@@ -68,4 +73,5 @@
 
 // Provide instantiation.
 template class WeakHandle<vm_class_loader_data>;
+template class WeakHandle<vm_string_table_data>;