src/share/vm/classfile/classLoaderData.hpp

Print this page
rev 7903 : fix volatile qualifier ClassLoaderDataGraphKlassIteratorAtomic::next_klass

@@ -313,11 +313,11 @@
   void initialize_shared_metaspaces();
 };
 
 // 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();
  private:
   static Klass* next_klass_in_cldg(Klass* klass);