-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove VirtualField agent fallback to weak map #4241
Comments
I meant Line 404 in 635acd4
If we decide to remove the fallback then we have to keep in mind that there are classes that don't have the field. We add field to all subclasses of Runnable . Thread is a Runnable , but doesn't have the fields because it is loaded too early.
|
Field injection could also fail when |
@laurit do you think there's anything to be done here, or should we close it? |
@trask I think we should close this. There are classes that are loaded before field injection is set up and rely on the fallback to function properly, for example |
See discussion at #4218 (comment)
In particular, the benefit of avoiding the fallback is that it can lead to memory leaks if not careful (e.g. #441 and #3027).
One concern about removing the fallback was identified:
I think my comment was not correct:
because it looks like the
javax.decorator.Decorator
hack is just an ignore matcher.@laurit just confirming that I understand your concern correctly, does the concern apply to everything in ignores matchers? and if that's the case, if we remove the fallback, wouldn't tests for any instrumentation that uses a VirtualField key that is in an ignore matcher fail?
The text was updated successfully, but these errors were encountered: