src/runtime/exceptions.cpp

src/runtime/exceptions.cpp

file · Source (opens in a new tab)

No documentation comment.

Members

__attribute__

public · function · Source (opens in a new tab)

__attribute__((noinline)) void sun_eh_throw(const ExceptionTypeDescriptor *type

No documentation comment.

if

public · function · Source (opens in a new tab)

if(!payload||record->value.type)

No documentation comment.

Related: payload, record

moveValue

public · function · Source (opens in a new tab)

void moveValue(ExceptionValue *destination, ExceptionValue *source) noexcept

Moves the bounded payload without invoking user code.

Related: ExceptionValue

propagate

public · function · Source (opens in a new tab)

void propagate(PropagationRecord *record)

Initializes the stable native header only after the value is ready to propagate.

Related: PropagationRecord

propagate

public · function · Source (opens in a new tab)

propagate(record)

No documentation comment.

Related: record

releaseRecord

public · function · Source (opens in a new tab)

void releaseRecord(_Unwind_Reason_Code, _Unwind_Exception *exception) noexcept

Releases a record without moving or interpreting private native unwind fields.

reservedState

public · function · Source (opens in a new tab)

sun::runtime::ThreadExceptionState & reservedState() noexcept

Interprets storage supplied by the linked program without allocating memory.

Related: sun::runtime::ThreadExceptionState

sun_eh_initialize

public · function · Source (opens in a new tab)

void sun_eh_initialize() noexcept

Selects the thread's reserved base record on first use; repeated calls are safe.

sun_eh_matches

public · function · Source (opens in a new tab)

bool sun_eh_matches(const ExceptionTypeDescriptor *concrete, const ExceptionTypeDescriptor *handler) noexcept

No documentation comment.

Related: ExceptionTypeDescriptor

sun_eh_pop

public · function · Source (opens in a new tab)

void sun_eh_pop(PropagationRecord *previous) noexcept

No documentation comment.

Related: PropagationRecord

sun_eh_push

public · function · Source (opens in a new tab)

PropagationRecord * sun_eh_push(PropagationRecord *storage) noexcept

No documentation comment.

Related: PropagationRecord

sun_eh_raise

public · function · Source (opens in a new tab)

void sun_eh_raise(ExceptionValue *value)

No documentation comment.

Related: ExceptionValue

sun_eh_take

public · function · Source (opens in a new tab)

void sun_eh_take(_Unwind_Exception *exception, ExceptionValue *destination) noexcept

No documentation comment.

Related: ExceptionValue

sun_eh_terminate

public · function · Source (opens in a new tab)

void sun_eh_terminate() noexcept

Terminates without invoking user cleanup when a runtime boundary is violated.

sun_eh_terminate_exception

public · function · Source (opens in a new tab)

void sun_eh_terminate_exception(_Unwind_Exception *exception) noexcept

Reports the actual escaping propagation value before terminating.

threadState

public · function · Source (opens in a new tab)

sun::runtime::ThreadExceptionState & threadState() noexcept

Returns the thread's initialized transport state.

Related: sun::runtime::ThreadExceptionState

validateType

public · function · Source (opens in a new tab)

void validateType(const ExceptionTypeDescriptor *type) noexcept

Checks the compiler/runtime payload contract before accessing inline storage.

Related: ExceptionTypeDescriptor

validateType

public · function · Source (opens in a new tab)

validateType(type)

No documentation comment.

Related: type

payload

public · variable · Source (opens in a new tab)

const void* payload {
  sun_eh_initialize()

No documentation comment.

Related: sun_eh_initialize

record

public · variable · Source (opens in a new tab)

auto* record = threadState().throwTarget

No documentation comment.

Related: threadState

throwReturnAddress

public · variable · Source (opens in a new tab)

const auto throwReturnAddress = reinterpret_cast<std::uintptr_t>(
      __builtin_extract_return_addr(__builtin_return_address(0)))

No documentation comment.

type

public · variable · Source (opens in a new tab)

record value type = type

No documentation comment.

Related: record