< prev index next >

src/share/vm/gc/cms/parNewGeneration.hpp

Print this page
rev 11970 : imported patch overflow_list_2
rev 11971 : imported patch overflow_list_2_1
   1 /*
   2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


 306 class ParNewGeneration: public DefNewGeneration {
 307   friend class ParNewGenTask;
 308   friend class ParNewRefProcTask;
 309   friend class ParNewRefProcTaskExecutor;
 310   friend class ParScanThreadStateSet;
 311   friend class ParEvacuateFollowersClosure;
 312 
 313  private:
 314   // The per-worker-thread work queues
 315   ObjToScanQueueSet* _task_queues;
 316 
 317   // Per-worker-thread local overflow stacks
 318   Stack<oop, mtGC>* _overflow_stacks;
 319 
 320   // Desired size of survivor space plab's
 321   PLABStats _plab_stats;
 322 
 323   // A list of from-space images of to-be-scanned objects, threaded through
 324   // klass-pointers (klass information already copied to the forwarded
 325   // image.)  Manipulated with CAS.
 326   oop _overflow_list;
 327   NOT_PRODUCT(ssize_t _num_par_pushes;)
 328 
 329   // This closure is used by the reference processor to filter out
 330   // references to live referent.
 331   DefNewGeneration::IsAliveClosure _is_alive_closure;
 332 
 333   // GC tracer that should be used during collection.
 334   ParNewTracer _gc_tracer;
 335 
 336   static oop real_forwardee_slow(oop obj);
 337   static void waste_some_time();
 338 
 339   void handle_promotion_failed(GenCollectedHeap* gch, ParScanThreadStateSet& thread_state_set);
 340 
 341  protected:
 342 
 343   bool _survivor_overflow;
 344 
 345   bool survivor_overflow() { return _survivor_overflow; }
 346   void set_survivor_overflow(bool v) { _survivor_overflow = v; }


   1 /*
   2  * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


 306 class ParNewGeneration: public DefNewGeneration {
 307   friend class ParNewGenTask;
 308   friend class ParNewRefProcTask;
 309   friend class ParNewRefProcTaskExecutor;
 310   friend class ParScanThreadStateSet;
 311   friend class ParEvacuateFollowersClosure;
 312 
 313  private:
 314   // The per-worker-thread work queues
 315   ObjToScanQueueSet* _task_queues;
 316 
 317   // Per-worker-thread local overflow stacks
 318   Stack<oop, mtGC>* _overflow_stacks;
 319 
 320   // Desired size of survivor space plab's
 321   PLABStats _plab_stats;
 322 
 323   // A list of from-space images of to-be-scanned objects, threaded through
 324   // klass-pointers (klass information already copied to the forwarded
 325   // image.)  Manipulated with CAS.
 326   oopDesc* volatile _overflow_list;
 327   NOT_PRODUCT(ssize_t _num_par_pushes;)
 328 
 329   // This closure is used by the reference processor to filter out
 330   // references to live referent.
 331   DefNewGeneration::IsAliveClosure _is_alive_closure;
 332 
 333   // GC tracer that should be used during collection.
 334   ParNewTracer _gc_tracer;
 335 
 336   static oop real_forwardee_slow(oop obj);
 337   static void waste_some_time();
 338 
 339   void handle_promotion_failed(GenCollectedHeap* gch, ParScanThreadStateSet& thread_state_set);
 340 
 341  protected:
 342 
 343   bool _survivor_overflow;
 344 
 345   bool survivor_overflow() { return _survivor_overflow; }
 346   void set_survivor_overflow(bool v) { _survivor_overflow = v; }


< prev index next >