< prev index next >

src/hotspot/share/gc/parallel/psFileBackedVirtualspace.hpp

8221260: Initialize more class members on construction, remove some unused ones
Reviewed-by:

16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                           
17  *                                                                                                                         
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                 
19  * or visit www.oracle.com if you need additional information or have any                                                  
20  * questions.                                                                                                              
21  *                                                                                                                         
22  */                                                                                                                        
23 
24 #ifndef SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP                                                                     
25 #define SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP                                                                     
26 
27 #include "gc/parallel/psVirtualspace.hpp"                                                                                  
28 
29 class PSFileBackedVirtualSpace : public PSVirtualSpace {                                                                   
30 private:                                                                                                                   
31   const char* _file_path;                                                                                                  
32   int _fd;                                                                                                                 
33   bool _mapping_succeeded;                                                                                                 
34 public:                                                                                                                    
35   PSFileBackedVirtualSpace(ReservedSpace rs, size_t alignment, const char* file_path);                                     
36   PSFileBackedVirtualSpace(ReservedSpace rs, const char* file_path);                                                       
37 
38   bool   initialize();                                                                                                     
39   bool   expand_by(size_t bytes);                                                                                          
40   bool   shrink_by(size_t bytes);                                                                                          
41   size_t expand_into(PSVirtualSpace* space, size_t bytes);                                                                 
42   void   release();                                                                                                        
43 };                                                                                                                         
44 #endif // SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP                                                                   

16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19  * or visit www.oracle.com if you need additional information or have any
20  * questions.
21  *
22  */
23 
24 #ifndef SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP
25 #define SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP
26 
27 #include "gc/parallel/psVirtualspace.hpp"
28 
29 class PSFileBackedVirtualSpace : public PSVirtualSpace {
30 private:
31   const char* _file_path;
32   int _fd;
33   bool _mapping_succeeded;
34 public:
35   PSFileBackedVirtualSpace(ReservedSpace rs, size_t alignment, const char* file_path);

36 
37   bool   initialize();
38   bool   expand_by(size_t bytes);
39   bool   shrink_by(size_t bytes);
40   size_t expand_into(PSVirtualSpace* space, size_t bytes);
41   void   release();
42 };
43 #endif // SHARE_GC_PARALLEL_PSFILEBACKEDVIRTUALSPACE_HPP
< prev index next >