Re: kasserts behind invariants

看板FB_current作者時間12年前 (2013/12/22 11:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
on 14/12/2013 01:05 Sean Bruno said the following: > In this specific instance, it would have been much better to simply > panic if(condition) than silently allowing the vendor driver to do > something stupid like initialize a mutex twice. I like Solaris/illumos approach of having ASSERT and VERIFY macros. ASSERT is compiled out when DEBUG is not set while VERIFY is always kept. -- Andriy Gapon _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1IjbqrI6 (FB_current)
文章代碼(AID): #1IjbqrI6 (FB_current)