Hi guys, I'm doing some modifications inside the Go's runtime (for research), I need insert some locks.--
I saw there is different locks inside go's runtime, like:
lock(&mheap_.lock)
mp := acquirem()
lock(&lock)
All this in different places, but probably for the same purpose (correctness). I saw in the comments justify why the lock is necessary, but not explain why acquirem instead of lock(...) or another one.
I would like some explanation to clarify, if is possible.
My modifications required locks for correctness if there are multiple threads running concurrently during the write barrier. Should I try some of them? or make a new one ?
Many thanks,F.
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.