From e54ecb1782ca575849bb416b8b936615af0e337a Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Tue, 16 Jul 2019 11:22:18 +0200 Subject: [PATCH] IDEA-216902 High memory usage during Gradle project import: interning temporarily disabled GitOrigin-RevId: 2bde799705b0ffbeb706f1f361462a550aa9a33b --- .../service/project/GradleProjectResolverUtil.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/GradleProjectResolverUtil.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/GradleProjectResolverUtil.java index 868017d070e4..95d35a9db37c 100644 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/GradleProjectResolverUtil.java +++ b/plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/GradleProjectResolverUtil.java @@ -798,11 +798,13 @@ public class GradleProjectResolverUtil { } public static 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) {