--- old/src/java.base/share/classes/java/lang/Character.java 2015-06-26 17:30:20.373117116 +0200
+++ new/src/java.base/share/classes/java/lang/Character.java 2015-06-26 17:30:19.829117101 +0200
@@ -30,6 +30,8 @@
import java.util.HashMap;
import java.util.Locale;
+import jdk.internal.HotSpotIntrinsicCandidate;
+
/**
* The {@code Character} class wraps a value of the primitive
* type {@code char} in an object. An object of type
@@ -4569,6 +4571,7 @@
* @return a Character instance representing c.
* @since 1.5
*/
+ @HotSpotIntrinsicCandidate
public static Character valueOf(char c) {
if (c <= 127) { // must cache
return CharacterCache.cache[(int)c];
@@ -4581,6 +4584,7 @@
* @return the primitive {@code char} value represented by
* this object.
*/
+ @HotSpotIntrinsicCandidate
public char charValue() {
return value;
}
@@ -7181,6 +7185,7 @@
* the bytes in the specified char value.
* @since 1.5
*/
+ @HotSpotIntrinsicCandidate
public static char reverseBytes(char ch) {
return (char) (((ch & 0xFF00) >> 8) | (ch << 8));
}