src/hotspot/share/gc/parallel/psFileBackedVirtualspace.cpp
changeset 54264 41af8d0546bc
parent 53117 37930c6ba6d7
equal deleted inserted replaced
54263:3cabb47758c9 54264:41af8d0546bc
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    49   _special = true;
    49   _special = true;
    50   os::close(_fd);
    50   os::close(_fd);
    51   return true;
    51   return true;
    52 }
    52 }
    53 
    53 
    54 PSFileBackedVirtualSpace::PSFileBackedVirtualSpace(ReservedSpace rs, const char* path) {
       
    55   PSFileBackedVirtualSpace(rs, os::vm_page_size(), path);
       
    56 }
       
    57 
       
    58 bool PSFileBackedVirtualSpace::expand_by(size_t bytes) {
    54 bool PSFileBackedVirtualSpace::expand_by(size_t bytes) {
    59   assert(special(), "Since entire space is committed at initialization, _special should always be true for PSFileBackedVirtualSpace");
    55   assert(special(), "Since entire space is committed at initialization, _special should always be true for PSFileBackedVirtualSpace");
    60 
    56 
    61   // if mapping did not succeed during intialization return false
    57   // if mapping did not succeed during intialization return false
    62   if (!_mapping_succeeded) {
    58   if (!_mapping_succeeded) {