We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Spy.SelfCallerBarrier中,会维护一个线程链表,起到避免sandbox自我观察而进入死循环,这个链表中是元素,是线程的hashcode取模,然后线程进入该链表或从链表中移除时,会使用synchronized加锁,这个操作对性能有一定损耗,在压测时会导致机器负载上升(生产环境单机TPS约等于200时,load接近20)
这里需要进行一下锁的优化
The text was updated successfully, but these errors were encountered:
使用SpinLock解决 #109 的问题,降低在高并发时候CS过高的问题
6031c5c
已在1.2.0版本优化Spy的锁机制
Sorry, something went wrong.
oldmanpushcart
No branches or pull requests
在Spy.SelfCallerBarrier中,会维护一个线程链表,起到避免sandbox自我观察而进入死循环,这个链表中是元素,是线程的hashcode取模,然后线程进入该链表或从链表中移除时,会使用synchronized加锁,这个操作对性能有一定损耗,在压测时会导致机器负载上升(生产环境单机TPS约等于200时,load接近20)
这里需要进行一下锁的优化
The text was updated successfully, but these errors were encountered: