Skip to content

Conversation

goccy
Copy link
Owner

@goccy goccy commented Aug 30, 2021

fix #282

Similar correspondence

https://github.com/qyl2021/go-ugorji-go is corresponded similar problem .
This project says indirect element is decided by element size ( whether more than 128 bytes or not ), and only support map_fastxxx APIs at not indirect element case ( element size is 128 bytes or less )

maxKeySize and maxElemSize are also defined in the latest source code.
https://github.com/golang/go/blob/7622e41c84fd9bb003a2d905b9f0545344842c3a/src/runtime/map.go#L74-L79

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2021

Codecov Report

Merging #283 (d494b03) into master (a52bc68) will increase coverage by 4.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #283      +/-   ##
==========================================
+ Coverage   81.33%   85.95%   +4.61%     
==========================================
  Files          47       47              
  Lines       15530    17034    +1504     
==========================================
+ Hits        12632    14642    +2010     
+ Misses       2338     1931     -407     
+ Partials      560      461      -99     

@goccy goccy merged commit 4f05809 into master Aug 31, 2021
@goccy goccy deleted the feature/fix-282 branch August 31, 2021 04:03
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.

mapassign_faststr: panic: runtime error: invalid memory address or nil pointer dereference
2 participants