< prev index next >

src/hotspot/share/oops/weakHandle.hpp

Print this page

        

*** 37,47 **** // the GC cycle. The runtime structures that reference the oop must test // if the value is NULL. If it is NULL, it has been cleaned out by GC. // This is the vm version of jweak but has different GC lifetimes and policies, // depending on the type. ! enum WeakHandleType { vm_class_loader_data, vm_string_table_data, vm_resolved_method_table_data }; template <WeakHandleType T> class WeakHandle { public: private: --- 37,47 ---- // the GC cycle. The runtime structures that reference the oop must test // if the value is NULL. If it is NULL, it has been cleaned out by GC. // This is the vm version of jweak but has different GC lifetimes and policies, // depending on the type. ! enum WeakHandleType { vm_class_loader_data, vm_string_table_data }; template <WeakHandleType T> class WeakHandle { public: private:
*** 62,67 **** --- 62,69 ---- void print() const; void print_on(outputStream* st) const; }; + typedef WeakHandle<vm_class_loader_data> ClassLoaderWeakHandle; + #endif // SHARE_OOPS_WEAKHANDLE_HPP
< prev index next >