equal
deleted
inserted
replaced
49 bool executable); |
49 bool executable); |
50 |
50 |
51 public: |
51 public: |
52 // Constructor |
52 // Constructor |
53 ReservedSpace(); |
53 ReservedSpace(); |
54 ReservedSpace(size_t size); |
54 // Initialize the reserved space with the given size. If prefer_large_pages is |
|
55 // set, if the given size warrants use of large pages, try to force them by |
|
56 // passing an alignment restriction further down. This may waste some space |
|
57 // if the given size is not aligned, as the reservation will be aligned up |
|
58 // to large page alignment. |
|
59 ReservedSpace(size_t size, bool prefer_large_pages = false); |
55 ReservedSpace(size_t size, size_t alignment, bool large, |
60 ReservedSpace(size_t size, size_t alignment, bool large, |
56 char* requested_address = NULL); |
61 char* requested_address = NULL); |
57 ReservedSpace(size_t size, size_t alignment, bool large, bool executable); |
62 ReservedSpace(size_t size, size_t alignment, bool large, bool executable); |
58 |
63 |
59 // Accessors |
64 // Accessors |