| Index: src/perf-jit.h
|
| diff --git a/src/perf-jit.h b/src/perf-jit.h
|
| index 248c9a2eda968f4eeb06c9cf08569b533d495477..25cc3b36866f6595b0debe00392659f74b7903a4 100644
|
| --- a/src/perf-jit.h
|
| +++ b/src/perf-jit.h
|
| @@ -87,9 +87,13 @@ class PerfJitLogger : public CodeEventLogger {
|
| #endif
|
| }
|
|
|
| - FILE* perf_output_handle_;
|
| - uint64_t code_index_;
|
| - void* marker_address_;
|
| + // Per-process singleton file. We assume that there is one main isolate;
|
| + // to determine when it goes away, we keep reference count.
|
| + static base::LazyRecursiveMutex file_mutex_;
|
| + static FILE* perf_output_handle_;
|
| + static uint64_t reference_count_;
|
| + static void* marker_address_;
|
| + static uint64_t code_index_;
|
| };
|
|
|
| #else
|
|
|