OLD | NEW |
1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // The runtime parameters. | 310 // The runtime parameters. |
311 ::common::InflatedAsanParameters params_; | 311 ::common::InflatedAsanParameters params_; |
312 | 312 |
313 // The tick counter when the runtime was created. This is used for | 313 // The tick counter when the runtime was created. This is used for |
314 // bracketing valid alloc and free ticks values. | 314 // bracketing valid alloc and free ticks values. |
315 uint32_t starting_ticks_; | 315 uint32_t starting_ticks_; |
316 | 316 |
317 // The set of thread IDs that have been seen in the current process. | 317 // The set of thread IDs that have been seen in the current process. |
318 // This is used to validate thread IDs in a block trailer. | 318 // This is used to validate thread IDs in a block trailer. |
319 base::Lock thread_ids_lock_; | 319 base::Lock thread_ids_lock_; |
320 base::hash_set<uint32_t> thread_ids_; // Under thread_ids_lock_. | 320 std::unordered_set<uint32_t> thread_ids_; // Under thread_ids_lock_. |
321 | 321 |
322 // A random key that is generated on object creation. This is used for | 322 // A random key that is generated on object creation. This is used for |
323 // correlating duplicate crash reports on the back-end. | 323 // correlating duplicate crash reports on the back-end. |
324 const uint64_t random_key_; | 324 const uint64_t random_key_; |
325 | 325 |
326 // The crash reporter in use. This will be left null if no crash reporter | 326 // The crash reporter in use. This will be left null if no crash reporter |
327 // is available. | 327 // is available. |
328 std::unique_ptr<ReporterInterface> crash_reporter_; | 328 std::unique_ptr<ReporterInterface> crash_reporter_; |
329 | 329 |
330 DISALLOW_COPY_AND_ASSIGN(AsanRuntime); | 330 DISALLOW_COPY_AND_ASSIGN(AsanRuntime); |
331 }; | 331 }; |
332 | 332 |
333 } // namespace asan | 333 } // namespace asan |
334 } // namespace agent | 334 } // namespace agent |
335 | 335 |
336 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_ | 336 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_ |
OLD | NEW |