Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13719)

Delta Between Two Patch Sets: Objects/obmalloc.c

Issue 13390: Hunt memory allocations in addition to reference leaks
Left Patch Set: Created 6 years, 9 months ago
Right Patch Set: Created 6 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_sys.py ('k') | Python/pythonrun.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 #include "Python.h" 1 #include "Python.h"
2 2
3 #ifdef WITH_PYMALLOC 3 #ifdef WITH_PYMALLOC
4 4
5 #ifdef HAVE_MMAP 5 #ifdef HAVE_MMAP
6 #include <sys/mman.h> 6 #include <sys/mman.h>
7 #ifdef MAP_ANONYMOUS 7 #ifdef MAP_ANONYMOUS
8 #define ARENAS_USE_MMAP 8 #define ARENAS_USE_MMAP
9 #endif 9 #endif
10 #endif 10 #endif
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 int 1939 int
1940 Py_ADDRESS_IN_RANGE(void *P, poolp pool) 1940 Py_ADDRESS_IN_RANGE(void *P, poolp pool)
1941 { 1941 {
1942 uint arenaindex_temp = pool->arenaindex; 1942 uint arenaindex_temp = pool->arenaindex;
1943 1943
1944 return arenaindex_temp < maxarenas && 1944 return arenaindex_temp < maxarenas &&
1945 (uptr)P - arenas[arenaindex_temp].address < (uptr)ARENA_SIZE && 1945 (uptr)P - arenas[arenaindex_temp].address < (uptr)ARENA_SIZE &&
1946 arenas[arenaindex_temp].address != 0; 1946 arenas[arenaindex_temp].address != 0;
1947 } 1947 }
1948 #endif 1948 #endif
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+