< prev index next >

share/gc/serial/serialArguments.cpp

Print this page
rev 1 : G1GC+POGC+NVDIMM Patch with latest comments incorporated from all.


  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 }


  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   if (AllocateOldGenAt != NULL) {
  38     vm_exit_during_initialization("The flag -XX:AllocateOldGenAt can not be used with SerialGC. Only ParallelOldGC and G1GC are supported.", NULL);
  39   }
  40   return create_heap_with_policy<SerialHeap, MarkSweepPolicy>();
  41 }
< prev index next >