< prev index next >

src/hotspot/share/gc/shared/space.inline.hpp

Print this page

 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 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 #ifndef SHARE_GC_SHARED_SPACE_INLINE_HPP
 26 #define SHARE_GC_SHARED_SPACE_INLINE_HPP
 27 
 28 #include "gc/shared/space.hpp"
 29 
 30 #include "gc/shared/blockOffsetTable.inline.hpp"
 31 #include "gc/shared/collectedHeap.hpp"
 32 #include "gc/shared/generation.hpp"

 33 #include "gc/shared/spaceDecorator.hpp"
 34 #include "oops/oopsHierarchy.hpp"
 35 #include "oops/oop.inline.hpp"
 36 #include "runtime/prefetch.inline.hpp"
 37 #include "runtime/safepoint.hpp"
 38 #if INCLUDE_SERIALGC
 39 #include "gc/serial/markSweep.inline.hpp"
 40 #endif
 41 
 42 inline HeapWord* Space::block_start(const void* p) {
 43   return block_start_const(p);
 44 }
 45 
 46 inline HeapWord* OffsetTableContigSpace::allocate(size_t size) {
 47   HeapWord* res = ContiguousSpace::allocate(size);
 48   if (res != NULL) {
 49     _offsets.alloc_block(res, size);
 50   }
 51   return res;
 52 }

 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 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 #ifndef SHARE_GC_SHARED_SPACE_INLINE_HPP
 26 #define SHARE_GC_SHARED_SPACE_INLINE_HPP
 27 
 28 #include "gc/shared/space.hpp"
 29 
 30 #include "gc/shared/blockOffsetTable.inline.hpp"
 31 #include "gc/shared/collectedHeap.hpp"
 32 #include "gc/shared/generation.hpp"
 33 #include "gc/shared/genCollectedHeap.hpp"
 34 #include "gc/shared/spaceDecorator.hpp"
 35 #include "oops/oopsHierarchy.hpp"
 36 #include "oops/oop.inline.hpp"
 37 #include "runtime/prefetch.inline.hpp"
 38 #include "runtime/safepoint.hpp"
 39 #if INCLUDE_SERIALGC
 40 #include "gc/serial/markSweep.inline.hpp"
 41 #endif
 42 
 43 inline HeapWord* Space::block_start(const void* p) {
 44   return block_start_const(p);
 45 }
 46 
 47 inline HeapWord* OffsetTableContigSpace::allocate(size_t size) {
 48   HeapWord* res = ContiguousSpace::allocate(size);
 49   if (res != NULL) {
 50     _offsets.alloc_block(res, size);
 51   }
 52   return res;
 53 }
< prev index next >