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
39 // PSVirtualSpace
40
41 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs, size_t alignment) :
42 _alignment(alignment)
43 {
44 set_reserved(rs);
45 set_committed(reserved_low_addr(), reserved_low_addr());
46 DEBUG_ONLY(verify());
47 }
48
49 PSVirtualSpace::PSVirtualSpace(ReservedSpace rs) :
50 _alignment(os::vm_page_size())
51 {
52 set_reserved(rs);
53 set_committed(reserved_low_addr(), reserved_low_addr());
54 DEBUG_ONLY(verify());
55 }
56
57 // Deprecated.
|
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());
58 }
59
60 // Deprecated.
|