hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp
changeset 30170 c73e90240913
parent 25905 04a3d83cc752
child 30175 543725014c9d
equal deleted inserted replaced
30169:736fe315ddcb 30170:c73e90240913
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    57   void set_end(HeapWord* value)    { _end = value; }
    57   void set_end(HeapWord* value)    { _end = value; }
    58 
    58 
    59   // The shared initialize code invokes this.
    59   // The shared initialize code invokes this.
    60   debug_only(virtual bool lab_is_valid(MemRegion lab) { return false; });
    60   debug_only(virtual bool lab_is_valid(MemRegion lab) { return false; });
    61 
    61 
    62   PSPromotionLAB() : _top(NULL), _bottom(NULL), _end(NULL) { }
    62   PSPromotionLAB() : _top(NULL), _bottom(NULL), _end(NULL), _state(zero_size) { }
    63 
    63 
    64  public:
    64  public:
    65   // Filling and flushing.
    65   // Filling and flushing.
    66   void initialize(MemRegion lab);
    66   void initialize(MemRegion lab);
    67 
    67