test/compiler/dependencies/MonomorphicObjectCall/java/lang/Object.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/compiler/dependencies/MonomorphicObjectCall/java/lang/Object.java Fri Jun 26 17:37:35 2015
--- new/test/compiler/dependencies/MonomorphicObjectCall/java/lang/Object.java Fri Jun 26 17:37:34 2015
*** 23,51 ****
--- 23,59 ----
* questions.
*/
package java.lang;
+ import jdk.internal.HotSpotIntrinsicCandidate;
+
/**
* Slightly modified version of java.lang.Object that replaces
* finalize() by finalizeObject() to avoid overriding in subclasses.
*/
public class Object {
+ @HotSpotIntrinsicCandidate
+ public Object() {}
+
private static native void registerNatives();
static {
registerNatives();
}
+ @HotSpotIntrinsicCandidate
public final native Class<?> getClass();
+ @HotSpotIntrinsicCandidate
public native int hashCode();
public boolean equals(Object obj) {
return (this == obj);
}
+ @HotSpotIntrinsicCandidate
protected native Object clone() throws CloneNotSupportedException;
public String toString() {
return getClass().getName() + "@" + Integer.toHexString(hashCode());
}
test/compiler/dependencies/MonomorphicObjectCall/java/lang/Object.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File