Mercurial > hg > truffle
comparison src/share/vm/classfile/symbolTable.cpp @ 605:98cb887364d3
6810672: Comment typos
Summary: I have collected some typos I have found while looking at the code.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Fri, 27 Feb 2009 13:27:09 -0800 |
parents | a61af66fc99e |
children | c89f86385056 |
comparison
equal
deleted
inserted
replaced
604:ec59443af135 | 605:98cb887364d3 |
---|---|
154 // Since look-up was done lock-free, we need to check if another | 154 // Since look-up was done lock-free, we need to check if another |
155 // thread beat us in the race to insert the symbol. | 155 // thread beat us in the race to insert the symbol. |
156 | 156 |
157 symbolOop test = lookup(index, (char*)name, len, hashValue); | 157 symbolOop test = lookup(index, (char*)name, len, hashValue); |
158 if (test != NULL) { | 158 if (test != NULL) { |
159 // A race occured and another thread introduced the symbol, this one | 159 // A race occurred and another thread introduced the symbol, this one |
160 // will be dropped and collected. | 160 // will be dropped and collected. |
161 return test; | 161 return test; |
162 } | 162 } |
163 | 163 |
164 HashtableEntry* entry = new_entry(hashValue, sym()); | 164 HashtableEntry* entry = new_entry(hashValue, sym()); |
191 // Since look-up was done lock-free, we need to check if another | 191 // Since look-up was done lock-free, we need to check if another |
192 // thread beat us in the race to insert the symbol. | 192 // thread beat us in the race to insert the symbol. |
193 int index = hash_to_index(hashValues[i]); | 193 int index = hash_to_index(hashValues[i]); |
194 symbolOop test = lookup(index, names[i], lengths[i], hashValues[i]); | 194 symbolOop test = lookup(index, names[i], lengths[i], hashValues[i]); |
195 if (test != NULL) { | 195 if (test != NULL) { |
196 // A race occured and another thread introduced the symbol, this one | 196 // A race occurred and another thread introduced the symbol, this one |
197 // will be dropped and collected. Use test instead. | 197 // will be dropped and collected. Use test instead. |
198 cp->symbol_at_put(cp_indices[i], test); | 198 cp->symbol_at_put(cp_indices[i], test); |
199 } else { | 199 } else { |
200 symbolOop sym = syms[i](); | 200 symbolOop sym = syms[i](); |
201 HashtableEntry* entry = new_entry(hashValues[i], sym); | 201 HashtableEntry* entry = new_entry(hashValues[i], sym); |