< prev index next >

src/hotspot/share/gc/parallel/parallelArguments.cpp

Print this page


  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "gc/parallel/parallelArguments.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.hpp"
  29 #include "gc/shared/adaptiveSizePolicy.hpp"
  30 #include "gc/shared/gcArguments.hpp"
  31 #include "gc/shared/genArguments.hpp"
  32 #include "gc/shared/workerPolicy.hpp"
  33 #include "logging/log.hpp"
  34 #include "runtime/globals.hpp"
  35 #include "runtime/globals_extension.hpp"
  36 #include "runtime/java.hpp"
  37 #include "utilities/defaultStream.hpp"
  38 #include "utilities/powerOfTwo.hpp"
  39 
  40 static const double MaxRamFractionForYoung = 0.8;
  41 
  42 size_t ParallelArguments::conservative_max_heap_alignment() {
  43   return compute_heap_alignment();
  44 }
  45 
  46 void ParallelArguments::initialize() {
  47   GCArguments::initialize();
  48   assert(UseParallelGC, "Error");
  49 
  50   // If no heap maximum was requested explicitly, use some reasonable fraction
  51   // of the physical memory, up to a maximum of 1GB.
  52   FLAG_SET_DEFAULT(ParallelGCThreads,
  53                    WorkerPolicy::parallel_worker_threads());
  54   if (ParallelGCThreads == 0) {
  55     jio_fprintf(defaultStream::error_stream(),




  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "gc/parallel/parallelArguments.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.hpp"
  29 #include "gc/shared/adaptiveSizePolicy.hpp"
  30 #include "gc/shared/gcArguments.hpp"
  31 #include "gc/shared/genArguments.hpp"
  32 #include "gc/shared/workerPolicy.hpp"
  33 #include "logging/log.hpp"
  34 #include "runtime/globals.hpp"

  35 #include "runtime/java.hpp"
  36 #include "utilities/defaultStream.hpp"
  37 #include "utilities/powerOfTwo.hpp"
  38 
  39 static const double MaxRamFractionForYoung = 0.8;
  40 
  41 size_t ParallelArguments::conservative_max_heap_alignment() {
  42   return compute_heap_alignment();
  43 }
  44 
  45 void ParallelArguments::initialize() {
  46   GCArguments::initialize();
  47   assert(UseParallelGC, "Error");
  48 
  49   // If no heap maximum was requested explicitly, use some reasonable fraction
  50   // of the physical memory, up to a maximum of 1GB.
  51   FLAG_SET_DEFAULT(ParallelGCThreads,
  52                    WorkerPolicy::parallel_worker_threads());
  53   if (ParallelGCThreads == 0) {
  54     jio_fprintf(defaultStream::error_stream(),


< prev index next >