IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Java.Externs.java.lang.Runtime Class Reference

Static Public Member Functions

static int availableProcessors (object thisRuntime)
 
static long freeMemory (object thisRuntime)
 
static long totalMemory (object thisRuntime)
 
static long maxMemory (object thisRuntime)
 
static void gc (object thisRuntime)
 
static void traceInstructions (object thisRuntime, bool on)
 
static void traceMethodCalls (object thisRuntime, bool on)
 
static void runFinalization0 ()
 

Detailed Description

Definition at line 29 of file Runtime.cs.

Member Function Documentation

◆ availableProcessors()

static int IKVM.Java.Externs.java.lang.Runtime.availableProcessors ( object thisRuntime)
static

Definition at line 32 of file Runtime.cs.

33 {
34 return Environment.ProcessorCount;
35 }

◆ freeMemory()

static long IKVM.Java.Externs.java.lang.Runtime.freeMemory ( object thisRuntime)
static

Definition at line 37 of file Runtime.cs.

38 {
39 // TODO figure out if there is anything meaningful we can return here
40 return 10 * 1024 * 1024;
41 }

◆ gc()

static void IKVM.Java.Externs.java.lang.Runtime.gc ( object thisRuntime)
static

Definition at line 55 of file Runtime.cs.

56 {
57 GC.Collect();
58 }

◆ maxMemory()

static long IKVM.Java.Externs.java.lang.Runtime.maxMemory ( object thisRuntime)
static

Definition at line 49 of file Runtime.cs.

50 {
51 // spec says: If there is no inherent limit then the value Long.MAX_VALUE will be returned.
52 return Int64.MaxValue;
53 }

◆ runFinalization0()

static void IKVM.Java.Externs.java.lang.Runtime.runFinalization0 ( )
static

Definition at line 68 of file Runtime.cs.

69 {
70 GC.WaitForPendingFinalizers();
71 }

◆ totalMemory()

static long IKVM.Java.Externs.java.lang.Runtime.totalMemory ( object thisRuntime)
static

Definition at line 43 of file Runtime.cs.

44 {
45 // NOTE this really is a bogus number, but we have to return something
46 return GC.GetTotalMemory(false) + freeMemory(thisRuntime);
47 }
static long freeMemory(object thisRuntime)
Definition Runtime.cs:37

◆ traceInstructions()

static void IKVM.Java.Externs.java.lang.Runtime.traceInstructions ( object thisRuntime,
bool on )
static

Definition at line 60 of file Runtime.cs.

61 {
62 }

◆ traceMethodCalls()

static void IKVM.Java.Externs.java.lang.Runtime.traceMethodCalls ( object thisRuntime,
bool on )
static

Definition at line 64 of file Runtime.cs.

65 {
66 }

The documentation for this class was generated from the following file: