You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by GitBox <gi...@apache.org> on 2026/07/14 17:59:28 UTC

[GH] (tvm-ffi/junrushao/2026-07-13/objptr-traits): Workflow run "CI" is working again!

The GitHub Actions job "CI" on tvm-ffi.git/junrushao/2026-07-13/objptr-traits has succeeded.
Run started by GitHub user junrushao (triggered by junrushao).

Head commit for run:
a5c5f45269945bbbc29b864813a5c395c7b73f67 / Junru Shao <ju...@nvidia.com>
feat(core): support ObjectPtr in FFI type traits

Architecture:
- Add object-subclass and qualification detection for unqualified Object
  pointees without depending on ObjectRef wrappers.
- Specialize runtime type indexing, subsumption, and TypeTraits for
  ObjectPtr<TObject> so ownership crosses Any and packed-function boundaries.
- Integrate direct pointers with reflected field lifetime, serialization, and
  structural traversal while keeping container shorthand out of this boundary.

Public Interfaces:
- Allow ObjectPtr<TObject> in Any, typed function parameters, reflected fields,
  and containers that explicitly name ObjectPtr storage.
- Add base/derived pointer subsumption and report the pointee runtime type key in
  schemas and conversion diagnostics.

UI/UX:
- None.

Behavioral Changes:
- Copying an ObjectPtr through Any retains the object, while moving transfers
  ownership and clears the source Any value.
- Null pointers map to the ABI None value and casts enforce runtime ancestry.
- Qualified and reference pointee types remain unsupported.

Docs:
- Document direct ObjectPtr FFI use, ownership behavior, qualification limits,
  and Optional's present-null ambiguity in the C++ guide.

Tests:
- Clean Debug tvm_ffi_tests build passed before container redirection was added.
- All 19 ObjectPtr-matching Any, storage, reflection, serialization, variant, and
  structural visitor CTests passed.
- Clean editable build and 450 focused metadata/dataclass Python tests passed.
- Scoped pre-commit hooks passed for all files in this boundary.

Untested Edge Cases:
- Rust bindings, Windows/MSVC, and the full cross-platform test matrix were not
  run for this intermediate boundary.
- Doxygen was not run; the original target tree is known to warn about missing
  documentation on the new ObjectPtr subsumption specialization.
- Stub regeneration still exposes pre-existing mutable-container annotation
  drift, so those unrelated generated edits are deferred.

Co-authored-by: Meghan Cowan <mc...@nvidia.com>
Co-authored-by: Kathryn (Jinqi) Chen <65...@users.noreply.github.com>

Report URL: https://github.com/apache/tvm-ffi/actions/runs/29355291616

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org