sun::abi::AbiValidationScope

sun::abi::AbiValidationScope

class · Source (opens in a new tab)

class sun::abi::AbiValidationScope

Owns the ABI checker for one compilation and makes it available through AbiCompatibilityChecker::current() on the calling thread.

Keep this scope alive across dependency preflight and compilation so both phases share validation caches, imported requirements, and warning state.

A nested scope uses a fresh checker for a dependency build. Destruction restores the previous checker, including when a build throws, so the nested build cannot overwrite the parent compilation's state. Scopes must be destroyed in reverse construction order on the same thread.

Public Functions

AbiValidationScope

AbiValidationScope(const AbiValidationScope &)=delete

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

sun::abi::AbiValidationScope::AbiValidationScope(const AbiValidationScope &)=delete

Keeps scope ownership tied to its original stack lifetime.

AbiValidationScope(CompilationContext context)

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

sun::abi::AbiValidationScope::AbiValidationScope(CompilationContext context)

Starts an isolated compilation on this thread.

Related: CompilationContext

operator=

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

AbiValidationScope & sun::abi::AbiValidationScope::operator=(const AbiValidationScope &)=delete

Prevents replacing a live thread-local scope.

Related: AbiValidationScope

~AbiValidationScope

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

sun::abi::AbiValidationScope::~AbiValidationScope()

Restores the parent compilation, including its warnings and imports.

Private Fields

checker_

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

AbiCompatibilityChecker sun::abi::AbiValidationScope::checker_

No documentation comment.

Related: AbiCompatibilityChecker

currentChecker_

private · variable · static · Source (opens in a new tab)

AbiCompatibilityChecker * sun::abi::AbiValidationScope::currentChecker_ =
    nullptr

No documentation comment.

Related: AbiCompatibilityChecker

previous_

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

AbiCompatibilityChecker* sun::abi::AbiValidationScope::previous_

No documentation comment.

Related: AbiCompatibilityChecker

Private Friends

AbiCompatibilityChecker

private · friend · Source (opens in a new tab)

friend class AbiCompatibilityChecker

No documentation comment.