Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiCodeBlobEvents.cpp @ 1748:3e8fbc61cee8
6978355: renaming for 6961697
Summary: This is the renaming part of 6961697 to keep the actual changes small for review.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Wed, 25 Aug 2010 05:27:54 -0700 |
parents | a528509c992b |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1747:53dbe853fb3a | 1748:3e8fbc61cee8 |
---|---|
112 } | 112 } |
113 | 113 |
114 // check if this starting address has been seen already - the | 114 // check if this starting address has been seen already - the |
115 // assumption is that stubs are inserted into the list before the | 115 // assumption is that stubs are inserted into the list before the |
116 // enclosing BufferBlobs. | 116 // enclosing BufferBlobs. |
117 address addr = cb->instructions_begin(); | 117 address addr = cb->code_begin(); |
118 for (int i=0; i<_global_code_blobs->length(); i++) { | 118 for (int i=0; i<_global_code_blobs->length(); i++) { |
119 JvmtiCodeBlobDesc* scb = _global_code_blobs->at(i); | 119 JvmtiCodeBlobDesc* scb = _global_code_blobs->at(i); |
120 if (addr == scb->code_begin()) { | 120 if (addr == scb->code_begin()) { |
121 return; | 121 return; |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 // record the CodeBlob details as a JvmtiCodeBlobDesc | 125 // record the CodeBlob details as a JvmtiCodeBlobDesc |
126 JvmtiCodeBlobDesc* scb = new JvmtiCodeBlobDesc(cb->name(), cb->instructions_begin(), | 126 JvmtiCodeBlobDesc* scb = new JvmtiCodeBlobDesc(cb->name(), cb->code_begin(), cb->code_end()); |
127 cb->instructions_end()); | |
128 _global_code_blobs->append(scb); | 127 _global_code_blobs->append(scb); |
129 } | 128 } |
130 | 129 |
131 | 130 |
132 // collects a list of CodeBlobs in the CodeCache. | 131 // collects a list of CodeBlobs in the CodeCache. |