< prev index next >

src/hotspot/share/runtime/arguments.hpp

Print this page




 150   // Accessors
 151   const char* name() const                  { return _name; }
 152   char* options() const                     { return _options; }
 153   bool is_absolute_path() const             { return _is_absolute_path; }
 154   void* os_lib() const                      { return _os_lib; }
 155   void set_os_lib(void* os_lib)             { _os_lib = os_lib; }
 156   AgentLibrary* next() const                { return _next; }
 157   bool is_static_lib() const                { return _is_static_lib; }
 158   bool is_instrument_lib() const            { return _is_instrument_lib; }
 159   void set_static_lib(bool is_static_lib)   { _is_static_lib = is_static_lib; }
 160   bool valid()                              { return (_state == agent_valid); }
 161   void set_valid()                          { _state = agent_valid; }
 162   void set_invalid()                        { _state = agent_invalid; }
 163 
 164   // Constructor
 165   AgentLibrary(const char* name, const char* options, bool is_absolute_path,
 166                void* os_lib, bool instrument_lib=false);
 167 };
 168 
 169 // maintain an order of entry list of AgentLibrary
 170 class AgentLibraryList VALUE_OBJ_CLASS_SPEC {
 171  private:
 172   AgentLibrary*   _first;
 173   AgentLibrary*   _last;
 174  public:
 175   bool is_empty() const                     { return _first == NULL; }
 176   AgentLibrary* first() const               { return _first; }
 177 
 178   // add to the end of the list
 179   void add(AgentLibrary* lib) {
 180     if (is_empty()) {
 181       _first = _last = lib;
 182     } else {
 183       _last->_next = lib;
 184       _last = lib;
 185     }
 186     lib->_next = NULL;
 187   }
 188 
 189   // search for and remove a library known to be in the list
 190   void remove(AgentLibrary* lib) {




 150   // Accessors
 151   const char* name() const                  { return _name; }
 152   char* options() const                     { return _options; }
 153   bool is_absolute_path() const             { return _is_absolute_path; }
 154   void* os_lib() const                      { return _os_lib; }
 155   void set_os_lib(void* os_lib)             { _os_lib = os_lib; }
 156   AgentLibrary* next() const                { return _next; }
 157   bool is_static_lib() const                { return _is_static_lib; }
 158   bool is_instrument_lib() const            { return _is_instrument_lib; }
 159   void set_static_lib(bool is_static_lib)   { _is_static_lib = is_static_lib; }
 160   bool valid()                              { return (_state == agent_valid); }
 161   void set_valid()                          { _state = agent_valid; }
 162   void set_invalid()                        { _state = agent_invalid; }
 163 
 164   // Constructor
 165   AgentLibrary(const char* name, const char* options, bool is_absolute_path,
 166                void* os_lib, bool instrument_lib=false);
 167 };
 168 
 169 // maintain an order of entry list of AgentLibrary
 170 class AgentLibraryList {
 171  private:
 172   AgentLibrary*   _first;
 173   AgentLibrary*   _last;
 174  public:
 175   bool is_empty() const                     { return _first == NULL; }
 176   AgentLibrary* first() const               { return _first; }
 177 
 178   // add to the end of the list
 179   void add(AgentLibrary* lib) {
 180     if (is_empty()) {
 181       _first = _last = lib;
 182     } else {
 183       _last->_next = lib;
 184       _last = lib;
 185     }
 186     lib->_next = NULL;
 187   }
 188 
 189   // search for and remove a library known to be in the list
 190   void remove(AgentLibrary* lib) {


< prev index next >