Uploaded image for project: 'Hibernate ORM'
  1. HHH-12471

Avoid using a TypeCache in the ByteBuddy BytecodeProvider

    Details

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Class org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl is using two {{TypeCache}}s with Soft references to avoid repeating the same byte buddy operations.

      As far as I see this is very unlikely (impossible?) to be invoked on the same Class as ORM invokes this once per class, yet the Soft references are going to pollute the memory until a critical GC event is triggered.

      Removing the caches seems a nice cleanup.

        Attachments

          Activity

            People

            • Assignee:
              sanne Sanne Grinovero
              Reporter:
              sanne Sanne Grinovero
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: