|
|
1
|
|
PPL-LLR-000131
|
|
Initialization and finalization lifecycle
|
The runtime shall initialize shared library facilities before their first supported use and finalize them after their last supported use. Multiple participating translation units shall not cause premature finalization of shared facilities. Thread-specific numerical state shall be initialized and finalized according to the selected thread-support configuration. Each supported native or binding lifecycle protocol shall define the validity of existing objects and borrowed views across finalization and reinitialization, the permitted order of owned-object and managed cleanup, and the live-thread and interruption-state preconditions for those transitions.
|
Numerical constants, resource handlers, and per-thread state must be available throughout the supported lifetime of library objects. Library-level transitions and object-level cleanup are related but distinct: a new period of initialization does not by itself establish validity of an old handle or view.
|
|
|
APPROVED
|
RUNTIME
|
ALL
|
Test, Analysis
|
Inspect initialization ownership and counter transitions. Exercise clients using several translation units, repeated object lifetimes, and supported thread configurations. Confirm that finalization occurs after the last participating initialization owner and that per-thread initialization establishes usable numerical state. Review native and binding protocols for the validity of owned objects and borrowed views, explicit and managed cleanup ordering, active threads and pending interruptions at finalization and reinitialization. Check permitted lifecycle sequences and cleanup effects without treating a stale handle as revived by reinitialization or requiring automatic diagnosis of use outside the stated preconditions.
|
src/Init_defs.hh: initialization-counter and thread-initialization contracts.
src/Init.cc and src/initializer.hh: first-owner initialization, last-owner finalization, and thread-specific initialization.
tests/Polyhedron/threadsafe1.cc and tests/Polyhedron/threadsafe2.cc: thread-specific use scenarios.
|
|
|
|
|
|
2
|
|
PPL-LLR-000132
|
|
Floating-point rounding-state exchange
|
On supported platforms with floating-point rounding control, initialization shall establish the rounding state required by PPL floating-point abstractions and preserve the preceding state for restoration. Restoring that preceding state shall permit the client to resume its own floating-point computations; before further use of affected PPL abstractions, the client shall be able to reestablish the PPL-required state.
|
The library and its client may require different floating-point environments, so ownership of rounding state must be explicit.
|
|
|
APPROVED
|
RUNTIME
|
NATIVE_FP_AVAILABLE
|
Test, Analysis
|
Start from each supported rounding direction, initialize the runtime, exchange between the saved and PPL-required states, and check both the rounding state and representative directed-rounding computations. Inspect supported thread configurations for correct per-thread saved state. Treat platforms without rounding control according to their documented configuration restrictions.
|
src/Init_defs.hh: rounding setup, restoration, and client-use preconditions.
src/Init_inlines.hh: platform-conditional rounding exchange.
src/Init.cc: saved thread rounding state and initialization/finalization changes.
|
|
|
|
|
|
4
|
|
PPL-LLR-000134
|
|
Cooperative computation abandonment
|
At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
|
Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
|
|
|
APPROVED
|
RUNTIME
|
ALL
|
Test, Analysis
|
Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
|
src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch.
src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch.
tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
|
|
|
|
|
|
5
|
|
PPL-LLR-000135
|
|
Watchdog scheduling and cancellation scope
|
Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.
|
Operating-system timer resolution, signal delivery, masked intervals, and scheduling failures constrain the guarantees that a watchdog can provide.
|
|
|
APPROVED
|
RUNTIME
|
ALL
|
Test, Analysis
|
Test positive, zero, negative, and large durations; simultaneous pending events; cancellation; and construction failures. Use controlled timer-system-call failures to verify queue consistency and handler release. Review stale-notification fallback behavior, callback restrictions, and signal-mask restoration without imposing a hard response-time limit.
|
src/Watchdog_defs.hh: duration validation, unsupported configurations, construction cleanup, signal ownership, cancellation, and explicit timing limitations.
src/Watchdog.cc and src/Watchdog_inlines.hh: timer queue and platform behavior.
tests/Watchdog/watchdog1.cc and tests/Watchdog/watchdog2.cc: scheduling and cancellation checks.
|
|
|
|