mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
This commit is contained in:
parent
4b16f8ab94
commit
2a406f3ce5
64 changed files with 488 additions and 488 deletions
|
@ -25,8 +25,8 @@
|
|||
|
||||
package java.lang;
|
||||
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
import jdk.internal.misc.CDS;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
import java.lang.constant.Constable;
|
||||
import java.lang.constant.DynamicConstantDesc;
|
||||
|
@ -8545,7 +8545,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
* @return a {@code Character} instance representing {@code c}.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static Character valueOf(char c) {
|
||||
if (c <= 127) { // must cache
|
||||
return CharacterCache.cache[(int)c];
|
||||
|
@ -8558,7 +8558,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
* @return the primitive {@code char} value represented by
|
||||
* this object.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public char charValue() {
|
||||
return value;
|
||||
}
|
||||
|
@ -11252,7 +11252,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
|||
* the bytes in the specified {@code char} value.
|
||||
* @since 1.5
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static char reverseBytes(char ch) {
|
||||
return (char) (((ch & 0xFF00) >> 8) | (ch << 8));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue