src/runtime/exceptions.cpp
file · Source (opens in a new tab)
No documentation comment.
Members
- __attribute__
- if
- moveValue
- propagate
- propagate
- releaseRecord
- reservedState
- sun_eh_initialize
- sun_eh_matches
- sun_eh_pop
- sun_eh_push
- sun_eh_raise
- sun_eh_take
- sun_eh_terminate
- sun_eh_terminate_exception
- threadState
- validateType
- validateType
- payload
- record
- throwReturnAddress
- type
__attribute__
public · function · Source (opens in a new tab)
__attribute__((noinline)) void sun_eh_throw(const ExceptionTypeDescriptor *typeNo documentation comment.
if
public · function · Source (opens in a new tab)
if(!payload||record->value.type)No documentation comment.
moveValue
public · function · Source (opens in a new tab)
void moveValue(ExceptionValue *destination, ExceptionValue *source) noexceptMoves 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) noexceptReleases a record without moving or interpreting private native unwind fields.
reservedState
public · function · Source (opens in a new tab)
sun::runtime::ThreadExceptionState & reservedState() noexceptInterprets 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() noexceptSelects 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) noexceptNo documentation comment.
Related: ExceptionTypeDescriptor
sun_eh_pop
public · function · Source (opens in a new tab)
void sun_eh_pop(PropagationRecord *previous) noexceptNo documentation comment.
Related: PropagationRecord
sun_eh_push
public · function · Source (opens in a new tab)
PropagationRecord * sun_eh_push(PropagationRecord *storage) noexceptNo 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) noexceptNo documentation comment.
Related: ExceptionValue
sun_eh_terminate
public · function · Source (opens in a new tab)
void sun_eh_terminate() noexceptTerminates 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) noexceptReports the actual escaping propagation value before terminating.
threadState
public · function · Source (opens in a new tab)
sun::runtime::ThreadExceptionState & threadState() noexceptReturns the thread's initialized transport state.
Related: sun::runtime::ThreadExceptionState
validateType
public · function · Source (opens in a new tab)
void validateType(const ExceptionTypeDescriptor *type) noexceptChecks 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().throwTargetNo 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 = typeNo documentation comment.
Related: record