Skip to content

Commit

Permalink
Replace strong interning with weak interning for better GC.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=104494833
  • Loading branch information
mikelalcon authored and dslomov committed Oct 2, 2015
1 parent 4bf2c1a commit 28099de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@Immutable
public final class PackageIdentifier implements Comparable<PackageIdentifier>, Serializable {

private static final Interner<PackageIdentifier> INTERNER = Interners.newStrongInterner();
private static final Interner<PackageIdentifier> INTERNER = Interners.newWeakInterner();

public static PackageIdentifier create(String repository, PathFragment pkgName)
throws LabelSyntaxException {
Expand Down

0 comments on commit 28099de

Please sign in to comment.