hotspot/src/share/vm/runtime/fprofiler.cpp
changeset 26796 666464578742
parent 25949 34557722059b
child 27880 afb974a04396
equal deleted inserted replaced
26706:1e985d72c57f 26796:666464578742
   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");