changeset 7299:bd8725e80355

8074561: Wrong volatile qualifier for field ClassLoaderDataGraphKlassIteratorAtomic::_next_klass Reviewed-by: mgerdin, stefank
author asiebenborn
date Fri, 06 Mar 2015 16:47:46 +0100
parents 9b582718fbea
children 0643c076b6c3
files src/share/vm/classfile/classLoaderData.cpp src/share/vm/classfile/classLoaderData.hpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoaderData.cpp	Thu Apr 09 10:16:45 2015 -0700
+++ b/src/share/vm/classfile/classLoaderData.cpp	Fri Mar 06 16:47:46 2015 +0100
@@ -882,7 +882,7 @@
 }
 
 Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() {
-  Klass* head = (Klass*)_next_klass;
+  Klass* head = _next_klass;
 
   while (head != NULL) {
     Klass* next = next_klass_in_cldg(head);
--- a/src/share/vm/classfile/classLoaderData.hpp	Thu Apr 09 10:16:45 2015 -0700
+++ b/src/share/vm/classfile/classLoaderData.hpp	Fri Mar 06 16:47:46 2015 +0100
@@ -307,7 +307,7 @@
 
 // An iterator that distributes Klasses to parallel worker threads.
 class ClassLoaderDataGraphKlassIteratorAtomic : public StackObj {
-  volatile Klass* _next_klass;
+ Klass* volatile _next_klass;
  public:
   ClassLoaderDataGraphKlassIteratorAtomic();
   Klass* next_klass();