removed dummyTaskRecord.
authorJerome Dochez <jedo@google.com>
Thu, 1 Aug 2019 20:31:46 +0000 (13:31 -0700)
committerJerome Dochez <jedo@google.com>
Fri, 2 Aug 2019 17:14:56 +0000 (17:14 +0000)
commit3ebf0d36b94867b45916f347e5bba7c1721430ef
treed3651cff4cbfbd42e82e70fd7896a10f8faff5c3
parentefcfb8dadfb647d876ba0881ff35098d9904868a
removed dummyTaskRecord.

it prevented classloaders to be gc'ed when users switched
classpath (by adding/removing a plugin for instance).

Test: Adapted existing.
Fixes: 138649175
Change-Id: I364d2accd8773879560a99f626900f67b656c87f
(cherry picked from commit 9fe43fca763d0a05f4baa59147c1f9ff2d707633)
build-system/gradle-core/src/main/java/com/android/build/gradle/internal/profile/TaskProfilingRecord.kt
build-system/gradle-core/src/main/java/com/android/build/gradle/internal/tasks/Workers.kt
build-system/gradle-core/src/test/java/com/android/build/gradle/internal/profile/TaskProfilingRecordTest.kt
build-system/gradle-core/src/test/java/com/android/build/gradle/internal/profile/WorkerProfilingRecordTest.kt