public class SubstrateUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubstrateUtil.DiagnosticThunk
The functional interface for a "thunk" that does not allocate.
|
static class |
SubstrateUtil.DiagnosticThunkRegister |
static interface |
SubstrateUtil.Thunk
The functional interface for a "thunk".
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
HOSTED
Field that is true during native image generation, but false at run time.
|
| Constructor and Description |
|---|
SubstrateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assertionsEnabled()
Checks whether assertions are enabled in the VM.
|
static void |
breakpoint(Object arg0) |
static String |
getArchitectureName() |
static String[] |
getArgs(int argc,
org.graalvm.nativeimage.c.type.CCharPointerPointer argv)
Convert C-style to Java-style command line arguments.
|
static FileDescriptor |
getFileDescriptor(FileOutputStream out) |
static boolean |
isPowerOf2(long value)
Fast power of 2 test.
|
static void |
printDiagnostics(Log log,
org.graalvm.word.Pointer sp,
org.graalvm.nativeimage.c.function.CodePointer ip)
Prints extensive diagnostic information to the given Log.
|
static org.graalvm.word.UnsignedWord |
strlen(org.graalvm.nativeimage.c.type.CCharPointer str)
Returns the length of a C
char* string. |
public static final boolean HOSTED
public static String getArchitectureName()
public static FileDescriptor getFileDescriptor(FileOutputStream out)
public static String[] getArgs(int argc, org.graalvm.nativeimage.c.type.CCharPointerPointer argv)
argc - the number of arguments in the argv array.argv - a C char**.public static org.graalvm.word.UnsignedWord strlen(org.graalvm.nativeimage.c.type.CCharPointer str)
char* string.public static boolean assertionsEnabled()
public static void breakpoint(Object arg0)
public static boolean isPowerOf2(long value)
public static void printDiagnostics(Log log, org.graalvm.word.Pointer sp, org.graalvm.nativeimage.c.function.CodePointer ip)