Skip to content
Permalink
Browse files

Typo fixes.

  • Loading branch information...
waywardmonkeys committed Feb 18, 2019
1 parent bd189b6 commit 6fda5cce9fecdf0bba4f917382fe990766d6fe3c
@@ -264,7 +264,7 @@ class SizeMap {
}

// If size is no more than kMaxSize, compute index of the
// class_array[] entry for it, putting the class index in noutput
// class_array[] entry for it, putting the class index in output
// parameter idx and returning true. Otherwise return false.
static inline bool ATTRIBUTE_ALWAYS_INLINE ClassIndexMaybe(size_t s, uint32_t *idx) {
if (PREDICT_TRUE(s <= kMaxSmallSize)) {
@@ -21,7 +21,7 @@
#include "common.h"
#include "rng/mwc.h"

// never allocate exeecutable heap
// never allocate executable heap
#define HL_MMAP_PROTECTION_MASK (PROT_READ | PROT_WRITE)
#define MALLOC_TRACE 0

@@ -81,7 +81,7 @@ char *MeshableArena::openSpanDir(int pid) {
if (result != 0) {
if (errno == EEXIST) {
// we will get EEXIST if we have re-execed -- we need to use a
// new directory because we could have dropped priviledges in
// new directory because we could have dropped privileges in
// the meantime.
continue;
} else {
@@ -171,7 +171,7 @@ bool MeshableArena::findPages(const Length pageCount, Span &result, internal::Pa
}
}

// if no dirty pages are avaiable, search clean pages. An allocated
// if no dirty pages are available, search clean pages. An allocated
// clean page (once it is written to) means an increased RSS.
for (size_t i = Span(0, pageCount).spanClass(); i < kSpanClassCount; i++) {
if (findPagesInner(_clean, i, pageCount, result)) {
@@ -310,7 +310,7 @@ void Runtime::segfaultHandler(int sig, siginfo_t *siginfo, void *context) {
runtime().heap().doAfterForkChild();
}

// okToProceed is a barrier that ensures any in-proress meshing has
// okToProceed is a barrier that ensures any in-progress meshing has
// completed, and the reason for the fault was 'just' a meshing
if (siginfo->si_code == SEGV_ACCERR && runtime().heap().okToProceed(siginfo->si_addr)) {
// debug("TODO: trapped access violation from meshing, log stat\n");
@@ -137,7 +137,7 @@ static void meshTestConcurrentWrite(bool invert) {
ASSERT_STREQ(s1, v1);
ASSERT_STREQ(s2, v2);

// get an aliased pointer to the second string by pointer arithmatic
// get an aliased pointer to the second string by pointer arithmetic
// on the first string
char *s3 = s1 + (ObjCount - 1) * StrLen;
ASSERT_STREQ(s2, s3);
@@ -104,7 +104,7 @@ static void meshTest(bool invert) {
ASSERT_STREQ(s1, v1);
ASSERT_STREQ(s2, v2);

// get an aliased pointer to the second string by pointer arithmatic
// get an aliased pointer to the second string by pointer arithmetic
// on the first string
char *s3 = s1 + (ObjCount - 1) * StrLen;
ASSERT_STREQ(s2, s3);
@@ -212,7 +212,7 @@ static void meshTestConcurrentWrite(bool invert1, bool invert2) {
ASSERT_STREQ(s2, v2);
ASSERT_STREQ(s3, v3);

// get an aliased pointer to the second string by pointer arithmatic
// get an aliased pointer to the second string by pointer arithmetic
// on the first string
char *t2 = s1 + (ObjCount - 1) * StrLen;
ASSERT_STREQ(s2, t2);
@@ -7,7 +7,7 @@
# from rainbow
def make_reporter(verbosity, quiet, filelike):
'''
Returns a function suitible for logging use.
Returns a function suitable for logging use.
'''
if not quiet:

0 comments on commit 6fda5cc

Please sign in to comment.
You can’t perform that action at this time.