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

fix: wrongly use reflect.growslice() #629

Merged
merged 7 commits into from
May 17, 2024
Merged

fix: wrongly use reflect.growslice() #629

merged 7 commits into from
May 17, 2024

Conversation

AsterDY
Copy link
Collaborator

@AsterDY AsterDY commented May 17, 2024

go1.20 introduces a new API reflect.growslice(), but the third argues num is the increment, instead of the new capacity like old runtime.growslice(). this may introduce unnecessary memory allocation

@AsterDY AsterDY merged commit 1ce4a1e into main May 17, 2024
33 checks passed
@AsterDY AsterDY deleted the fix/growslice branch May 17, 2024 08:06
pellared pushed a commit to open-telemetry/opentelemetry-go-contrib that referenced this pull request May 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/bytedance/sonic](https://togithub.com/bytedance/sonic) |
`v1.11.6` -> `v1.11.7` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fbytedance%2fsonic/v1.11.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fbytedance%2fsonic/v1.11.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fbytedance%2fsonic/v1.11.6/v1.11.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fbytedance%2fsonic/v1.11.6/v1.11.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>bytedance/sonic (github.com/bytedance/sonic)</summary>

###
[`v1.11.7`](https://togithub.com/bytedance/sonic/releases/tag/v1.11.7)

[Compare
Source](https://togithub.com/bytedance/sonic/compare/v1.11.6...v1.11.7)

#### What's Changed

### BugFix

- fix: wrongly use `reflect.growslice()` by
[@&#8203;AsterDY](https://togithub.com/AsterDY) in
[bytedance/sonic#629
- fix: possible oom when encode parallel in go1.16 by
[@&#8203;liuq19](https://togithub.com/liuq19) in
[bytedance/sonic#635

**Full Changelog**:
bytedance/sonic@v1.11.6...v1.11.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-go-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbIlNraXAgQ2hhbmdlbG9nIiwiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

2 participants