-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Unsafe.get()/put(), reorder blocks to optimize fallthrough path
When offheap is enabled and the type of the object being operated on is unknown, there are three possible cases that need to be accounted for regarding the type of the object being operated on for Unsafe.get()/put(): 1.) array object 2.) java/lang/Class object 3.) none of the above Since case (3) is the most likely, we want the block corresponding to this case (directAccessBlock) to be on the fallthrough path. Signed-off-by: midronij <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
32 deletions.
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