Re: git: kernel -- vm_object locking: DEBUG_LOCKS check for

看板DFBSD_commit作者時間14年前 (2011/03/28 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
On Sun, Mar 27, 2011 at 12:01:19PM -0700, Matthew Dillon wrote: >: If a thread has a hold on a vm_object and enters hold_wait (via either >: vm_object_terminate or vm_object_collapse), it will wait forever for the hold >: count to hit 0. Record the threads holding an object in a per-object array. >: >:http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb443cbb47dab690574674c82ee9407c28deb544 > > Hmm. That's a bit iffy, it is possible for there to be more than 32 > holds on a VM object. > > -Matt > Matthew Dillon > <dillon@backplane.com> Agreed; this was something that was useful while debugging something locally, but I kept it under DEBUG_LOCKS rather than INVARIANTS because it was not generally safe. Would it be alright for me to drag bitstring.h into sys/ (where it is on FreeBSD at least) so that I can use that instead (and make a growable bitvector)? I thought this was okay, since DEBUG_LOCKS is not on by default; in the future would you recommend not committing in stuff like this? Thanks, -- vs
文章代碼(AID): #1DZwpMDX (DFBSD_commit)