summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2014-09-05 05:27:26 (GMT)
committerJason Evans <je@fb.com>2014-09-05 05:27:26 (GMT)
commitc21b05ea09874222266b3e36ceb18765fcb4a00b (patch)
tree46ff2979c8b0e3e7a482cf12fdc38019034885b5
parentff6a31d3b92b7c63446ce645341d2bbd77b67dc6 (diff)
downloadjemalloc-c21b05ea09874222266b3e36ceb18765fcb4a00b.zip
jemalloc-c21b05ea09874222266b3e36ceb18765fcb4a00b.tar.gz
jemalloc-c21b05ea09874222266b3e36ceb18765fcb4a00b.tar.bz2
Whitespace cleanups.
-rw-r--r--INSTALL6
-rw-r--r--include/jemalloc/internal/prng.h2
-rw-r--r--src/zone.c14
-rw-r--r--test/src/SFMT.c20
4 files changed, 21 insertions, 21 deletions
diff --git a/INSTALL b/INSTALL
index 2df667c..6c46100 100644
--- a/INSTALL
+++ b/INSTALL
@@ -56,7 +56,7 @@ any of the following arguments (not a definitive list) to 'configure':
replace the "malloc", "calloc", etc. symbols.
--without-export
- Don't export public APIs. This can be useful when building jemalloc as a
+ Don't export public APIs. This can be useful when building jemalloc as a
static library, or to avoid exporting public APIs when using the zone
allocator on OSX.
@@ -96,7 +96,7 @@ any of the following arguments (not a definitive list) to 'configure':
--enable-ivsalloc
Enable validation code, which verifies that pointers reside within
- jemalloc-owned chunks before dereferencing them. This incurs a substantial
+ jemalloc-owned chunks before dereferencing them. This incurs a substantial
performance hit.
--disable-stats
@@ -148,7 +148,7 @@ any of the following arguments (not a definitive list) to 'configure':
Disable support for Valgrind.
--disable-zone-allocator
- Disable zone allocator for Darwin. This means jemalloc won't be hooked as
+ Disable zone allocator for Darwin. This means jemalloc won't be hooked as
the default allocator on OSX/iOS.
--enable-utrace
diff --git a/include/jemalloc/internal/prng.h b/include/jemalloc/internal/prng.h
index 7b2b065..c6b1797 100644
--- a/include/jemalloc/internal/prng.h
+++ b/include/jemalloc/internal/prng.h
@@ -15,7 +15,7 @@
* See Knuth's TAOCP 3rd Ed., Vol. 2, pg. 17 for details on these constraints.
*
* This choice of m has the disadvantage that the quality of the bits is
- * proportional to bit position. For example. the lowest bit has a cycle of 2,
+ * proportional to bit position. For example, the lowest bit has a cycle of 2,
* the next has a cycle of 4, etc. For this reason, we prefer to use the upper
* bits.
*
diff --git a/src/zone.c b/src/zone.c
index a722287..c6bd533 100644
--- a/src/zone.c
+++ b/src/zone.c
@@ -258,13 +258,13 @@ register_zone(void)
/*
* On OSX 10.6, having the default purgeable zone appear before
* the default zone makes some things crash because it thinks it
- * owns the default zone allocated pointers. We thus unregister/
- * re-register it in order to ensure it's always after the
- * default zone. On OSX < 10.6, there is no purgeable zone, so
- * this does nothing. On OSX >= 10.6, unregistering replaces the
- * purgeable zone with the last registered zone above, i.e the
- * default zone. Registering it again then puts it at the end,
- * obviously after the default zone.
+ * owns the default zone allocated pointers. We thus
+ * unregister/re-register it in order to ensure it's always
+ * after the default zone. On OSX < 10.6, there is no purgeable
+ * zone, so this does nothing. On OSX >= 10.6, unregistering
+ * replaces the purgeable zone with the last registered zone
+ * above, i.e the default zone. Registering it again then puts
+ * it at the end, obviously after the default zone.
*/
if (purgeable_zone) {
malloc_zone_unregister(purgeable_zone);
diff --git a/test/src/SFMT.c b/test/src/SFMT.c
index 22a5ac5..80cabe0 100644
--- a/test/src/SFMT.c
+++ b/test/src/SFMT.c
@@ -463,11 +463,11 @@ uint32_t gen_rand32_range(sfmt_t *ctx, uint32_t limit) {
above = 0xffffffffU - (0xffffffffU % limit);
while (1) {
- ret = gen_rand32(ctx);
- if (ret < above) {
- ret %= limit;
- break;
- }
+ ret = gen_rand32(ctx);
+ if (ret < above) {
+ ret %= limit;
+ break;
+ }
}
return ret;
}
@@ -513,11 +513,11 @@ uint64_t gen_rand64_range(sfmt_t *ctx, uint64_t limit) {
above = KQU(0xffffffffffffffff) - (KQU(0xffffffffffffffff) % limit);
while (1) {
- ret = gen_rand64(ctx);
- if (ret < above) {
- ret %= limit;
- break;
- }
+ ret = gen_rand64(ctx);
+ if (ret < above) {
+ ret %= limit;
+ break;
+ }
}
return ret;
}