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