- 
                Notifications
    
You must be signed in to change notification settings  - Fork 913
 
VarHandle string encoder #7701
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
base: main
Are you sure you want to change the base?
VarHandle string encoder #7701
Conversation
db27d02    to
    780fafd      
    Compare
  
    
          Codecov Report❌ Patch coverage is  Additional details and impacted files@@             Coverage Diff              @@
##               main    #7701      +/-   ##
============================================
- Coverage     90.12%   90.09%   -0.03%     
- Complexity     7187     7191       +4     
============================================
  Files           814      817       +3     
  Lines         21700    21731      +31     
  Branches       2123     2122       -1     
============================================
+ Hits          19557    19579      +22     
- Misses         1477     1488      +11     
+ Partials        666      664       -2     ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
  | 
    
b9e69c2    to
    ff9ae14      
    Compare
  
    | * <p>This class is internal and is hence not for public use. Its APIs are unstable and can change | ||
| * at any time. | ||
| */ | ||
| abstract class AbstractStringEncoder implements StringEncoder { | 
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.
the code in this class is just moved (cut-and-paste) from StatelessMarshalerUtil
| * <p>This class is internal and is hence not for public use. Its APIs are unstable and can change | ||
| * at any time. | ||
| */ | ||
| final class FallbackStringEncoder implements StringEncoder { | 
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.
the code in this class is just moved (cut-and-paste) from StatelessMarshalerUtil
ff9ae14    to
    c5bd6de      
    Compare
  
    | 
           AI Trask to look at codecov % and consider documenting the --add-opens for end users  | 
    
Note that unlike the
UnsafeStringEncoder, theVarHandleStringEncoderrequires--add-opens=java.base/java.lang=ALL-UNNAMEDsince the VarHandles need access to String internals.Generally users won't do this and so won't get the VarHandle implementation, but the Java agent is able to automatically open these modules (see ModuleOpener.java in that repository).
Java 17 Results
StringMarshalBenchmark Results
PR Branch Results
Main Branch Results
Java 24 Results
StringMarshalBenchmark Results
PR Branch Results
Main Branch Results