diff src/share/vm/gc/cms/parNewGeneration.hpp @ 12062:f1ad14991f86

8165857: CMS _overflow_list is missing volatile specifiers. Summary: Change _overflow_list from "oop" to "oopDesc* volatile", both CMS and ParNew. Reviewed-by: kbarrett, tschatzl
author eosterlund
date Tue, 27 Sep 2016 16:43:59 -0400
parents 7bc85612c893
children
line wrap: on
line diff
--- a/src/share/vm/gc/cms/parNewGeneration.hpp	Mon Sep 26 17:49:01 2016 +0300
+++ b/src/share/vm/gc/cms/parNewGeneration.hpp	Tue Sep 27 16:43:59 2016 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2016, 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
@@ -323,7 +323,7 @@
   // A list of from-space images of to-be-scanned objects, threaded through
   // klass-pointers (klass information already copied to the forwarded
   // image.)  Manipulated with CAS.
-  oop _overflow_list;
+  oopDesc* volatile _overflow_list;
   NOT_PRODUCT(ssize_t _num_par_pushes;)
 
   // This closure is used by the reference processor to filter out