parNewGeneration.inline.hpp revision 8866:a3fbc02ec341
165123Speter/*
265123Speter * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
365123Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
465123Speter *
565123Speter * This code is free software; you can redistribute it and/or modify it
665123Speter * under the terms of the GNU General Public License version 2 only, as
765123Speter * published by the Free Software Foundation.
865123Speter *
965123Speter * This code is distributed in the hope that it will be useful, but WITHOUT
1065123Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1165123Speter * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1265123Speter * version 2 for more details (a copy is included in the LICENSE file that
1365123Speter * accompanied this code).
1465123Speter *
1565123Speter * You should have received a copy of the GNU General Public License version
1665123Speter * 2 along with this work; if not, write to the Free Software Foundation,
1765123Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1865123Speter *
1965123Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2065123Speter * or visit www.oracle.com if you need additional information or have any
2165123Speter * questions.
2265123Speter *
2365123Speter */
2465123Speter
2565123Speter#ifndef SHARE_VM_GC_CMS_PARNEWGENERATION_INLINE_HPP
2665123Speter#define SHARE_VM_GC_CMS_PARNEWGENERATION_INLINE_HPP
2765123Speter
2865177Speter#include "gc/cms/parNewGeneration.hpp"
2999112Sobrien#include "gc/shared/plab.inline.hpp"
3099112Sobrien#include "utilities/globalDefinitions.hpp"
3165123Speter
32113277Smikeinline HeapWord* ParScanThreadState::alloc_in_to_space(size_t word_sz) {
3365123Speter  HeapWord* obj = to_space_alloc_buffer()->allocate_aligned(word_sz, SurvivorAlignmentInBytes);
34192896Sjamie  if (obj != NULL) return obj;
3565123Speter  else return alloc_in_to_space_slow(word_sz);
3665123Speter}
37200462Sdelphij#endif // SHARE_VM_GC_CMS_PARNEWGENERATION_INLINE_HPP
38200462Sdelphij