changeset 8332:e8a49af8e478

8077414: PSPromotionLAB _state is unintialized Summary: Initialize _state to zero_size Reviewed-by: brutisso, stefank Contributed-by: Eric Caspole <eric.caspole@oracle.com>
author ecaspole
date Fri, 10 Apr 2015 10:55:07 -0400
parents 3f6e2971ac5b
children a5f2404bab96
files src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/parallelScavenge/psPromotionLAB.hpp	Wed Apr 08 15:49:29 2015 +0300
+++ b/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.