3 public static void printInt(int x) {
4 String s = String.valueOf(x);
8 public static native void gc();
10 public static native long currentTimeMillis();
12 public static native long microTimes();
14 public static native long getticks();
16 public static native void printString(String s);
18 public static void println(String s) {
19 System.printString(s + "\n");
22 public static void println(int o) {
23 System.printString("" + o + "\n");
26 public static void println(double o) {
27 System.printString("" + o + "\n");
30 public static void println(long o) {
31 System.printString("" + o + "\n");
34 public static void println() {
35 System.printString("\n");
38 public static void print(String s) {
39 System.printString(s);
42 public static void print(Object o) {
43 System.printString("" + o);
46 public static void print(int o) {
47 System.printString("" + o);
50 public static void print(double o) {
51 System.printString("" + o);
54 public static void print(long o) {
55 System.printString("" + o);
58 public static void error() {
60 .printString("Error (Use Breakpoint on ___System______error method for more information!)\n");
63 public static native void exit(int status);
65 public static native void printI(int status);
67 public static native void clearPrefetchCache();
69 public static native void rangePrefetch(Object o, short[] offsets);
71 public static native void deepArrayCopy(Object dst, Object src);
73 public static native void Assert(boolean status);
75 /* Only used for microbenchmark testing of SingleTM version */
76 public static native void logevent(int event);
78 public static native void logevent();
80 /* Only used for microbenchmark testing of SingleTM version */
81 public static native void initLog();
83 public static native void flushToFile(int threadid);
85 /* Only used for microbenchmark testing of SingleTM version */
87 public static native void arraycopy(Object src, int srcPos, Object dst, int destPos, int length);
89 // for disjoint reachability analysis
90 public static void genReach();