36
36
37
37
G1PageBasedVirtualSpace::G1PageBasedVirtualSpace (ReservedSpace rs, size_t used_size, size_t page_size) :
38
38
_low_boundary(NULL ), _high_boundary(NULL ), _tail_size(0 ), _page_size(0 ),
39
- _committed(mtGC), _dirty(mtGC), _special(false ), _executable(false ) {
39
+ _committed(mtGC), _dirty(mtGC), _special(false ) {
40
+ assert (!rs.executable (), " precondition" );
40
41
initialize_with_page_size (rs, used_size, page_size);
41
42
}
42
43
@@ -59,7 +60,6 @@ void G1PageBasedVirtualSpace::initialize_with_page_size(ReservedSpace rs, size_t
59
60
_high_boundary = _low_boundary + used_size;
60
61
61
62
_special = rs.special ();
62
- _executable = rs.executable ();
63
63
64
64
_page_size = page_size;
65
65
@@ -79,7 +79,6 @@ G1PageBasedVirtualSpace::~G1PageBasedVirtualSpace() {
79
79
_low_boundary = NULL ;
80
80
_high_boundary = NULL ;
81
81
_special = false ;
82
- _executable = false ;
83
82
_page_size = 0 ;
84
83
_tail_size = 0 ;
85
84
}
@@ -140,14 +139,14 @@ void G1PageBasedVirtualSpace::commit_preferred_pages(size_t start, size_t num_pa
140
139
char * start_addr = page_start (start);
141
140
size_t size = num_pages * _page_size;
142
141
143
- os::commit_memory_or_exit (start_addr, size, _page_size, _executable , " G1 virtual space" );
142
+ os::commit_memory_or_exit (start_addr, size, _page_size, false , " G1 virtual space" );
144
143
}
145
144
146
145
void G1PageBasedVirtualSpace::commit_tail () {
147
146
vmassert (_tail_size > 0 , " The size of the tail area must be > 0 when reaching here" );
148
147
149
148
char * const aligned_end_address = align_down (_high_boundary, _page_size);
150
- os::commit_memory_or_exit (aligned_end_address, _tail_size, os::vm_page_size (), _executable , " G1 virtual space" );
149
+ os::commit_memory_or_exit (aligned_end_address, _tail_size, os::vm_page_size (), false , " G1 virtual space" );
151
150
}
152
151
153
152
void G1PageBasedVirtualSpace::commit_internal (size_t start_page, size_t end_page) {
0 commit comments