| Index: runtime/vm/profiler_service.cc
|
| diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc
|
| index 12699165e77093718595c33cae73c96a18d3f92b..66602a763f6f22180c0b54d6c9ebe6797a912e4d 100644
|
| --- a/runtime/vm/profiler_service.cc
|
| +++ b/runtime/vm/profiler_service.cc
|
| @@ -1101,6 +1101,7 @@ class ProfileCodeInlinedFunctionsCache : public ValueObject {
|
| TokenPosition* token_position) {
|
| const intptr_t offset = OffsetForPC(pc, code, sample, frame_index);
|
| CacheEntry* cache_entry = &cache_[NextFreeIndex()];
|
| + cache_entry->Reset();
|
| cache_entry->pc = pc;
|
| cache_entry->offset = offset;
|
| code.GetInlinedFunctionsAtInstruction(
|
| @@ -1151,6 +1152,8 @@ class ProfileCodeInlinedFunctionsCache : public ValueObject {
|
| void Reset() {
|
| pc = 0;
|
| offset = 0;
|
| + inlined_functions.Clear();
|
| + inlined_token_positions.Clear();
|
| }
|
| uword pc;
|
| intptr_t offset;
|
|
|