37d6606852
Previously, when snapshotting the classpath with `ClasspathEntrySnapshotTransform`, for each jar we load all classes in memory at once. This was needed to detect inaccessible classes (classes that don't impact incremental compilation and therefore don't need to be snapshotted). To reduce memory consumption, this commit updates the algorithm such that we can now load one class at a time while still being able to detect inaccessible classes. In addition, we now read jar files with `java.util.zip.ZipFile` API instead of `java.util.zip.ZipInputStream` to avoid current JDK bugs with `ZipInputStream` (e.g., https://bugs.openjdk.org/browse/JDK-8298530). ^KT-57757 Fixed ^KT-57767 Fixed