|
POSIX: don't allocate memory after forking.
Previously we would allocate memory in the child process. However, the
allocation might have happened while the malloc lock was held,
resulting in a deadlock.
This patch removes allocation from the child but probably makes Mac's
startup time slower until a Mac person can implement
dir_reader_posix.h.
TEST=Unittest for new code
BUG= 36678
Total comments: 7
Total comments: 52
Total comments: 21
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+497 lines, -117 lines) |
Patch |
 |
M |
base/base.gyp
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/base.gypi
|
View
|
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/dir_reader_fallback.h
|
View
|
4
5
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/dir_reader_linux.h
|
View
|
1
2
3
4
5
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/dir_reader_posix.h
|
View
|
1
2
3
4
5
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/dir_reader_posix_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+91 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/file_descriptor_shuffle.h
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/file_descriptor_shuffle.cc
|
View
|
1
2
3
|
2 chunks |
+24 lines, -12 lines |
0 comments
|
Download
|
 |
M |
base/process_util.h
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
base/process_util_posix.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+176 lines, -96 lines |
0 comments
|
Download
|
 |
M |
base/process_util_unittest.cc
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|