You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify resource handle patterns and clean up tests
- Remove Kernel._module (ObjectCode reference no longer needed since
KernelHandle keeps library alive via LibraryHandle dependency)
- Simplify Kernel._from_obj signature (remove unused ObjectCode param)
- Replace weakref patterns with direct handle storage:
- KernelAttributes: store KernelHandle instead of weakref to Kernel
- _MemPoolAttributes: store MemoryPoolHandle instead of weakref to _MemPool
- Rename get_kernel_from_library to create_kernel_handle for consistency
- Remove fragile annotation introspection from test_saxpy_arguments
- Update test_mempool_attributes_ownership to reflect new ownership semantics
0 commit comments