aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/RunfilesProvider.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-04-11 14:55:28 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-11 14:57:41 -0700
commit7f15b6880a8468f6786fa02a2debacc155402138 (patch)
treed1ef36a81100699f7e58a4be5c6d4dbd21c3149e /src/main/java/com/google/devtools/build/lib/analysis/RunfilesProvider.java
parentbfd89d6393fd56c92c0b31b19d7ec78d8da9141f (diff)
Remove all callers of ArtifactRoot.asSourcePath from production code besides the ones in SkyframeExecutor, called once for each Root in the package path list. This ensures there is a single canonical ArtifactRoot for each source root.
It is still the case that every Package loaded has its own Root (https://source.bazel.build/bazel/+/master:src/main/java/com/google/devtools/build/lib/packages/Package.java;l=287?q=Package.java), which is a waste of memory, but because of the map inside ArtifactFactory introduced in this change, all Artifacts with the same logical source root share a single ArtifactRoot instance. PiperOrigin-RevId: 192513819
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/RunfilesProvider.java')
0 files changed, 0 insertions, 0 deletions