Kaydet (Commit) ce7fb9b5 authored tarafından Tim Peters's avatar Tim Peters

Just whitespace fiddling.

üst 1221c0a4
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
* *
* For small requests, the allocator sub-allocates <Big> blocks of memory. * For small requests, the allocator sub-allocates <Big> blocks of memory.
* Requests greater than 256 bytes are routed to the system's allocator. * Requests greater than 256 bytes are routed to the system's allocator.
* *
* Small requests are grouped in size classes spaced 8 bytes apart, due * Small requests are grouped in size classes spaced 8 bytes apart, due
* to the required valid alignment of the returned address. Requests of * to the required valid alignment of the returned address. Requests of
* a particular size are serviced from memory pools of 4K (one VMM page). * a particular size are serviced from memory pools of 4K (one VMM page).
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
* ... ... ... * ... ... ...
* 241-248 248 30 * 241-248 248 30
* 249-256 256 31 * 249-256 256 31
* *
* 0, 257 and up: routed to the underlying allocator. * 0, 257 and up: routed to the underlying allocator.
*/ */
...@@ -472,7 +472,7 @@ _PyMalloc_Malloc(size_t nbytes) ...@@ -472,7 +472,7 @@ _PyMalloc_Malloc(size_t nbytes)
UNLOCK(); UNLOCK();
goto redirect; goto redirect;
} }
/* /*
* Keep a reference in the list of allocated arenas. We might * Keep a reference in the list of allocated arenas. We might
* want to release (some of) them in the future. The first * want to release (some of) them in the future. The first
* word is never used, no matter whether the returned address * word is never used, no matter whether the returned address
...@@ -491,7 +491,7 @@ _PyMalloc_Malloc(size_t nbytes) ...@@ -491,7 +491,7 @@ _PyMalloc_Malloc(size_t nbytes)
/* The small block allocator ends here. */ /* The small block allocator ends here. */
redirect: redirect:
/* /*
* Redirect the original request to the underlying (libc) allocator. * Redirect the original request to the underlying (libc) allocator.
* We jump here on bigger requests, on error in the code above (as a * We jump here on bigger requests, on error in the code above (as a
...@@ -641,14 +641,14 @@ _PyMalloc_Calloc(size_t nbel, size_t elsz) ...@@ -641,14 +641,14 @@ _PyMalloc_Calloc(size_t nbel, size_t elsz)
*/ */
#else /* ! WITH_PYMALLOC */ #else /* ! WITH_PYMALLOC */
void void *
*_PyMalloc_Malloc(size_t n) _PyMalloc_Malloc(size_t n)
{ {
return PyMem_MALLOC(n); return PyMem_MALLOC(n);
} }
void void *
*_PyMalloc_Realloc(void *p, size_t n) _PyMalloc_Realloc(void *p, size_t n)
{ {
return PyMem_REALLOC(p, n); return PyMem_REALLOC(p, n);
} }
...@@ -660,8 +660,8 @@ _PyMalloc_Free(void *p) ...@@ -660,8 +660,8 @@ _PyMalloc_Free(void *p)
} }
#endif /* WITH_PYMALLOC */ #endif /* WITH_PYMALLOC */
PyObject PyObject *
*_PyMalloc_New(PyTypeObject *tp) _PyMalloc_New(PyTypeObject *tp)
{ {
PyObject *op; PyObject *op;
op = (PyObject *) _PyMalloc_MALLOC(_PyObject_SIZE(tp)); op = (PyObject *) _PyMalloc_MALLOC(_PyObject_SIZE(tp));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment