src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 "incls/_precompiled.incl"
  26 #include "incls/_g1CollectedHeap.cpp.incl"





















  27 
  28 size_t G1CollectedHeap::_humongous_object_threshold_in_words = 0;
  29 
  30 // turn it on so that the contents of the young list (scan-only /
  31 // to-be-collected) are printed at "strategic" points before / during
  32 // / after the collection --- this is useful for debugging
  33 #define YOUNG_LIST_VERBOSE 0
  34 // CURRENT STATUS
  35 // This file is under construction.  Search for "FIXME".
  36 
  37 // INVARIANTS/NOTES
  38 //
  39 // All allocation activity covered by the G1CollectedHeap interface is
  40 //   serialized by acquiring the HeapLock.  This happens in
  41 //   mem_allocate_work, which all such allocation functions call.
  42 //   (Note that this does not apply to TLAB allocation, which is not part
  43 //   of this interface: it is done by clients of this interface.)
  44 
  45 // Local to this file.
  46 




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 "code/icBuffer.hpp"
  27 #include "gc_implementation/g1/bufferingOopClosure.hpp"
  28 #include "gc_implementation/g1/concurrentG1Refine.hpp"
  29 #include "gc_implementation/g1/concurrentG1RefineThread.hpp"
  30 #include "gc_implementation/g1/concurrentMarkThread.inline.hpp"
  31 #include "gc_implementation/g1/concurrentZFThread.hpp"
  32 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  33 #include "gc_implementation/g1/g1CollectorPolicy.hpp"
  34 #include "gc_implementation/g1/g1MarkSweep.hpp"
  35 #include "gc_implementation/g1/g1OopClosures.inline.hpp"
  36 #include "gc_implementation/g1/g1RemSet.inline.hpp"
  37 #include "gc_implementation/g1/heapRegionRemSet.hpp"
  38 #include "gc_implementation/g1/heapRegionSeq.inline.hpp"
  39 #include "gc_implementation/g1/vm_operations_g1.hpp"
  40 #include "gc_implementation/shared/isGCActiveMark.hpp"
  41 #include "memory/gcLocker.inline.hpp"
  42 #include "memory/genOopClosures.inline.hpp"
  43 #include "memory/generationSpec.hpp"
  44 #include "oops/oop.inline.hpp"
  45 #include "oops/oop.pcgc.inline.hpp"
  46 #include "runtime/aprofiler.hpp"
  47 #include "runtime/vmThread.hpp"
  48 
  49 size_t G1CollectedHeap::_humongous_object_threshold_in_words = 0;
  50 
  51 // turn it on so that the contents of the young list (scan-only /
  52 // to-be-collected) are printed at "strategic" points before / during
  53 // / after the collection --- this is useful for debugging
  54 #define YOUNG_LIST_VERBOSE 0
  55 // CURRENT STATUS
  56 // This file is under construction.  Search for "FIXME".
  57 
  58 // INVARIANTS/NOTES
  59 //
  60 // All allocation activity covered by the G1CollectedHeap interface is
  61 //   serialized by acquiring the HeapLock.  This happens in
  62 //   mem_allocate_work, which all such allocation functions call.
  63 //   (Note that this does not apply to TLAB allocation, which is not part
  64 //   of this interface: it is done by clients of this interface.)
  65 
  66 // Local to this file.
  67