FreeBSD Bugzilla – Attachment 183488 Details for
Bug 219994
VirtualBox crashes 11.1-BETA1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
My attempt to fix the panic
vm.diff (text/plain), 796 bytes, created by
Jung-uk Kim
on 2017-06-14 23:02:28 UTC
(
hide
)
Description:
My attempt to fix the panic
Filename:
MIME Type:
Creator:
Jung-uk Kim
Created:
2017-06-14 23:02:28 UTC
Size:
796 bytes
patch
obsolete
>Index: sys/vm/vm_page.c >=================================================================== >--- sys/vm/vm_page.c (revision 319959) >+++ sys/vm/vm_page.c (working copy) >@@ -1759,9 +1759,12 @@ retry: > pagedaemon_wakeup(); > return (NULL); > } >- if (m_ret != NULL) >+ if (m_ret != NULL) { > vm_phys_freecnt_adj(m_ret, -npages); >- else { >+ for (m = m_ret; m < &m_ret[npages]; m++) >+ if ((m->flags & PG_ZERO) != 0) >+ vm_page_zero_count--; >+ } else { > #if VM_NRESERVLEVEL > 0 > if (vm_reserv_reclaim_contig(npages, low, high, alignment, > boundary)) >@@ -1768,9 +1771,6 @@ retry: > goto retry; > #endif > } >- for (m = m_ret; m < &m_ret[npages]; m++) >- if ((m->flags & PG_ZERO) != 0) >- vm_page_zero_count--; > mtx_unlock(&vm_page_queue_free_mtx); > if (m_ret == NULL) > return (NULL);
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 219994
: 183488