diff -r 5b47f168b948 -r cb578d8c6cba hotspot/src/share/vm/prims/jvmtiCodeBlobEvents.cpp --- a/hotspot/src/share/vm/prims/jvmtiCodeBlobEvents.cpp Fri Feb 19 20:40:20 2016 +0300 +++ b/hotspot/src/share/vm/prims/jvmtiCodeBlobEvents.cpp Fri Feb 19 20:41:36 2016 +0300 @@ -173,9 +173,7 @@ _global_code_blobs = new (ResourceObj::C_HEAP, mtInternal) GrowableArray(50,true); // iterate over the stub code descriptors and put them in the list first. - int index = 0; - StubCodeDesc* desc; - while ((desc = StubCodeDesc::desc_for_index(++index)) != NULL) { + for (StubCodeDesc* desc = StubCodeDesc::first(); desc != NULL; desc = StubCodeDesc::next(desc)) { _global_code_blobs->append(new JvmtiCodeBlobDesc(desc->name(), desc->begin(), desc->end())); }