1 /* |
1 /* |
2 * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
|
24 |
|
25 #ifndef SHARE_VM_MEMORY_SPACE_HPP |
|
26 #define SHARE_VM_MEMORY_SPACE_HPP |
|
27 |
|
28 #include "memory/allocation.hpp" |
|
29 #include "memory/blockOffsetTable.hpp" |
|
30 #include "memory/cardTableModRefBS.hpp" |
|
31 #include "memory/iterator.hpp" |
|
32 #include "memory/memRegion.hpp" |
|
33 #include "memory/watermark.hpp" |
|
34 #include "oops/markOop.hpp" |
|
35 #include "runtime/mutexLocker.hpp" |
|
36 #include "runtime/prefetch.hpp" |
|
37 #include "utilities/workgroup.hpp" |
|
38 #ifdef TARGET_OS_FAMILY_linux |
|
39 # include "os_linux.inline.hpp" |
|
40 #endif |
|
41 #ifdef TARGET_OS_FAMILY_solaris |
|
42 # include "os_solaris.inline.hpp" |
|
43 #endif |
|
44 #ifdef TARGET_OS_FAMILY_windows |
|
45 # include "os_windows.inline.hpp" |
|
46 #endif |
24 |
47 |
25 // A space is an abstraction for the "storage units" backing |
48 // A space is an abstraction for the "storage units" backing |
26 // up the generation abstraction. It includes specific |
49 // up the generation abstraction. It includes specific |
27 // implementations for keeping track of free and used space, |
50 // implementations for keeping track of free and used space, |
28 // for iterating over objects and free blocks, etc. |
51 // for iterating over objects and free blocks, etc. |