< prev index next >

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

Print this page
rev 8362 : [mq]: hotspot


  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 "classfile/metadataOnStackMark.hpp"
  27 #include "classfile/stringTable.hpp"
  28 #include "code/codeCache.hpp"
  29 #include "code/icBuffer.hpp"
  30 #include "gc_implementation/g1/bufferingOopClosure.hpp"
  31 #include "gc_implementation/g1/concurrentG1Refine.hpp"
  32 #include "gc_implementation/g1/concurrentG1RefineThread.hpp"
  33 #include "gc_implementation/g1/concurrentMarkThread.inline.hpp"
  34 #include "gc_implementation/g1/g1AllocRegion.inline.hpp"
  35 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  36 #include "gc_implementation/g1/g1CollectorPolicy.hpp"
  37 #include "gc_implementation/g1/g1ErgoVerbose.hpp"
  38 #include "gc_implementation/g1/g1EvacFailure.hpp"
  39 #include "gc_implementation/g1/g1GCPhaseTimes.hpp"
  40 #include "gc_implementation/g1/g1Log.hpp"
  41 #include "gc_implementation/g1/g1MarkSweep.hpp"
  42 #include "gc_implementation/g1/g1OopClosures.inline.hpp"
  43 #include "gc_implementation/g1/g1ParScanThreadState.inline.hpp"
  44 #include "gc_implementation/g1/g1RegionToSpaceMapper.hpp"
  45 #include "gc_implementation/g1/g1RemSet.inline.hpp"
  46 #include "gc_implementation/g1/g1RootProcessor.hpp"
  47 #include "gc_implementation/g1/g1StringDedup.hpp"
  48 #include "gc_implementation/g1/g1YCTypes.hpp"
  49 #include "gc_implementation/g1/heapRegion.inline.hpp"
  50 #include "gc_implementation/g1/heapRegionRemSet.hpp"
  51 #include "gc_implementation/g1/heapRegionSet.inline.hpp"
  52 #include "gc_implementation/g1/vm_operations_g1.hpp"
  53 #include "gc_implementation/shared/gcHeapSummary.hpp"
  54 #include "gc_implementation/shared/gcTimer.hpp"
  55 #include "gc_implementation/shared/gcTrace.hpp"
  56 #include "gc_implementation/shared/gcTraceTime.hpp"
  57 #include "gc_implementation/shared/isGCActiveMark.hpp"




  58 #include "memory/allocation.hpp"
  59 #include "memory/gcLocker.inline.hpp"
  60 #include "memory/generationSpec.hpp"
  61 #include "memory/iterator.hpp"
  62 #include "memory/referenceProcessor.hpp"
  63 #include "oops/oop.inline.hpp"
  64 #include "runtime/atomic.inline.hpp"
  65 #include "runtime/orderAccess.inline.hpp"
  66 #include "runtime/vmThread.hpp"
  67 #include "utilities/globalDefinitions.hpp"
  68 #include "utilities/stack.inline.hpp"
  69 #include "utilities/taskqueue.inline.hpp"
  70 
  71 size_t G1CollectedHeap::_humongous_object_threshold_in_words = 0;
  72 
  73 // turn it on so that the contents of the young list (scan-only /
  74 // to-be-collected) are printed at "strategic" points before / during
  75 // / after the collection --- this is useful for debugging
  76 #define YOUNG_LIST_VERBOSE 0
  77 // CURRENT STATUS
  78 // This file is under construction.  Search for "FIXME".
  79 
  80 // INVARIANTS/NOTES
  81 //
  82 // All allocation activity covered by the G1CollectedHeap interface is
  83 // serialized by acquiring the HeapLock.  This happens in mem_allocate
  84 // and allocate_new_tlab, which are the "entry" points to the
  85 // allocation code from the rest of the JVM.  (Note that this does not
  86 // apply to TLAB allocation, which is not part of this interface: it
  87 // is done by clients of this interface.)
  88 
  89 // Local to this file.




  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 "classfile/metadataOnStackMark.hpp"
  27 #include "classfile/stringTable.hpp"
  28 #include "code/codeCache.hpp"
  29 #include "code/icBuffer.hpp"
  30 #include "gc/g1/bufferingOopClosure.hpp"
  31 #include "gc/g1/concurrentG1Refine.hpp"
  32 #include "gc/g1/concurrentG1RefineThread.hpp"
  33 #include "gc/g1/concurrentMarkThread.inline.hpp"
  34 #include "gc/g1/g1AllocRegion.inline.hpp"
  35 #include "gc/g1/g1CollectedHeap.inline.hpp"
  36 #include "gc/g1/g1CollectorPolicy.hpp"
  37 #include "gc/g1/g1ErgoVerbose.hpp"
  38 #include "gc/g1/g1EvacFailure.hpp"
  39 #include "gc/g1/g1GCPhaseTimes.hpp"
  40 #include "gc/g1/g1Log.hpp"
  41 #include "gc/g1/g1MarkSweep.hpp"
  42 #include "gc/g1/g1OopClosures.inline.hpp"
  43 #include "gc/g1/g1ParScanThreadState.inline.hpp"
  44 #include "gc/g1/g1RegionToSpaceMapper.hpp"
  45 #include "gc/g1/g1RemSet.inline.hpp"
  46 #include "gc/g1/g1RootProcessor.hpp"
  47 #include "gc/g1/g1StringDedup.hpp"
  48 #include "gc/g1/g1YCTypes.hpp"
  49 #include "gc/g1/heapRegion.inline.hpp"
  50 #include "gc/g1/heapRegionRemSet.hpp"
  51 #include "gc/g1/heapRegionSet.inline.hpp"
  52 #include "gc/g1/vm_operations_g1.hpp"
  53 #include "gc/shared/gcHeapSummary.hpp"
  54 #include "gc/shared/gcLocker.inline.hpp"
  55 #include "gc/shared/gcTimer.hpp"
  56 #include "gc/shared/gcTrace.hpp"
  57 #include "gc/shared/gcTraceTime.hpp"
  58 #include "gc/shared/generationSpec.hpp"
  59 #include "gc/shared/isGCActiveMark.hpp"
  60 #include "gc/shared/referenceProcessor.hpp"
  61 #include "gc/shared/taskqueue.inline.hpp"
  62 #include "memory/allocation.hpp"


  63 #include "memory/iterator.hpp"

  64 #include "oops/oop.inline.hpp"
  65 #include "runtime/atomic.inline.hpp"
  66 #include "runtime/orderAccess.inline.hpp"
  67 #include "runtime/vmThread.hpp"
  68 #include "utilities/globalDefinitions.hpp"
  69 #include "utilities/stack.inline.hpp"

  70 
  71 size_t G1CollectedHeap::_humongous_object_threshold_in_words = 0;
  72 
  73 // turn it on so that the contents of the young list (scan-only /
  74 // to-be-collected) are printed at "strategic" points before / during
  75 // / after the collection --- this is useful for debugging
  76 #define YOUNG_LIST_VERBOSE 0
  77 // CURRENT STATUS
  78 // This file is under construction.  Search for "FIXME".
  79 
  80 // INVARIANTS/NOTES
  81 //
  82 // All allocation activity covered by the G1CollectedHeap interface is
  83 // serialized by acquiring the HeapLock.  This happens in mem_allocate
  84 // and allocate_new_tlab, which are the "entry" points to the
  85 // allocation code from the rest of the JVM.  (Note that this does not
  86 // apply to TLAB allocation, which is not part of this interface: it
  87 // is done by clients of this interface.)
  88 
  89 // Local to this file.


< prev index next >