Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-8291966
SwitchBootstrap.typeSwitch could be faster
Log In
Resolved
Export
null
XML
Word
Printable
Details
Type:
Enhancement
Resolution:
Fixed
Priority:
P3
Fix Version/s:
21
Affects Version/s:
20
Component/s:
tools
Labels:
None
Subcomponent:
javac
Resolved In Build:
b26
Description
Currently, the typeSwitch bootstrap will produce a MethodHandle that uses a loop to go over the provided labels. That seems unnecessarily slow, it would be better to use either MethodHandles or generated code to do the instanceof checks.
Attachments
Issue Links
links to
Commit
openjdk/jdk/9be5769a
Review
openjdk/jdk/9779
Activity
People
Assignee:
Jan Lahoda
Reporter:
Jan Lahoda
Votes
:
0
Vote for this issue
Watchers:
4
Start watching this issue
Dates
Created:
2022-08-05 06:10
Updated:
2023-06-12 20:46
Resolved:
2023-06-05 03:50