--- a/hotspot/src/share/vm/runtime/perfMemory.cpp Mon Apr 24 08:47:38 2017 -0400
+++ b/hotspot/src/share/vm/runtime/perfMemory.cpp Mon Apr 24 11:32:38 2017 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,7 @@
*/
#include "precompiled.hpp"
+#include "logging/log.hpp"
#include "memory/allocation.inline.hpp"
#include "runtime/arguments.hpp"
#include "runtime/java.hpp"
@@ -92,14 +93,12 @@
size_t capacity = align_size_up(PerfDataMemorySize,
os::vm_allocation_granularity());
- if (PerfTraceMemOps) {
- tty->print("PerfDataMemorySize = " SIZE_FORMAT ","
- " os::vm_allocation_granularity = %d,"
- " adjusted size = " SIZE_FORMAT "\n",
- PerfDataMemorySize,
- os::vm_allocation_granularity(),
- capacity);
- }
+ log_debug(perf, memops)("PerfDataMemorySize = " SIZE_FORMAT ","
+ " os::vm_allocation_granularity = %d,"
+ " adjusted size = " SIZE_FORMAT "\n",
+ PerfDataMemorySize,
+ os::vm_allocation_granularity(),
+ capacity);
// allocate PerfData memory region
create_memory_region(capacity);
@@ -124,12 +123,10 @@
// the PerfMemory region was created as expected.
- if (PerfTraceMemOps) {
- tty->print("PerfMemory created: address = " INTPTR_FORMAT ","
- " size = " SIZE_FORMAT "\n",
- p2i(_start),
- _capacity);
- }
+ log_debug(perf, memops)("PerfMemory created: address = " INTPTR_FORMAT ","
+ " size = " SIZE_FORMAT "\n",
+ p2i(_start),
+ _capacity);
_prologue = (PerfDataPrologue *)_start;
_end = _start + _capacity;