Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make(#soa[dynamic]) doesn't set allocator, but make([dynamic]) does #4509

Closed
gco-bmx opened this issue Nov 24, 2024 · 0 comments
Closed

make(#soa[dynamic]) doesn't set allocator, but make([dynamic]) does #4509

gco-bmx opened this issue Nov 24, 2024 · 0 comments
Labels
replicated We were able to replicate the bug.

Comments

@gco-bmx
Copy link

gco-bmx commented Nov 24, 2024

Expected Behavior

soa_tokens := make(#soa[dynamic]Token)
tokens := make([dynamic]Token)

I'd expect that in both the above cases that, the dynamic arrays would have there allocator set, or both would not

Current Behavior

from debugger
soa_token allocator is not set
tokens allocator is set

  • Operating System & Odin Version:

      Odin:    dev-2024-11:e607cbe93
      OS:      Windows 10 Professional (version: 22H2), build 19045.5131
      CPU:     Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
      RAM:     32685 MiB
      Backend: LLVM 18.1.8
    
@Kelimion Kelimion added the replicated We were able to replicate the bug. label Nov 24, 2024
Kelimion added a commit that referenced this issue Nov 24, 2024
FourteenBrush pushed a commit to FourteenBrush/Odin that referenced this issue Nov 30, 2024
flysand7 pushed a commit to flysand7/Odin that referenced this issue Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
replicated We were able to replicate the bug.
Projects
None yet
Development

No branches or pull requests

2 participants