(CVS) SH_USER_SHAREDplus allocation
Sat Oct 22 21:36:00 GMT 2011
introduced reordering of SH_- related memory blocks and the following change
| - unsigned size = offsets[i + 1] - offsets[i];
| + unsigned size = offsets[i] - offsets[i + 1];
| offsets[i] += delta;
| if (!VirtualAlloc (off_addr (i), size, MEM_RESERVE, PAGE_NOACCESS))
However, address range is to be allocated using its LOWER boundary
which is now offsets[i + 1].
Even prior the change, I wondered why member is not also updated.
Hence I also suggest that the allocation of ,  and the last item
should be double checked and perhaps commented in src.
| for (int i = SH_USER_SHARED + 1; i < SH_TOTAL_SIZE; i++)
"SH_USER_SHARED"+ 1 turns out to be 2.
| continue; /* oh well */
View this message in context: http://old.nabble.com/%28CVS%29--SH_USER_SHAREDplus--allocation-tp32703126p32703126.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin