platform_build_soong/finder
Jeff Gaston 996716a8e2 Fix hanging of finder_test
Previously there could be an infinite loop in the Finder's db export when
running tests on a system with few cores.

The Finder divides the cache-serialization work amongst cores. On systems with
enough cores, each path in TestFileSystemRoot would get its own core and the
infinite loop in the prefix calculation logic would be avoided. On systems with
fewer cores, the computation of the maximum common path could run forever.

This shouldn't have affected the general usage of the Finder in builds other
than in its unit tests, because the builds don't ask to include the
filesystem root as a path to scan. This should only have affected
finder_test.go which tested the filesystem root anyway.

Bug: 62455338
Test: m -j # which runs unit tests
Change-Id: I7a1467fb32e4538fb96833791180bfbfad5a3911
2017-08-22 14:14:40 -07:00
..
cmd Fail the Finder in case of unexpected fs error 2017-08-15 13:18:24 -07:00
Android.bp Revert "Revert "Cacheable, multithreaded finder."" 2017-08-10 12:20:30 -07:00
finder.go Fix hanging of finder_test 2017-08-22 14:14:40 -07:00
finder_test.go Run the Finder and make its results available to Kati 2017-08-16 14:56:00 -07:00