2 @METHODDEFAULT("OUT<IN")
4 public static void printInt(int x) {
5 String s = String.valueOf(x);
9 public static native void gc();
11 public static native long currentTimeMillis();
13 public static native long microTimes();
15 public static native long getticks();
17 public static native void printString(String s);
19 public static void println(@LOC("IN") String s) {
20 System.printString(s + "\n");
23 public static void println(@LOC("IN") int o) {
24 System.printString("" + o + "\n");
27 public static void println(@LOC("IN") double o) {
28 System.printString("" + o + "\n");
31 public static void println(@LOC("IN") long o) {
32 System.printString("" + o + "\n");
35 public static void println() {
36 System.printString("\n");
39 public static void print(@LOC("IN") String s) {
40 System.printString(s);
43 public static void print(Object o) {
44 System.printString("" + o);
47 public static void print(int o) {
48 System.printString("" + o);
51 public static void print(double o) {
52 System.printString("" + o);
55 public static void print(long o) {
56 System.printString("" + o);
59 public static void error() {
61 .printString("Error (Use Breakpoint on ___System______error method for more information!)\n");
64 public static native void exit(int status);
66 public static native void printI(int status);
68 public static native void clearPrefetchCache();
70 public static native void rangePrefetch(Object o, short[] offsets);
72 public static native void deepArrayCopy(Object dst, Object src);
74 public static native void Assert(boolean status);
76 /* Only used for microbenchmark testing of SingleTM version */
77 public static native void logevent(int event);
79 public static native void logevent();
81 /* Only used for microbenchmark testing of SingleTM version */
82 public static native void initLog();
84 public static native void flushToFile(int threadid);
86 /* Only used for microbenchmark testing of SingleTM version */
88 public static native void arraycopy(Object src, int srcPos, Object dst, int destPos, int length);
90 // for disjoint reachability analysis
91 public static void genReach();