Skip to content

[Kernels] migrate-MOGGIntList-to-UnsafePointer#5792

Closed
turakz wants to merge 1 commit into
modular:mainfrom
turakz:5672-migrate-MOGGIntList-to-UnsafePointer
Closed

[Kernels] migrate-MOGGIntList-to-UnsafePointer#5792
turakz wants to merge 1 commit into
modular:mainfrom
turakz:5672-migrate-MOGGIntList-to-UnsafePointer

Conversation

@turakz
Copy link
Copy Markdown
Contributor

@turakz turakz commented Jan 17, 2026

Summary

migrates Mogg/MOGGPrimitives/MOGGIntList.mojo to UnsafePointer.

Test Plan

  • ./bazelw build //max/kernels/... passes
  • ./bazelw test //max/kernels/test/... passes

@turakz turakz requested a review from a team as a code owner January 17, 2026 17:47
@turakz turakz changed the title [Kernels] 5672-migrate-MOGGIntList-to-UnsafePointer [Kernels] migrate-MOGGIntList-to-UnsafePointer Jan 17, 2026
Copy link
Copy Markdown
Member

@JoeLoser JoeLoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but consider my one cleanup comment 👍

Comment thread max/kernels/src/Mogg/MOGGPrimitives/MOGGIntList.mojo Outdated
BEGIN_PUBLIC
[Kernels] 5672-migrate-MOGGIntList-to-UnsafePointer

migrates MOGGIntList.mojo from LegacyUnsafePointer to UnsafePointer

changes:
- struct owned pointer to align with alloc calls (`MutExternalOrigin`)
- refactors static func alloc calls to free func alloc calls
- removes redundant null-check in `fn __del__`
END_PUBLIC

Signed-off-by: turakz <zachary.turak@gmail.com>
@turakz turakz force-pushed the 5672-migrate-MOGGIntList-to-UnsafePointer branch from 74d358e to 1701ae6 Compare January 18, 2026 19:10
Copy link
Copy Markdown
Contributor

@NathanSWard NathanSWard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@NathanSWard
Copy link
Copy Markdown
Contributor

!sync

@modularbot modularbot added the imported-internally Signals that a given pull request has been imported internally. label Jan 18, 2026
@modularbot
Copy link
Copy Markdown
Collaborator

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the main branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

@modularbot modularbot added merged-internally Indicates that this pull request has been merged internally merged-externally Merged externally in public mojo repo labels Jan 18, 2026
@modularbot
Copy link
Copy Markdown
Collaborator

Landed in 1b26a58! Thank you for your contribution 🎉

@turakz turakz deleted the 5672-migrate-MOGGIntList-to-UnsafePointer branch January 20, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

imported-internally Signals that a given pull request has been imported internally. merged-externally Merged externally in public mojo repo merged-internally Indicates that this pull request has been merged internally

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants