Skip to content

func.go: restore sync.Pool#457

Open
AlexanderYastrebov wants to merge 1 commit into
ebitengine:mainfrom
AlexanderYastrebov:revert-syscallargs-pool
Open

func.go: restore sync.Pool#457
AlexanderYastrebov wants to merge 1 commit into
ebitengine:mainfrom
AlexanderYastrebov:revert-syscallargs-pool

Conversation

@AlexanderYastrebov
Copy link
Copy Markdown

What issue is this addressing?

Updates #451

What type of issue is this addressing?

bug

What this PR does | solves

Revert the sync.Pool removal #452 and copy syscall.a1 into a local variable before taking its address, so the reflect.Value points to an independent location that is not affected by pool recycling.

Revert the sync.Pool removal ebitengine#452 and copy syscall.a1 into a local variable
before taking its address, so the reflect.Value points to an independent location
that is not affected by pool recycling.

Updates ebitengine#451
@hajimehoshi
Copy link
Copy Markdown
Member

@TotallyGamerJet Thoughts?

@TotallyGamerJet
Copy link
Copy Markdown
Collaborator

I think this looks good. I want to test some things with it before approving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants