Skip to content

Commit

Permalink
fix: remove stack writeBarrier for encoder (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: duanyi.aster <[email protected]>
  • Loading branch information
AsterDY and AsterDY authored Dec 20, 2021
1 parent 22229ee commit 8203bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion encoder/assembler_amd64_go116.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func (self *_Assembler) prep_buffer_c() {

func (self *_Assembler) save_buffer() {
self.Emit("MOVQ", _ARG_rb, _CX) // MOVQ rb<>+0(FP), CX
self.WriteRecNotAX(2, _RP, jit.Ptr(_CX, 0)) // MOVQ RP, (CX)
self.Emit("MOVQ", _RP, jit.Ptr(_CX, 0)) // MOVQ RP, (CX)
self.Emit("MOVQ", _RL, jit.Ptr(_CX, 8)) // MOVQ RL, 8(CX)
self.Emit("MOVQ", _RC, jit.Ptr(_CX, 16)) // MOVQ RC, 16(CX)
}
Expand Down
2 changes: 1 addition & 1 deletion encoder/assembler_amd64_go117.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func (self *_Assembler) prep_buffer_AX() {

func (self *_Assembler) save_buffer() {
self.Emit("MOVQ", _ARG_rb, _CX) // MOVQ rb<>+0(FP), CX
self.WriteRecNotAX(2, _RP, jit.Ptr(_CX, 0)) // MOVQ RP, (CX)
self.Emit("MOVQ", _RP, jit.Ptr(_CX, 0)) // MOVQ RP, (CX)
self.Emit("MOVQ", _RL, jit.Ptr(_CX, 8)) // MOVQ RL, 8(CX)
self.Emit("MOVQ", _RC, jit.Ptr(_CX, 16)) // MOVQ RC, 16(CX)
}
Expand Down

0 comments on commit 8203bba

Please sign in to comment.