Index: Prepare.cpp =================================================================== --- Prepare.cpp (revision 489081) +++ Prepare.cpp (working copy) @@ -830,10 +830,10 @@ { off = m->get_offset(); index = m->get_index(); - // mark superclass' method "m" as being overwridden + // mark superclass' method "m" as being overwritten m->method_was_overridden(); - // notify interested JITs that "m" was overwridden by "method" + // notify interested JITs that "m" was overwritten by "method" m->do_jit_overridden_method_callbacks(&method); } break; @@ -1287,7 +1287,7 @@ assert((((POINTER_SIZE_INT)(m_static_data_block)) % 8) == 0); // - // STEP 9 ::: For INTERFACES intialize static fields and return. + // STEP 9 ::: For INTERFACES initialize static fields and return. // if(is_interface()) { bool init_fields = initialize_static_fields_for_interface(); @@ -1366,7 +1366,7 @@ // // STEP 15 ::: HANDLE JAVA CLASS CLASS separately // - // Make sure noone hasn't prematurely set these fields since all calculations + // Make sure no one hasn't prematurely set these fields since all calculations // up to this point should be based on clss->unpadded_instance_data_size. assert(m_instance_data_size == 0); assert(m_allocated_size == 0); @@ -1446,7 +1446,7 @@ if(m_alignment != GC_OBJECT_ALIGNMENT) { // The GC will align on 4 byte boundaries by default on IA32.... #ifdef POINTER64 - ASSERT(0, "Allignment is supposed to be appropriate"); + ASSERT(0, "Alignment is supposed to be appropriate"); #endif // Make sure it is a legal mask. assert((m_alignment & CL_PROP_ALIGNMENT_MASK) <= CL_PROP_ALIGNMENT_MASK); @@ -1487,7 +1487,7 @@ // // STEP 20 ::: ASSIGN VALUE to static final fields // - // Generally speaking final value is inlined, so we wooldn't need to worry + // Generally speaking final value is inlined, so we wouldn’t need to worry // about the initialization of those static final fields. But when we use // reflection mechanisms - Field.getXXX() - to access them, we got // null values. Considering this, we must initialize those static Index: Initialize.cpp =================================================================== --- Initialize.cpp (revision 489081) +++ Initialize.cpp (working copy) @@ -133,10 +133,10 @@ jthrowable p_error_object; assert(!hythread_is_suspend_enabled()); - // it's a safe poin so enviroment should be protected + // it's a safe poin so environment should be protected vm_execute_java_method_array((jmethodID) meth, 0, 0); - // suspend can be enabeled in safe enviroment + // suspend can be enabled in safe environment tmn_suspend_enable(); p_error_object = exn_get(); tmn_suspend_disable(); Index: C_Interface.cpp =================================================================== --- C_Interface.cpp (revision 489081) +++ C_Interface.cpp (working copy) @@ -1819,7 +1819,7 @@ unsigned UNREF idx) { assert(mh); - // Alwyas NULL for Java. + // Always NULL for Java. return 0; } //method_vars_get_type_info @@ -2447,7 +2447,7 @@ compile_do_compilation_jit((Method*) method, (JIT*) jit); } // vm_recompile_method -// Called by JIT during compialtion to have the VM synchronously request a JIT (maybe another one) +// Called by JIT during compilation to have the VM synchronously request a JIT (maybe another one) // to compile another method. JIT_Result vm_compile_method(JIT_Handle jit, Method_Handle method) { Index: Environment.cpp =================================================================== --- Environment.cpp (revision 489081) +++ Environment.cpp (working copy) @@ -247,7 +247,7 @@ // Unload all system native libraries. natives_cleanup(); - // Unload GC-releated resources. + // Unload GC-related resources. gc_wrapup(); delete GlobalCodeMemoryManager; Index: method_lookup.cpp =================================================================== --- method_lookup.cpp (revision 489081) +++ method_lookup.cpp (working copy) @@ -286,7 +286,7 @@ // We failed to acquire the lock. Use slow linear search. // The linear search is safe even is someone else is adding a method // because of the way the table is modified: - // 1. If neecssary, the table is reallocated. This operation is + // 1. If necessary, the table is reallocated. This operation is // atomic, so we never see a partially initialized table. // 2. Space is made for the new method by shifting all methods // with higher addresses by 1. The shift is done from the right, Index: class_impl.cpp =================================================================== --- class_impl.cpp (revision 489081) +++ class_impl.cpp (working copy) @@ -449,7 +449,7 @@ assert( hmethod ); Method *method = (Method*)hmethod; return method->is_protected(); -} // method_is_proctected +} // method_is_protected /** * Function returns number of method exception handlers. @@ -594,6 +594,6 @@ assert( hfield ); Field *field = (Field*)hfield; return field->is_protected(); -} // field_is_proctected +} // field_is_protected Index: Class_File_Loader.cpp =================================================================== --- Class_File_Loader.cpp (revision 489081) +++ Class_File_Loader.cpp (working copy) @@ -1,4 +1,4 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. @@ -576,7 +576,7 @@ // // Look up the name_index and descriptor_index // utf8 string const pool entries. - // See specification 4.6 about name_index and desctiptor_index. + // See specification 4.6 about name_index and descriptor_index. // String* name = cp_check_utf8(cp, name_index); String* descriptor = cp_check_utf8(cp, descriptor_index); @@ -886,7 +886,7 @@ } }//switch }//else for static field - }//case ATTR_ConstanValue + }//case ATTR_ConstantValue break; case ATTR_Synthetic: @@ -1090,7 +1090,7 @@ if(!cfs.parse_u2_be(&index)) { REPORT_FAILED_CLASS_CLASS(_class->get_class_loader(), _class, "java/lang/ClassFormatError", _class->get_name()->bytes << ": could not parse exception class index " - << "while parsing excpetions for method " + << "while parsing exceptions for method " << _name->bytes << _descriptor->bytes); return false; } @@ -1101,7 +1101,7 @@ REPORT_FAILED_CLASS_CLASS(_class->get_class_loader(), _class, "java/lang/ClassFormatError", _class->get_name()->bytes << ": exception class index " << index << "is not a valid CONSTANT_class entry " - << "while parsing excpetions for method " + << "while parsing exceptions for method " << _name->bytes << _descriptor->bytes); return false; } @@ -1109,7 +1109,7 @@ if (attr_len != _n_exceptions * sizeof(uint16) + sizeof(_n_exceptions) ) { REPORT_FAILED_CLASS_CLASS(_class->get_class_loader(), _class, "java/lang/ClassFormatError", _class->get_name()->bytes << ": invalid Exceptions attribute length " - << "while parsing excpetions for method " + << "while parsing exceptions for method " << _name->bytes << _descriptor->bytes); return false; } @@ -1526,7 +1526,7 @@ } // we should remember this point to return here - // after comlete LVT and LVTT parsing. + // after complete LVT and LVTT parsing. int return_point = cfs.get_offset(); if(num_lvt_entries == 0 && num_lvtt_entries != 0) { @@ -1988,7 +1988,7 @@ // // there must be no more than 1 code attribute and no more than 1 exceptions // attribute per method - // See specificaton 4.8.3 and 4.8.4 first paragraphs. + // See specification 4.8.3 and 4.8.4 first paragraphs. // @@ -2179,7 +2179,7 @@ } return check_field_name(name, id_len); } - return false; //unreacheable code + return false; //unreachable code } static String* class_file_parse_utf8data(String_Pool& string_pool, ByteReader& cfs, Index: classloader.cpp =================================================================== --- classloader.cpp (revision 489081) +++ classloader.cpp (working copy) @@ -786,7 +786,7 @@ // make sure it is array name assert(className && className[0] == '['); - // count number of dimentions in requested array + // count number of dimensions in requested array unsigned n_dimensions = 1; while(className[n_dimensions] == '[') n_dimensions++; @@ -1128,7 +1128,7 @@ } } - // check existance of a given path + // check existence of a given path apr_finfo_t finfo; if(apr_stat(&finfo, new_path->bytes, APR_FINFO_SIZE, tmp_pool) != APR_SUCCESS) { // broken path to the file @@ -1337,7 +1337,7 @@ * generated there to set vm.boot.class.path since we didn't do * it before. We need to add on the kernel.jar * and magics support jars (if any). - * note that parse_arguments.cpp defers any override, postpend or + * note that parse_arguments.cpp defers any override, append or * prepend here, storing everything as properties. */ @@ -1471,7 +1471,7 @@ if (klass) { LMAutoUnlock aulock(&m_lock); - // check if class has been alredy recorded as initiated by DefineClass() + // check if class has been already recorded as initiated by DefineClass() Class** pklass = m_initiatedClasses->Lookup(className); if (NULL == pklass) { m_initiatedClasses->Insert(className, klass); @@ -1708,7 +1708,7 @@ class_name, ¬_found); } - // chech if a given class is found + // check if a given class is found if(!not_found) { return clss; } @@ -1734,7 +1734,7 @@ char* full_name = apr_pstrcat(local_pool, dir_name->bytes, PORT_FILE_SEPARATOR_STR, class_name_in_fs, NULL ); - // check file existance + // check file existence apr_finfo_t finfo; if(apr_stat(&finfo, full_name, APR_FINFO_SIZE, local_pool) != APR_SUCCESS) { // file does not exist