src/hotspot/share/prims/resolvedMethodTable.hpp
changeset 57828 35db8fba55f9
parent 54896 ea619918de95
equal deleted inserted replaced
57827:425412369353 57828:35db8fba55f9
    23  */
    23  */
    24 
    24 
    25 #ifndef SHARE_PRIMS_RESOLVEDMETHODTABLE_HPP
    25 #ifndef SHARE_PRIMS_RESOLVEDMETHODTABLE_HPP
    26 #define SHARE_PRIMS_RESOLVEDMETHODTABLE_HPP
    26 #define SHARE_PRIMS_RESOLVEDMETHODTABLE_HPP
    27 
    27 
    28 #include "gc/shared/oopStorage.hpp"
       
    29 #include "memory/allocation.hpp"
    28 #include "memory/allocation.hpp"
    30 #include "oops/symbol.hpp"
    29 #include "oops/symbol.hpp"
    31 #include "oops/weakHandle.hpp"
    30 #include "oops/weakHandle.hpp"
    32 
    31 
    33 class ResolvedMethodTable;
    32 class ResolvedMethodTable;
    34 class ResolvedMethodTableConfig;
    33 class ResolvedMethodTableConfig;
    35 
    34 
    36 class ResolvedMethodTable : public AllStatic {
    35 class ResolvedMethodTable : public AllStatic {
    37   static OopStorage*              _weak_handles;
    36   static volatile bool            _has_work;
    38 
    37 
    39   static volatile bool            _has_work;
       
    40 public:
    38 public:
    41   // Initialization
    39   // Initialization
    42   static void create_table();
    40   static void create_table();
    43 
    41 
    44   static size_t table_size();
    42   static size_t table_size();
    51   static void item_added();
    49   static void item_added();
    52   static void item_removed();
    50   static void item_removed();
    53 
    51 
    54   // Cleaning
    52   // Cleaning
    55   static bool has_work() { return _has_work; }
    53   static bool has_work() { return _has_work; }
    56 
       
    57   // GC Support - Backing storage for the oop*s
       
    58   static OopStorage* weak_storage() { return _weak_handles; }
       
    59 
    54 
    60   // Cleaning and table management
    55   // Cleaning and table management
    61 
    56 
    62   static double get_load_factor();
    57   static double get_load_factor();
    63   static double get_dead_factor();
    58   static double get_dead_factor();