src/share/vm/services/diagnosticFramework.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/services

src/share/vm/services/diagnosticFramework.cpp

Print this page


   1 /*
   2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "memory/oopFactory.hpp"

  27 #include "oops/oop.inline.hpp"
  28 #include "runtime/javaCalls.hpp"
  29 #include "runtime/mutexLocker.hpp"
  30 #include "services/diagnosticArgument.hpp"
  31 #include "services/diagnosticFramework.hpp"
  32 #include "services/management.hpp"
  33 
  34 CmdLine::CmdLine(const char* line, size_t len, bool no_command_name) {
  35   assert(line != NULL, "Command line string should not be NULL");
  36   const char* line_end;
  37   const char* cmd_end;
  38 
  39   _cmd = line;
  40   line_end = &line[len];
  41 
  42   // Skip whitespace in the beginning of the line.
  43   while (_cmd < line_end && isspace((int) _cmd[0])) {
  44     _cmd++;
  45   }
  46   cmd_end = _cmd;


   1 /*
   2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "memory/oopFactory.hpp"
  27 #include "memory/resourceArea.hpp"
  28 #include "oops/oop.inline.hpp"
  29 #include "runtime/javaCalls.hpp"
  30 #include "runtime/mutexLocker.hpp"
  31 #include "services/diagnosticArgument.hpp"
  32 #include "services/diagnosticFramework.hpp"
  33 #include "services/management.hpp"
  34 
  35 CmdLine::CmdLine(const char* line, size_t len, bool no_command_name) {
  36   assert(line != NULL, "Command line string should not be NULL");
  37   const char* line_end;
  38   const char* cmd_end;
  39 
  40   _cmd = line;
  41   line_end = &line[len];
  42 
  43   // Skip whitespace in the beginning of the line.
  44   while (_cmd < line_end && isspace((int) _cmd[0])) {
  45     _cmd++;
  46   }
  47   cmd_end = _cmd;


src/share/vm/services/diagnosticFramework.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File