1 // natRuntime.cc - Implementation of native side of Runtime class.
3 /* Copyright (C) 1998, 1999 Cygnus Solutions
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
17 #include <java/lang/Runtime.h>
20 java::lang::Runtime::exit (jint status
)
24 // Make status right for Unix. This is perhaps strange.
25 if (status
< 0 || status
> 255)
29 _Jv_RunAllFinalizers ();
35 java::lang::Runtime::freeMemory (void)
37 return _Jv_GCFreeMemory ();
41 java::lang::Runtime::gc (void)
47 java::lang::Runtime::runFinalization (void)
53 java::lang::Runtime::totalMemory (void)
55 return _Jv_GCTotalMemory ();
59 java::lang::Runtime::traceInstructions (jboolean
)
65 java::lang::Runtime::traceMethodCalls (jboolean
)