Details
- Reviewers
gerard-majax - Commits
- rMOZILLACENTRAL1c57033291da: Bug 1957749 - Detach Linux sandbox broker threads if needed to avoid memory…
- Bugzilla Bug ID
- 1957749
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
Event Timeline
This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!
| security/sandbox/linux/gtest/TestBroker.cpp | ||
|---|---|---|
| 720 | That is a very good point. If I don't Terminate(), this could intermittently fail because too many threads didn't exit yet. But if I do Terminate(), then that will pthread_join the threads and the test won't be useful because it won't provoke the bug. Maybe it wouldn't actually fail that way in practice, and maybe those earlier failures of the fd leak test were because of this memory leak and not because all of those threads were still running… but in theory it could start most or all of those 16k threads before any of them are ever scheduled. I can't think of a good way to fix this right now, so I think I'll just disable the test and file a followup bug. | |