8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 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 #include "precompiled.hpp" 26 #include "gc/serial/serialArguments.hpp" 27 #include "gc/serial/serialHeap.hpp" 28 #include "gc/shared/collectorPolicy.hpp" 29 #include "gc/shared/gcArguments.inline.hpp" 30 #include "gc/shared/genCollectedHeap.hpp" 31 32 size_t SerialArguments::conservative_max_heap_alignment() { 33 return GenCollectedHeap::conservative_max_heap_alignment(); 34 } 35 36 CollectedHeap* SerialArguments::create_heap() { 37 return create_heap_with_policy<SerialHeap, MarkSweepPolicy>(); 38 } | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 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 #include "precompiled.hpp" 26 #include "gc/serial/serialArguments.hpp" 27 #include "gc/serial/serialHeap.hpp" 28 #include "gc/shared/gcArguments.inline.hpp" 29 #include "gc/shared/genCollectedHeap.hpp" 30 31 SerialSettings SerialArguments::initialize_heap_flags() { 32 SerialSettings s; 33 34 GenArguments::initialize_heap_flags(s); 35 36 return s; 37 } 38 39 size_t SerialArguments::conservative_max_heap_alignment() { 40 return GenCollectedHeap::conservative_max_heap_alignment(); 41 } 42 43 CollectedHeap* SerialArguments::create_heap() { 44 return new SerialHeap(initialize_heap_flags()); 45 } |