src/share/vm/utilities/sizes.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2004, 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. --- 1,7 ---- /* ! * Copyright (c) 2000, 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,29 **** --- 20,35 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ + #ifndef SHARE_VM_UTILITIES_SIZES_HPP + #define SHARE_VM_UTILITIES_SIZES_HPP + + #include "memory/allocation.hpp" + #include "utilities/globalDefinitions.hpp" + // The following two classes are used to represent 'sizes' and 'offsets' in the VM; // they serve as 'unit' types. ByteSize is used for sizes measured in bytes, while // WordSize is used for sizes measured in machine words (i.e., 32bit or 64bit words // depending on platform). //
*** 140,144 **** --- 146,152 ---- // Use the following #define to get C++ field member offsets #define byte_offset_of(klass,field) in_ByteSize((int)offset_of(klass, field)) + + #endif // SHARE_VM_UTILITIES_SIZES_HPP