IDEA-216902 High memory usage during Gradle project import: interning temporarily disabled

GitOrigin-RevId: 2bde799705b0ffbeb706f1f361462a550aa9a33b
This commit is contained in:
Anton Makeev
2019-07-16 13:09:41 +03:00
committed by intellij-monorepo-bot
parent db3160961d
commit e54ecb1782
@@ -798,11 +798,13 @@ public class GradleProjectResolverUtil {
}
public static <T> T intern(ProjectResolverContext context, T value) {
if (context == null) {
LOG.warn("ProjectResolverContext should not be null, it is used to intern objects");
return value;
}
return ((DefaultProjectResolverContext)context).intern(value);
// hot fix for hashing issue
return value;
//if (context == null) {
// LOG.warn("ProjectResolverContext should not be null, it is used to intern objects");
// return value;
//}
//return ((DefaultProjectResolverContext)context).intern(value);
}
public static boolean isIdeaTask(final String taskName, @Nullable String group) {