Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp
          +++ new/src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp
   1    1  /*
   2      - * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.
   8    8   *
   9    9   * This code is distributed in the hope that it will be useful, but WITHOUT
  10   10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11   11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12   12   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 151 lines elided ↑ open up ↑
 164  164    OopStarTaskQueue* claimed_stack_depth() {
 165  165      return &_claimed_stack_depth;
 166  166    }
 167  167  
 168  168    bool young_gen_is_full()             { return _young_gen_is_full; }
 169  169  
 170  170    bool old_gen_is_full()               { return _old_gen_is_full; }
 171  171    void set_old_gen_is_full(bool state) { _old_gen_is_full = state; }
 172  172  
 173  173    // Promotion methods
 174      -  oop copy_to_survivor_space(oop o);
      174 +  template<bool promote_immediately> oop copy_to_survivor_space(oop o);
 175  175    oop oop_promotion_failed(oop obj, markOop obj_mark);
 176  176  
 177  177    void reset();
 178  178  
 179  179    void flush_labs();
 180  180    void drain_stacks(bool totally_drain) {
 181  181      drain_stacks_depth(totally_drain);
 182  182    }
 183  183   public:
 184  184    void drain_stacks_cond_depth() {
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX