< prev index next >

src/share/vm/runtime/perfMemory.cpp

Print this page
rev 13107 : imported patch jvm_h


   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 "logging/log.hpp"
  27 #include "memory/allocation.inline.hpp"

  28 #include "runtime/arguments.hpp"
  29 #include "runtime/java.hpp"
  30 #include "runtime/mutex.hpp"
  31 #include "runtime/mutexLocker.hpp"
  32 #include "runtime/orderAccess.inline.hpp"
  33 #include "runtime/os.hpp"
  34 #include "runtime/perfData.hpp"
  35 #include "runtime/perfMemory.hpp"
  36 #include "runtime/safepoint.hpp"
  37 #include "runtime/statSampler.hpp"
  38 #include "utilities/globalDefinitions.hpp"
  39 
  40 // Prefix of performance data file.
  41 const char               PERFDATA_NAME[] = "hsperfdata";
  42 
  43 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
  44 // character will be included in the sizeof(PERFDATA_NAME) operation.
  45 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
  46                                             UINT_CHARS + 1;
  47 




   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 "logging/log.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "prims/jvm.h"
  29 #include "runtime/arguments.hpp"
  30 #include "runtime/java.hpp"
  31 #include "runtime/mutex.hpp"
  32 #include "runtime/mutexLocker.hpp"
  33 #include "runtime/orderAccess.inline.hpp"
  34 #include "runtime/os.hpp"
  35 #include "runtime/perfData.hpp"
  36 #include "runtime/perfMemory.hpp"
  37 #include "runtime/safepoint.hpp"
  38 #include "runtime/statSampler.hpp"
  39 #include "utilities/globalDefinitions.hpp"
  40 
  41 // Prefix of performance data file.
  42 const char               PERFDATA_NAME[] = "hsperfdata";
  43 
  44 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
  45 // character will be included in the sizeof(PERFDATA_NAME) operation.
  46 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
  47                                             UINT_CHARS + 1;
  48 


< prev index next >