21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #ifndef SERIALGC |
26 #include "utilities/macros.hpp" |
|
27 #if INCLUDE_ALL_GCS |
27 #include "gc_implementation/shared/mutableSpace.hpp" |
28 #include "gc_implementation/shared/mutableSpace.hpp" |
28 #include "gc_implementation/shared/spaceDecorator.hpp" |
29 #include "gc_implementation/shared/spaceDecorator.hpp" |
29 #include "oops/oop.inline.hpp" |
30 #include "oops/oop.inline.hpp" |
30 #include "runtime/safepoint.hpp" |
31 #include "runtime/safepoint.hpp" |
31 #include "runtime/thread.hpp" |
32 #include "runtime/thread.hpp" |
32 #endif |
33 #endif // INCLUDE_ALL_GCS |
33 |
34 |
34 MutableSpace::MutableSpace(size_t alignment): ImmutableSpace(), _top(NULL), _alignment(alignment) { |
35 MutableSpace::MutableSpace(size_t alignment): ImmutableSpace(), _top(NULL), _alignment(alignment) { |
35 assert(MutableSpace::alignment() >= 0 && |
36 assert(MutableSpace::alignment() >= 0 && |
36 MutableSpace::alignment() % os::vm_page_size() == 0, |
37 MutableSpace::alignment() % os::vm_page_size() == 0, |
37 "Space should be aligned"); |
38 "Space should be aligned"); |