8074561: Wrong volatile qualifier for field ClassLoaderDataGraphKlassIteratorAtomic::_next_klass

Reviewed-by: mgerdin, stefank
This commit is contained in:
Axel Siebenborn 2015-03-06 16:47:46 +01:00
parent d0d14d12ca
commit 1a8c911881
2 changed files with 2 additions and 2 deletions

View File

@ -902,7 +902,7 @@ Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass_in_cldg(Klass* klass)
}
Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() {
Klass* head = (Klass*)_next_klass;
Klass* head = _next_klass;
while (head != NULL) {
Klass* next = next_klass_in_cldg(head);

View File

@ -315,7 +315,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
// 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();