Additional top-level class in compilation unit: StackValueSnippets.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type, annotated by T extends PointerBase> TCStruct annotation | |
| public static < the type, annotated by T extends PointerBase> TCStruct annotation | Returns: pointer to on-stack allocated location for the requested structurenumber of array elements to allocate numberOfElements, Class<T> the requested structure class - must be a compile time constant structType)Reserves a block of memory for array of given |
| public static <T extends PointerBase> T | |
| public static <T extends PointerBase> T |
| StackValue | back to summary |
|---|---|
| private StackValue() | |
| get | back to summary |
|---|---|
| public static <T extends PointerBase> T get(Class<T> structType) Reserves a block of memory for given
file="org/graalvm/nativeimage/StackValue.java" region="withSizeOf"
ComplexValue and then sends it as a regular parameter to another function to compute
absolute value of the number:
file="org/graalvm/nativeimage/StackValue.java" region="ninePlusSixteenSqrt"
| |
| get | back to summary |
|---|---|
| public static <T extends PointerBase> T get(int numberOfElements, Class<T> structType) Reserves a block of memory for array of given
file="org/graalvm/nativeimage/StackValue.java" region="withSizeOfArray"
file="org/graalvm/nativeimage/StackValue.java" region="callIntIntDouble"
| |
| get | back to summary |
|---|---|
| public static <T extends PointerBase> T get(int size) Reserves a block of memory in the stack frame of the method that calls this intrinsic. The
returned pointer is aligned to the same alignment required by the operating system for stack
frames. If the requested size is 0, the method returns
| |
| get | back to summary |
|---|---|
| public static <T extends PointerBase> T get(int numberOfElements, int elementSize) Utility method that performs size arithmetic, otherwise equivalent to
| |