Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StubSize is the option stub total size at the runtime tail. StubSize = 64 // StubMagic is the mark of options stub. StubMagic = 0xFC )
View Source
const ( OptOffsetDisableSysmon = iota + 1 OptOffsetDisableWatchdog OptOffsetNotEraseInstruction OptOffsetNotAdjustProtect OptOffsetTrackCurrentThread )
options offset of the option stub.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// disable sysmon for implement single thread model.
DisableSysmon bool `toml:"disable_sysmon" json:"disable_sysmon"`
// disable watchdog for implement single thread model.
// it will overwrite the control from upper module.
DisableWatchdog bool `toml:"disable_watchdog" json:"disable_watchdog"`
// not erase runtime instructions after call Runtime_M.Exit.
NotEraseInstruction bool `toml:"not_erase_instruction" json:"not_erase_instruction"`
// not adjust current memory page protect for erase runtime.
NotAdjustProtect bool `toml:"not_adjust_protect" json:"not_adjust_protect"`
// track current thread for test or debug mode.
// it maybe improved the single thread model.
TrackCurrentThread bool `toml:"track_current_thread" json:"track_current_thread"`
}
Options contains options about Gleam-RT.
Click to show internal directories.
Click to hide internal directories.