This is the mail archive of the
mailing list for the Cygwin project.
(CVS) SH_USER_SHAREDplus allocation
- From: "jan.kolar" <kolar at math dot cas dot cz>
- To: cygwin at cygwin dot com
- Date: Sat, 22 Oct 2011 14:35:46 -0700 (PDT)
- Subject: (CVS) SH_USER_SHAREDplus allocation
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