FreeBSD Bugzilla – Attachment 46291 Details for
Bug 71109
[pmap] [patch] Possible race conditions in pmap.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
pmap.c.diff
pmap.c.diff (text/plain), 890 bytes, created by
gemini
on 2004-08-29 18:10:28 UTC
(
hide
)
Description:
pmap.c.diff
Filename:
MIME Type:
Creator:
gemini
Created:
2004-08-29 18:10:28 UTC
Size:
890 bytes
patch
obsolete
>--- src/sys/i386/i386/pmap.c.orig Thu May 6 20:56:50 2004 >+++ src/sys/i386/i386/pmap.c Mon May 31 13:03:52 2004 >@@ -1228,7 +1228,6 @@ > m = vm_page_grab(pmap->pm_pteobj, ptepindex, > VM_ALLOC_ZERO); > if (m == NULL) { >- VM_WAIT; > /* > * Indicate the need to retry. While waiting, the page table > * page may have been allocated. >@@ -1316,6 +1315,8 @@ > } else { > m = pmap_page_lookup(pmap->pm_pteobj, ptepindex); > pmap->pm_ptphint = m; >+ if (m == NULL) >+ goto retry; > } > m->hold_count++; > } else { >@@ -2105,12 +2106,14 @@ > } else { > mpte = pmap_page_lookup(pmap->pm_pteobj, ptepindex); > pmap->pm_ptphint = mpte; >+ if (mpte == NULL) >+ goto retry; > } >- if (mpte == NULL) >- goto retry; > mpte->hold_count++; > } else { > mpte = _pmap_allocpte(pmap, ptepindex); >+ if (mpte == NULL) >+ goto retry; > } > } > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 71109
: 46291