diff options
author | John Doe <github.john.doe@outlook.com> | 2017-08-17 20:44:17 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-08-17 20:44:17 +0300 |
commit | 25fade61da684108f461f1b305e30897b4bc5b95 (patch) | |
tree | 72047bb2de0bbbce35f251f3f4a84a84d3d1e071 /src/Native | |
parent | 55b48213fff4ee0eb131a682a0e7f276ce5afa42 (diff) |
Typo (#4339)
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/Runtime/RHCodeMan.cpp | 2 | ||||
-rw-r--r-- | src/Native/gc/gc.cpp | 14 | ||||
-rw-r--r-- | src/Native/gc/handletable.cpp | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/Native/Runtime/RHCodeMan.cpp b/src/Native/Runtime/RHCodeMan.cpp index cff8c8c90..39361c2fa 100644 --- a/src/Native/Runtime/RHCodeMan.cpp +++ b/src/Native/Runtime/RHCodeMan.cpp @@ -942,7 +942,7 @@ PTR_PTR_VOID EECodeManager::GetReturnAddressLocationForHijack( } #ifdef _ARM_ - // We cannot get the return addres unless LR has + // We cannot get the return address unless LR has // be saved in the prolog. if (!pHeader->IsRegSaved(CSR_MASK_LR)) return NULL; diff --git a/src/Native/gc/gc.cpp b/src/Native/gc/gc.cpp index e93eb066e..ccb9ec4bd 100644 --- a/src/Native/gc/gc.cpp +++ b/src/Native/gc/gc.cpp @@ -804,7 +804,7 @@ respin: } // Reverse join - first thread gets here does the work; other threads will only proceed - // afte the work is done. + // after the work is done. // Note that you cannot call this twice in a row on the same thread. Plus there's no // need to call it twice in row - you should just merge the work. BOOL r_join (gc_heap* gch, int join_id) @@ -5538,7 +5538,7 @@ public: // We also need to recover the saved info because we'll need to recover it later. // // So we would call swap_p*_plug_and_saved once to recover the object info; then call - // it again to recover the artifical gap. + // it again to recover the artificial gap. void swap_pre_plug_and_saved() { gap_reloc_pair temp; @@ -9167,7 +9167,7 @@ void gc_heap::delete_heap_segment (heap_segment* seg, BOOL consider_hoarding) } } -//resets the pages beyond alloctes size so they won't be swapped out and back in +//resets the pages beyond allocates size so they won't be swapped out and back in void gc_heap::reset_heap_segment_pages (heap_segment* seg) { @@ -12285,7 +12285,7 @@ BOOL gc_heap::allocate_small (int gen_number, if (!commit_failed_p) { // some other threads already grabbed the more space lock and allocated - // so we should attemp an ephemeral GC again. + // so we should attempt an ephemeral GC again. assert (heap_segment_allocated (ephemeral_heap_segment) < alloc_allocated); soh_alloc_state = a_state_trigger_ephemeral_gc; } @@ -12357,7 +12357,7 @@ BOOL gc_heap::allocate_small (int gen_number, if (!commit_failed_p) { // some other threads already grabbed the more space lock and allocated - // so we should attemp an ephemeral GC again. + // so we should attempt an ephemeral GC again. assert (heap_segment_allocated (ephemeral_heap_segment) < alloc_allocated); soh_alloc_state = a_state_trigger_ephemeral_gc; } @@ -22692,7 +22692,7 @@ void gc_heap::plan_phase (int condemned_gen_number) assert (len >= Align (min_obj_size)); make_unused_array (arr, len); // fix fully contained bricks + first one - // if the array goes beyong the first brick + // if the array goes beyond the first brick size_t start_brick = brick_of (arr); size_t end_brick = brick_of (arr + len); if (end_brick != start_brick) @@ -29256,7 +29256,7 @@ generation* gc_heap::expand_heap (int condemned_generation, eph_size += switch_alignment_size(FALSE); #endif //RESPECT_LARGE_ALIGNMENT //Since the generation start can be larger than min_obj_size - //Compare the alignemnt of the first object in gen1 + //Compare the alignment of the first object in gen1 if (grow_heap_segment (new_seg, heap_segment_mem (new_seg) + eph_size) == 0) { fgm_result.set_fgm (fgm_commit_eph_segment, eph_size, FALSE); diff --git a/src/Native/gc/handletable.cpp b/src/Native/gc/handletable.cpp index 29ee435b5..3be1c1611 100644 --- a/src/Native/gc/handletable.cpp +++ b/src/Native/gc/handletable.cpp @@ -79,7 +79,7 @@ __inline PTR_HandleTable Table(HHANDLETABLE hTable) /* * HndCreateHandleTable * - * Alocates and initializes a handle table. + * Allocates and initializes a handle table. * */ HHANDLETABLE HndCreateHandleTable(const uint32_t *pTypeFlags, uint32_t uTypeCount, ADIndex uADIndex) |