public class InstalledCodeBuilder extends Object
It allocates executable memory for the machine code + the constants. In addition it allocates data memory (not on the regular heap!) for the needed system objects: code chunk infos, encoded pointer map for the constants.
The SubstrateInstalledCode also acts as an allocator to allocate all these system objects.
| Modifier and Type | Class and Description |
|---|---|
static class |
InstalledCodeBuilder.ConstantsWalker
The walker for the GC to visit object references in the installed code.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.graalvm.word.Pointer |
code |
| Constructor and Description |
|---|
InstalledCodeBuilder(SharedRuntimeMethod method,
org.graalvm.compiler.code.CompilationResult compilation,
SubstrateInstalledCode installedCode,
Map<SharedMethod,InstalledCodeBuilder> allInstalledCode) |
InstalledCodeBuilder(SharedRuntimeMethod method,
org.graalvm.compiler.code.CompilationResult compilation,
SubstrateInstalledCode installedCode,
Map<SharedMethod,InstalledCodeBuilder> allInstalledCode,
boolean testTrampolineJumps) |
| Modifier and Type | Method and Description |
|---|---|
SubstrateInstalledCode |
getInstalledCode() |
void |
install() |
public InstalledCodeBuilder(SharedRuntimeMethod method, org.graalvm.compiler.code.CompilationResult compilation, SubstrateInstalledCode installedCode, Map<SharedMethod,InstalledCodeBuilder> allInstalledCode)
public InstalledCodeBuilder(SharedRuntimeMethod method, org.graalvm.compiler.code.CompilationResult compilation, SubstrateInstalledCode installedCode, Map<SharedMethod,InstalledCodeBuilder> allInstalledCode, boolean testTrampolineJumps)
public SubstrateInstalledCode getInstalledCode()
public void install()