equal
deleted
inserted
replaced
163 int s = size(); |
163 int s = size(); |
164 counters = NEW_C_HEAP_ARRAY(int, s, mtInternal); |
164 counters = NEW_C_HEAP_ARRAY(int, s, mtInternal); |
165 for (int index = 0; index < s; index++) { |
165 for (int index = 0; index < s; index++) { |
166 counters[index] = 0; |
166 counters[index] = 0; |
167 } |
167 } |
168 base = CodeCache::first_address(); |
168 base = CodeCache::low_bound(); |
169 } |
169 } |
170 |
170 |
171 void PCRecorder::record(address pc) { |
171 void PCRecorder::record(address pc) { |
172 if (counters == NULL) return; |
172 if (counters == NULL) return; |
173 assert(CodeCache::contains(pc), "must be in CodeCache"); |
173 assert(CodeCache::contains(pc), "must be in CodeCache"); |