gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

Remove gohacks.SliceHeader (Go 1.20+)

Open prattmic opened this issue 2 years ago • 3 comments

Description

As far as I can tell, all existing uses can be replaced either with unsafe.Pointer(&slice[0]), or unsafe.Slice() (new in Go 1.20).

Once only 1.20 is supported, gohacks.SliceHeader could be removed completely. The former can be removed immediately.

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

No response

prattmic avatar Jan 24 '23 16:01 prattmic

We switched to 1.20 in 5572ab2f7d0d09ff0f184a826d811215a6037d7b

avagin avatar Feb 10 '23 23:02 avagin

A friendly reminder that this issue had no activity for 120 days.

github-actions[bot] avatar Sep 13 '23 00:09 github-actions[bot]

Hello! We (me and @nicolasgarza) are students at UT Austin working on issues for our virtualization course. Could we get this issue assigned to us? Thank you!

uzairnawaz avatar Dec 03 '25 23:12 uzairnawaz