linux-usdt / libstapsdt

Create Systemtap's USDT probes at runtime
MIT License
126 stars 13 forks source link

src: fix hashtable algorithm #12

Closed mmarchini closed 7 years ago

mmarchini commented 7 years ago

Hashtable algorithm was wrongly implemented, leading to problems when we have hash collisions. This new implementation follows the specifications defined below.

Ref: http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#hash Fixex: https://github.com/sthima/libstapsdt/issues/11