< prev index next >

src/share/vm/services/mallocSiteTable.cpp

Print this page

        

@@ -180,12 +180,13 @@
 
 // Access malloc site
 MallocSite* MallocSiteTable::malloc_site(size_t bucket_idx, size_t pos_idx) {
   assert(bucket_idx < table_size, "Invalid bucket index");
   MallocSiteHashtableEntry* head = _table[bucket_idx];
-  for (size_t index = 0; index < pos_idx && head != NULL;
-    index ++, head = (MallocSiteHashtableEntry*)head->next());
+  for (size_t index = 0;
+       index < pos_idx && head != NULL;
+       index++, head = (MallocSiteHashtableEntry*)head->next()) {}
   assert(head != NULL, "Invalid position index");
   return head->data();
 }
 
 // Allocates MallocSiteHashtableEntry object. Special call stack

@@ -254,7 +255,5 @@
     os::naked_yield();
 #endif
   }
   _lock_state = ExclusiveLock;
 }
-
-
< prev index next >