< prev index next >

src/share/vm/services/mallocSiteTable.cpp

Print this page

        

*** 180,191 **** // 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()); assert(head != NULL, "Invalid position index"); return head->data(); } // Allocates MallocSiteHashtableEntry object. Special call stack --- 180,192 ---- // 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()) {} assert(head != NULL, "Invalid position index"); return head->data(); } // Allocates MallocSiteHashtableEntry object. Special call stack
*** 254,260 **** os::naked_yield(); #endif } _lock_state = ExclusiveLock; } - - --- 255,259 ----
< prev index next >