Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8299385

Memory wasted to java.lang.module.ModuleDescriptor$Version

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      There are a lot of duplicate instances of ModuleDescriptor$Version in medium-size project, which waste memory

      According to a profiler in a project with several hundred jars (more than half of them have the same version) there are several thousands instances if ModuleDescriptor$Version, each using 208 bytes, most of them are duplicates

      Therefore, the total waste amounts to about a megabyte

      interestingly, there is a deduplication mechanizm in jdk.internal.module.Builder#version, but as I understans it applies only to system jars



            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: