18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc_implementation/parallelScavenge/psVirtualspace.hpp"
27 #include "runtime/os.hpp"
28 #include "runtime/virtualspace.hpp"
29 #ifdef TARGET_OS_FAMILY_linux
30 # include "os_linux.inline.hpp"
31 #endif
32 #ifdef TARGET_OS_FAMILY_solaris
33 # include "os_solaris.inline.hpp"
34 #endif
35 #ifdef TARGET_OS_FAMILY_windows
36 # include "os_windows.inline.hpp"
37 #endif
38 #ifdef TARGET_OS_FAMILY_bsd
39 # include "os_bsd.inline.hpp"
40 #endif
41
42 // PSVirtualSpace
43
44 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs, size_t alignment) :
45 _alignment(alignment)
46 {
47 set_reserved(rs);
48 set_committed(reserved_low_addr(), reserved_low_addr());
49 DEBUG_ONLY(verify());
50 }
51
52 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs) :
53 _alignment(os::vm_page_size())
54 {
55 set_reserved(rs);
56 set_committed(reserved_low_addr(), reserved_low_addr());
57 DEBUG_ONLY(verify());
|
18 *
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
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc_implementation/parallelScavenge/psVirtualspace.hpp"
27 #include "runtime/os.hpp"
28 #include "runtime/virtualspace.hpp"
29 #ifdef TARGET_OS_FAMILY_linux
30 # include "os_linux.inline.hpp"
31 #endif
32 #ifdef TARGET_OS_FAMILY_solaris
33 # include "os_solaris.inline.hpp"
34 #endif
35 #ifdef TARGET_OS_FAMILY_windows
36 # include "os_windows.inline.hpp"
37 #endif
38 #ifdef TARGET_OS_FAMILY_aix
39 # include "os_aix.inline.hpp"
40 #endif
41 #ifdef TARGET_OS_FAMILY_bsd
42 # include "os_bsd.inline.hpp"
43 #endif
44
45 // PSVirtualSpace
46
47 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs, size_t alignment) :
48 _alignment(alignment)
49 {
50 set_reserved(rs);
51 set_committed(reserved_low_addr(), reserved_low_addr());
52 DEBUG_ONLY(verify());
53 }
54
55 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs) :
56 _alignment(os::vm_page_size())
57 {
58 set_reserved(rs);
59 set_committed(reserved_low_addr(), reserved_low_addr());
60 DEBUG_ONLY(verify());
|