Avoid using a TypeCache in the ByteBuddy BytecodeProvider

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.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure