You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constants in BaseTypeSignature reference a ScanResult.
As a result it cannot be garbage collected and after the fix for LoadClass keeps a reference to ScanResult #399 the closed instance's remaining memory footprint has a gravely increased.
In a concurrent situation when using multiple ScanResults this is not threadsafe
It is confusing to have an eventually changing ownership of those constants
The ownership seems to be set up by method return types
The constants in BaseTypeSignature reference a ScanResult.
The ownership seems to be set up by method return types
classgraph/src/main/java/io/github/classgraph/MethodTypeSignature.java
Line 236 in d8c84dc
Is the scanResult reference even required for the native type signatures? Maybe each static constant should be replaced with a value per ScanResult.