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 26 # include "incls/_precompiled.incl" 27 # include "incls/_psScavenge.cpp.incl" 28 29 HeapWord* PSScavenge::_to_space_top_before_gc = NULL; 30 int PSScavenge::_consecutive_skipped_scavenges = 0; 31 ReferenceProcessor* PSScavenge::_ref_processor = NULL; 32 CardTableExtension* PSScavenge::_card_table = NULL; 33 bool PSScavenge::_survivor_overflow = false; 34 int PSScavenge::_tenuring_threshold = 0; 35 HeapWord* PSScavenge::_young_generation_boundary = NULL; 36 elapsedTimer PSScavenge::_accumulated_time; 37 GrowableArray<markOop>* PSScavenge::_preserved_mark_stack = NULL; 38 GrowableArray<oop>* PSScavenge::_preserved_oop_stack = NULL; 39 CollectorCounters* PSScavenge::_counters = NULL; 40 41 // Define before use 42 class PSIsAliveClosure: public BoolObjectClosure { 43 public: 44 void do_object(oop p) { 45 assert(false, "Do not call."); 46 } 47 bool do_object_b(oop p) { | 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 "gc_implementation/parallelScavenge/cardTableExtension.hpp" 27 #include "gc_implementation/parallelScavenge/gcTaskManager.hpp" 28 #include "gc_implementation/parallelScavenge/generationSizer.hpp" 29 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp" 30 #include "gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp" 31 #include "gc_implementation/parallelScavenge/psMarkSweep.hpp" 32 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp" 33 #include "gc_implementation/parallelScavenge/psScavenge.inline.hpp" 34 #include "gc_implementation/parallelScavenge/psTasks.hpp" 35 #include "gc_implementation/shared/isGCActiveMark.hpp" 36 #include "gc_implementation/shared/spaceDecorator.hpp" 37 #include "gc_interface/gcCause.hpp" 38 #include "memory/collectorPolicy.hpp" 39 #include "memory/gcLocker.inline.hpp" 40 #include "memory/referencePolicy.hpp" 41 #include "memory/referenceProcessor.hpp" 42 #include "memory/resourceArea.hpp" 43 #include "oops/oop.inline.hpp" 44 #include "oops/oop.psgc.inline.hpp" 45 #include "runtime/biasedLocking.hpp" 46 #include "runtime/fprofiler.hpp" 47 #include "runtime/handles.inline.hpp" 48 #include "runtime/threadCritical.hpp" 49 #include "runtime/vmThread.hpp" 50 #include "runtime/vm_operations.hpp" 51 #include "services/memoryService.hpp" 52 53 54 HeapWord* PSScavenge::_to_space_top_before_gc = NULL; 55 int PSScavenge::_consecutive_skipped_scavenges = 0; 56 ReferenceProcessor* PSScavenge::_ref_processor = NULL; 57 CardTableExtension* PSScavenge::_card_table = NULL; 58 bool PSScavenge::_survivor_overflow = false; 59 int PSScavenge::_tenuring_threshold = 0; 60 HeapWord* PSScavenge::_young_generation_boundary = NULL; 61 elapsedTimer PSScavenge::_accumulated_time; 62 GrowableArray<markOop>* PSScavenge::_preserved_mark_stack = NULL; 63 GrowableArray<oop>* PSScavenge::_preserved_oop_stack = NULL; 64 CollectorCounters* PSScavenge::_counters = NULL; 65 66 // Define before use 67 class PSIsAliveClosure: public BoolObjectClosure { 68 public: 69 void do_object(oop p) { 70 assert(false, "Do not call."); 71 } 72 bool do_object_b(oop p) { |