src/hotspot/share/oops/weakHandle.hpp
changeset 52853 0e2e67902add
parent 50445 bd6b78feb6a3
child 53244 9807daeb47c4
equal deleted inserted replaced
52852:eb95a38b2964 52853:0e2e67902add
    37 // the GC cycle.  The runtime structures that reference the oop must test
    37 // the GC cycle.  The runtime structures that reference the oop must test
    38 // if the value is NULL.  If it is NULL, it has been cleaned out by GC.
    38 // if the value is NULL.  If it is NULL, it has been cleaned out by GC.
    39 // This is the vm version of jweak but has different GC lifetimes and policies,
    39 // This is the vm version of jweak but has different GC lifetimes and policies,
    40 // depending on the type.
    40 // depending on the type.
    41 
    41 
    42 enum WeakHandleType { vm_class_loader_data, vm_string, vm_string_table_data };
    42 enum WeakHandleType { vm_class_loader_data, vm_string_table_data };
    43 
    43 
    44 template <WeakHandleType T>
    44 template <WeakHandleType T>
    45 class WeakHandle {
    45 class WeakHandle {
    46  public:
    46  public:
    47  private:
    47  private: