Repository navigation
Pass Julia's allocation-zeroing bundles through to shadow allocations - #3632
Closed
oscardssmith wants to merge 1 commit into
Closed
oscardssmith wants to merge 1 commit into
oscardssmith wants to merge 1 commit into
Conversation
Julia 1.14 attaches `julia.gc_alloc_ptr_offsets`, `julia.gc_alloc_zeroinit` and `julia.gc_alloc_zeroinit_indirect` operand bundles to its allocations, asking its late GC lowering to null the pointer fields (or zero a region) right after allocation. getInvertedBundles and the bundle use check hit `unreachable` on these unknown tags. Their operands are primal offsets and sizes that a shadow allocation of the same type shares, so copy them like `gc-transition`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wsmoses
reviewed
Nov 14, 2026
wsmoses
left a comment
Member
There was a problem hiding this comment.
Can you also inform enzyme analyses that this means the data has pointers zerod (and thus enzyme.jl need not store root zeros)
This was referenced Nov 14, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Julia 1.14 attaches
julia.gc_alloc_ptr_offsets,julia.gc_alloc_zeroinitandjulia.gc_alloc_zeroinit_indirectoperand bundles to its allocations, asking its late GC lowering to null the pointer fields (or zero a region) right after allocation. getInvertedBundles and the bundle use check hitunreachableon these unknown tags. Their operands are primal offsets and sizes that a shadow allocation of the same type shares, so copy them likegc-transition.(not sufficient, but necessary to get Enzyme working on julia 1.14)
Written by opus 5.5