Add workaround for bulkBarrierPreWrite: unaligned arguments panic

This commit is contained in:
世界
2024-12-10 13:04:55 +08:00
parent 1e6a3f1f0b
commit cec7e47086
5 changed files with 28 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
package libbox
// https://github.com/golang/go/issues/46893
// TODO: remove after `bulkBarrierPreWrite: unaligned arguments` fixed
type StringBox struct {
Value string
}
func wrapString(value string) *StringBox {
return &StringBox{Value: value}
}