src/hotspot/share/jfr/instrumentation/jfrEventClassTransformer.cpp
changeset 51334 cc2c79d22508
parent 50123 f222eba39694
child 52334 a181612f0715
--- a/src/hotspot/share/jfr/instrumentation/jfrEventClassTransformer.cpp	Wed Aug 08 15:31:06 2018 +0200
+++ b/src/hotspot/share/jfr/instrumentation/jfrEventClassTransformer.cpp	Wed Aug 08 15:31:07 2018 +0200
@@ -265,8 +265,8 @@
   AnnotationElementIterator(const InstanceKlass* ik, address buffer, u2 limit) : _ik(ik),
                                                                                  _buffer(buffer),
                                                                                  _limit(limit),
-                                                                                 _next(element_name_offset),
-                                                                                 _current(element_name_offset) {
+                                                                                 _current(element_name_offset),
+                                                                                 _next(element_name_offset) {
     assert(_buffer != NULL, "invariant");
     assert(_next == element_name_offset, "invariant");
     assert(_current == element_name_offset, "invariant");
@@ -319,10 +319,10 @@
 
  public:
   AnnotationIterator(const InstanceKlass* ik, AnnotationArray* ar) : _ik(ik),
+                                                                     _limit(ar != NULL ? ar->length() : 0),
+                                                                     _buffer(_limit > 2 ? ar->adr_at(2) : NULL),
                                                                      _current(0),
-                                                                     _next(0),
-                                                                     _limit(ar != NULL ? ar->length() : 0),
-                                                                     _buffer(_limit > 2 ? ar->adr_at(2) : NULL) {
+                                                                     _next(0) {
     if (_buffer != NULL) {
       _limit -= 2; // subtract sizeof(u2) number of annotations field
     }