-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make MethodProbe
s use MethodHandle
s over reflection (HZ-3024)
#25279
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
4d90beb
Try out MethodProbes
JackPGreen 0a90cc0
Refactor
JackPGreen 670f19a
Add fix for static methods
JackPGreen 0420650
Refactor
JackPGreen 9637a79
Remove `bindTo`
JackPGreen 14254b6
Refactor `int` constants to `enum`
JackPGreen b89e83b
Refactor
JackPGreen f93136f
Refactor
JackPGreen e4af74b
REVERT
JackPGreen 0a86747
Swap to `invokeExact`
JackPGreen 799a8ab
Try out MethodProbes
JackPGreen 80c6c5e
Refactor
JackPGreen 990c185
Add fix for static methods
JackPGreen 70c5306
Refactor
JackPGreen b3e47ad
Remove `bindTo`
JackPGreen 2dd9a48
Refactor `int` constants to `enum`
JackPGreen b2402b1
Refactor
JackPGreen 67ab6eb
Refactor
JackPGreen 8c7ae5a
REVERT
JackPGreen 6a5e367
Swap to `invokeExact`
JackPGreen 5db409e
Merge branch 'probe-method-handles' of https://github.com/JackPGreen/…
JackPGreen 308068c
Revert `EMPTY_ARGS`
JackPGreen 6fe9b79
REVERT
JackPGreen 24fc1f0
Fix unchecked class issues
JackPGreen 70379d7
Fix test types
JackPGreen 652d05a
final if possible
JackPGreen d9e54b1
Make Probes `throw` `throwable`, not `exception`
JackPGreen 9ffd2df
Calculate `primitive` flag dynamically
JackPGreen fb7c291
Support `invokeExact`
JackPGreen 3feebf6
Roll back to reflection in some cases
JackPGreen ba90835
Refactor
JackPGreen fab31e1
Refactor
JackPGreen 1a02dfd
Javadoc
JackPGreen 7cc5136
Add `LambdaMetafactory`
JackPGreen 4cb0077
Checkstyle
JackPGreen a00165c
Checkstyle
JackPGreen 15ca076
Javadoc
JackPGreen fb5db6a
Split ProbeUtils enum & utility functionality
JackPGreen 5fccd6f
REVERT
JackPGreen 00afd56
Checkstyle
JackPGreen c437190
Remove Javadoc
JackPGreen 845a41e
Constructor visibility
JackPGreen 9fd3a03
Checkstyle
JackPGreen 2c43ac7
Add diag method
JackPGreen 943c494
Replace `throw Throwable` with `throw Exception`
JackPGreen 63ce564
Remove `final` from method paramaters
JackPGreen File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the type system is enriched with the other primitive types, you can use a VarHandle and use the same technique to prevent litter as with the MethodProbe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it already did for some reason.
Raised separately, although a very easy change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the type enrichment can be left for a future PR