scala.scalanative.runtime

Type members

Classlikes

sealed abstract class Array[T] extends Serializable with Cloneable
Companion:
object
object Array
Companion:
class
final class BooleanArray extends Array[Boolean]
Companion:
object
Companion:
class
object Boxes
final class ByteArray extends Array[Byte]
Companion:
object
object ByteArray
Companion:
class
final class CharArray extends Array[Char]
Companion:
object
object CharArray
Companion:
class
final class DoubleArray extends Array[Double]
Companion:
object
Companion:
class
final class FloatArray extends Array[Float]
Companion:
object
object FloatArray
Companion:
class
object GC

The Boehm GC conservative garbage collector

The Boehm GC conservative garbage collector

See also:
final class IntArray extends Array[Int]
Companion:
object
object IntArray
Companion:
class
object Intrinsics
final class LongArray extends Array[Long]
Companion:
object
object LongArray
Companion:
class
final class MemoryPool

Efficient pool of fixed-size memory pages. Allocations from underlying allocator are performed in big chunks of memory that are sliced into pages of requested size.

Efficient pool of fixed-size memory pages. Allocations from underlying allocator are performed in big chunks of memory that are sliced into pages of requested size.

Pages and chunks are organized in an intrusive linked list way to minimise memory overhead and re-use the same nodes for the whole lifetime of the pool.

Memory is reclaimed back to underlying allocator once the pool is finalized.

Companion:
object
object MemoryPool
Companion:
class
final class MemoryPoolZone(pool: MemoryPool) extends Zone

An optimized implementation of a zone that performs all allocations sequentially in pages that are claimed from memory pool. Larger allocations are allocated using the system allocator and persisted in an array buffer.

An optimized implementation of a zone that performs all allocations sequentially in pages that are claimed from memory pool. Larger allocations are allocated using the system allocator and persisted in an array buffer.

Companion:
object
Companion:
class
sealed class Monitor
Companion:
object
object Monitor
Companion:
class
final class ObjectArray extends Array[Object]
Companion:
object
Companion:
class
final abstract class PrimitiveBoolean
final abstract class PrimitiveByte
final abstract class PrimitiveChar
final abstract class PrimitiveDouble
final abstract class PrimitiveFloat
final abstract class PrimitiveInt
final abstract class PrimitiveLong
final abstract class PrimitiveShort
final abstract class PrimitiveUnit
final abstract class RawPtr
final class ShortArray extends Array[Short]
Companion:
object
object ShortArray
Companion:
class
final class UndefinedBehaviorError extends Error

An exception that is thrown whenever an undefined behavior happens in a checked mode.

An exception that is thrown whenever an undefined behavior happens in a checked mode.

object libc
final class struct extends StaticAnnotation

An annotation that is used to mark classes to be optimized as immutable pass-by-value structures.

An annotation that is used to mark classes to be optimized as immutable pass-by-value structures.

object time
object zlib
object zlibExt
object zlibOps

Value members

Concrete methods

def fromRawPtr[T](rawptr: RawPtr): Ptr[T]

Get monitor for given object.

Get monitor for given object.

def init(argc: Int, rawargv: RawPtr): Array[String]

Initialize runtime with given arguments and return the rest as Java-style array.

Initialize runtime with given arguments and return the rest as Java-style array.

def intrinsic: Nothing

Used as a stub right hand of intrinsified methods.

Used as a stub right hand of intrinsified methods.

def loop(): Unit

Run the runtime's event loop. The method is called from the generated C-style after the application's main method terminates.

Run the runtime's event loop. The method is called from the generated C-style after the application's main method terminates.

def throwClassCast(from: RawPtr, to: RawPtr): Nothing

Called by the generated code in case of incorrect class cast.

Called by the generated code in case of incorrect class cast.

def throwDivisionByZero(): Nothing

Called by the generated code in case of division by zero.

Called by the generated code in case of division by zero.

def throwNoSuchMethod(sig: String): Nothing

Called by the generated code in case of missing method on reflective call.

Called by the generated code in case of missing method on reflective call.

def throwNullPointer(): Nothing

Called by the generated code in case of operations on null.

Called by the generated code in case of operations on null.

def throwOutOfBounds(i: Int): Nothing

Called by the generated code in case of out of bounds on array access.

Called by the generated code in case of out of bounds on array access.

def throwUndefined(): Nothing

Called by the generated code in case of unexpected condition.

Called by the generated code in case of unexpected condition.

def toRawPtr[T](ptr: Ptr[T]): RawPtr

Deprecated methods

@deprecated("Internal API, deprecated for removal", "0.4.1") @alwaysinline

Read type information of given object.

Read type information of given object.

Deprecated
@deprecated("Internal API, deprecated for removal", "0.4.1")
def toClass(rtti: RawPtr): _Class[_]
Deprecated
@deprecated("Internal API, deprecated for removal", "0.4.1") @alwaysinline
def toRawType(cls: Class[_]): RawPtr
Deprecated