Re: minidump size on amd64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Tuesday, November 9, 2010 - 1:02 am

Andriy Gapon wrote:


The kernel portion of the patch looks correct.  If I were to make one 
stylistic suggestion, it would be to make the control flow of the outer 
and inner loops as similar as possible, that is,

    for (...
       if ((pdp[i] & PG_V) == 0) {
          ...
          continue;
       }
       if ((pdp[i] & PG_PS) != 0) {
          ...
          continue;
       }
       for (...
          if ((pd[j] & PG_V) == 0)
             continue;
          if ((pd[j] & PG_PS) != 0) {
             ...
             continue;
          }
          for (...
             if ((pt[x] & PG_V) == 0)
                continue;
             ...

I think this would make the code a little easier to follow.

Alan

_______________________________________________
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"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
minidump size on amd64, Andriy Gapon, (Mon Sep 27, 10:54 am)
Re: minidump size on amd64, Andriy Gapon, (Wed Sep 29, 1:41 pm)
Re: minidump size on amd64, Alan Cox, (Wed Sep 29, 3:26 pm)
Re: minidump size on amd64, Andriy Gapon, (Fri Oct 1, 12:43 am)
Re: minidump size on amd64, Andriy Gapon, (Thu Oct 7, 10:16 am)
Re: minidump size on amd64, Alan Cox, (Fri Oct 8, 12:46 am)
Re: minidump size on amd64, Andriy Gapon, (Wed Nov 3, 11:30 am)
Re: minidump size on amd64, Andriy Gapon, (Wed Nov 3, 11:55 am)
Re: minidump size on amd64, Andriy Gapon, (Wed Nov 3, 2:31 pm)
Re: minidump size on amd64, Alan Cox, (Wed Nov 3, 11:05 pm)
Re: minidump size on amd64, Andriy Gapon, (Thu Nov 4, 4:07 am)
Re: minidump size on amd64, Alan Cox, (Tue Nov 9, 1:02 am)
Re: minidump size on amd64, Andriy Gapon, (Tue Nov 9, 11:45 am)
Re: minidump size on amd64, Alan Cox, (Wed Nov 10, 11:45 am)
Re: minidump size on amd64, Andriy Gapon, (Thu Nov 11, 10:47 am)