Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
f835dfa8
Commit
f835dfa8
authored
Feb 23, 2014
by
Chris Kennelly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from Constellation/fix-segv
Ensure families is not nullptr before using it
parents
254a6f9a
45b79c3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
AUTHORS
AUTHORS
+1
-0
CONTRIBUTORS
CONTRIBUTORS
+1
-0
benchmark.cc
src/benchmark.cc
+1
-0
No files found.
AUTHORS
View file @
f835dfa8
...
@@ -14,3 +14,4 @@ Dominic Hamon <dma@stripysock.com>
...
@@ -14,3 +14,4 @@ Dominic Hamon <dma@stripysock.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Google Inc.
Google Inc.
Oleksandr Sochka <sasha.sochka@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Yusuke Suzuki <utatane.tea@gmail.com>
CONTRIBUTORS
View file @
f835dfa8
...
@@ -28,3 +28,4 @@ Dominic Hamon <dma@stripysock.com>
...
@@ -28,3 +28,4 @@ Dominic Hamon <dma@stripysock.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Pierre Phaneuf <pphaneuf@google.com>
Pierre Phaneuf <pphaneuf@google.com>
Yusuke Suzuki <utatane.tea@gmail.com>
src/benchmark.cc
View file @
f835dfa8
...
@@ -757,6 +757,7 @@ void Benchmark::FindBenchmarks(const std::string& spec,
...
@@ -757,6 +757,7 @@ void Benchmark::FindBenchmarks(const std::string& spec,
}
}
mutex_lock
l
(
&
benchmark_mutex
);
mutex_lock
l
(
&
benchmark_mutex
);
if
(
families
==
nullptr
)
return
;
// There's no families.
for
(
Benchmark
*
family
:
*
families
)
{
for
(
Benchmark
*
family
:
*
families
)
{
if
(
family
==
nullptr
)
continue
;
// Family was deleted
if
(
family
==
nullptr
)
continue
;
// Family was deleted
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment