Commented-out #defines for finding leaked pages in multithreaded apps.
This commit is contained in:
parent
f01cff0d5b
commit
c11e1167b2
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ compensated_function Page * loadPage(int xid, int pageid);
|
||||||
*/
|
*/
|
||||||
void releasePage(Page * p);
|
void releasePage(Page * p);
|
||||||
|
|
||||||
|
//#define loadPage(xid, pageid) loadPage(xid, pageid); printf("%s %d: thread=%d loadPage(%d, %d)\n", __FILE__, __LINE__, pthread_self(), (xid), (pageid));
|
||||||
|
//#define releasePage(pageid) releasePage(pageid); printf("%s,%d: thread=%d releasePage()\n", __FILE__, __LINE__, pthread_self());
|
||||||
|
|
||||||
#ifdef PROFILE_LATCHES_WRITE_ONLY
|
#ifdef PROFILE_LATCHES_WRITE_ONLY
|
||||||
#define loadPage(x,y) __profile_loadPage((x), (y), __FILE__, __LINE__)
|
#define loadPage(x,y) __profile_loadPage((x), (y), __FILE__, __LINE__)
|
||||||
#define releasePage(x) __profile_releasePage((x))
|
#define releasePage(x) __profile_releasePage((x))
|
||||||
|
|
Loading…
Reference in a new issue