Add workaround for bulkBarrierPreWrite: unaligned arguments panic

This commit is contained in:
世界
2024-12-10 13:04:55 +08:00
parent 20b9e9f258
commit 2e124a55be
4 changed files with 24 additions and 18 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}
}