--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF3XrKqt53cewEV5UWx0bCntPUebYYwqQZ5A90Yu7Z84OQt%2B8A%40mail.gmail.com.
We haven't tested the performance ourselves, but the sqlite docs say:There are three reasons to set the locking-mode to EXCLUSIVE.
- The application wants to prevent other processes from accessing the database file.
- The number of system calls for filesystem operations is reduced, possibly resulting in a small performance increase.
- WAL databases can be accessed in EXCLUSIVE mode without the use of shared memory.
They don't seem to expect much of an improvement. (But we haven't tested it.)But I want to suggest a fourth possible solution: can we modify the death test logic somehow to run the child process with a different user data dir? I played around with this a bit a few months ago, and realize it would need some upstream changes to GoogleTest to allow the test runner to modify the command line args passed to the child, but that seems ideal to me. If any tests depend on two Chrome processes using the same dir at the same time, that's presumably unintended and should be fixed anyway.
Do the death test failures happen the same way on Mac/Linux and Windows? IIUC, Windows doesn't fork, it re-runs the test from the beginning in the child process and takes a different path through the test. So I don't think it would have the same problem unless death tests are running simultaneously.https://crbug.com/380903149 suggests setting a different `--user-data-dir` in death test child processes, which might help with the Windows approach since the whole setup runs again in the child process.Is it possible to force gtest on other platforms to use the Windows death test approach instead of fork-and-continue?
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CADpj5ozLQLgUvc6SSHq0AY7xqv129SVdB8qJZq5wEKL7SoA3Vg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF3XrKroW4_MAb8%3Drus9q_PJGp44Jbvgu8jDL7X2Ex2_jLyHVg%40mail.gmail.com.
If it's hard to modify gtest, another option would be to detect the --test-child flag (or whatever exact flag death tests add) when parsing --user-data-dir and append a randomized nonce to the dirname.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CADpj5ozLQLgUvc6SSHq0AY7xqv129SVdB8qJZq5wEKL7SoA3Vg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFBRQ41xBsvv3mTosj6hh2XggeRjBJzhtfznqWiVHOPv8g%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAJGRvUoRFxuo7HWEoWc80KNdm9Hm7%2Bw_T5tuCopahNLCg4%3DEvw%40mail.gmail.com.