-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the path for in-memory jdeps files to execution info on demand in…
…stead of storing it in `JavaCompileAction` and `JavaHeaderCompileAction`. Fixes memory overhead caused by `--experimental_inmemory_jdeps_files`. The jdeps path added to the execution info map is novel for a given action, resulting in interning via `SpawnAction#executionInfoInterner` backfiring for `JavaHeaderCompileAction` - we get the interner overhead without the benefit, since entries are never equal. Instead, add the extra map entry when `getExecutionInfo()` is called. This approach is similar to how we implement `--experimental_inmemory_dotd_files`, see `CppCompileAction`. This change means that `--modify_execution_info` can't strip the `internal-inline-outputs` key, which is actually a good thing given that it's internal, and is consistent with in-memory .d files. PiperOrigin-RevId: 615419908 Change-Id: I48a5382007a5a3ebe246817a4723c9cef6314076
- Loading branch information
1 parent
3e8ee27
commit c830f21
Showing
3 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters