src/share/vm/services/memoryUsage.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -20,10 +20,15 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
+#ifndef SHARE_VM_SERVICES_MEMORYUSAGE_HPP
+#define SHARE_VM_SERVICES_MEMORYUSAGE_HPP
+
+#include "utilities/globalDefinitions.hpp"
+
// A memory usage contains the following attributes about memory usage:
// initSize - represents the initial amount of memory (in bytes) that
// the Java virtual machine requests from the operating system
// for memory management. The Java virtual machine may request
// additional memory from the operating system later when appropriate.
@@ -73,5 +78,7 @@
jlong init_size_as_jlong() const { return convert_to_jlong(_initSize); }
jlong used_as_jlong() const { return convert_to_jlong(_used); }
jlong committed_as_jlong() const { return convert_to_jlong(_committed); }
jlong max_size_as_jlong() const { return convert_to_jlong(_maxSize); }
};
+
+#endif // SHARE_VM_SERVICES_MEMORYUSAGE_HPP