Hi,
Raising a request to check if there are plans to support panic in OnPotentialDeadlock callback. Default behaviour is a os.Exit. If I override the callback function, panicking in callback is not supported as internally unlock for lockOrder mutex is not deferred which creates issues with further execution of the program.
Also checking if it was a conscious call to not support panic in callback.
My usecase is to achieve something as below so that all the go routine are not impacted apart from the one where the deadlock could have come up.
deadlock.Opts.OnPotentialDeadlock = onPotentialDeadlock
func onPotentialDeadlock () {
panic("potential deadlock detected")
}
Please let me know if there are any follow up questions.
Thanks
Hi,
Raising a request to check if there are plans to support
panicin OnPotentialDeadlock callback. Default behaviour is aos.Exit. If I override the callback function, panicking in callback is not supported as internally unlock forlockOrder mutexis not deferred which creates issues with further execution of the program.Also checking if it was a conscious call to not support panic in callback.
My usecase is to achieve something as below so that all the go routine are not impacted apart from the one where the deadlock could have come up.
Please let me know if there are any follow up questions.
Thanks