8077414: PSPromotionLAB _state is unintialized
authorecaspole
Fri, 10 Apr 2015 10:55:07 -0400
changeset 30170 c73e90240913
parent 30169 736fe315ddcb
child 30171 a7606ea92e05
8077414: PSPromotionLAB _state is unintialized Summary: Initialize _state to zero_size Reviewed-by: brutisso, stefank Contributed-by: Eric Caspole <eric.caspole@oracle.com>
hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp
--- a/hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp	Wed Apr 08 15:49:29 2015 +0300
+++ b/hotspot/src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp	Fri Apr 10 10:55:07 2015 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -59,7 +59,7 @@
   // The shared initialize code invokes this.
   debug_only(virtual bool lab_is_valid(MemRegion lab) { return false; });
 
-  PSPromotionLAB() : _top(NULL), _bottom(NULL), _end(NULL) { }
+  PSPromotionLAB() : _top(NULL), _bottom(NULL), _end(NULL), _state(zero_size) { }
 
  public:
   // Filling and flushing.