< prev index next >

src/hotspot/share/classfile/classLoaderHierarchyDCmd.cpp

Print this page




   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 
  28 #include "classfile/classLoaderData.inline.hpp"

  29 #include "classfile/classLoaderHierarchyDCmd.hpp"
  30 #include "memory/allocation.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "runtime/safepoint.hpp"
  33 #include "oops/reflectionAccessorImplKlassHelper.hpp"
  34 #include "utilities/globalDefinitions.hpp"
  35 #include "utilities/ostream.hpp"
  36 
  37 
  38 ClassLoaderHierarchyDCmd::ClassLoaderHierarchyDCmd(outputStream* output, bool heap)
  39   : DCmdWithParser(output, heap),
  40    _show_classes("show-classes", "Print loaded classes.", "BOOLEAN", false, "false"),
  41   _verbose("verbose", "Print detailed information.", "BOOLEAN", false, "false"),
  42   _fold("fold", "Show loaders of the same name and class as one.", "BOOLEAN", true, "true") {
  43   _dcmdparser.add_dcmd_option(&_show_classes);
  44   _dcmdparser.add_dcmd_option(&_verbose);
  45   _dcmdparser.add_dcmd_option(&_fold);
  46 }
  47 
  48 




   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 
  28 #include "classfile/classLoaderData.inline.hpp"
  29 #include "classfile/classLoaderDataGraph.hpp"
  30 #include "classfile/classLoaderHierarchyDCmd.hpp"
  31 #include "memory/allocation.hpp"
  32 #include "memory/resourceArea.hpp"
  33 #include "runtime/safepoint.hpp"
  34 #include "oops/reflectionAccessorImplKlassHelper.hpp"
  35 #include "utilities/globalDefinitions.hpp"
  36 #include "utilities/ostream.hpp"
  37 
  38 
  39 ClassLoaderHierarchyDCmd::ClassLoaderHierarchyDCmd(outputStream* output, bool heap)
  40   : DCmdWithParser(output, heap),
  41    _show_classes("show-classes", "Print loaded classes.", "BOOLEAN", false, "false"),
  42   _verbose("verbose", "Print detailed information.", "BOOLEAN", false, "false"),
  43   _fold("fold", "Show loaders of the same name and class as one.", "BOOLEAN", true, "true") {
  44   _dcmdparser.add_dcmd_option(&_show_classes);
  45   _dcmdparser.add_dcmd_option(&_verbose);
  46   _dcmdparser.add_dcmd_option(&_fold);
  47 }
  48 
  49 


< prev index next >