Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/jniHandles.cpp @ 14309:63a4eb8bcd23
8025856: Fix typos in the GC code
Summary: Fix about 440 typos in comments in the VM code
Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author | jwilhelm |
---|---|
date | Thu, 23 Jan 2014 14:47:23 +0100 |
parents | de6a9e811145 |
children | 2c95095271e9 |
comparison
equal
deleted
inserted
replaced
14308:870aedf4ba4f | 14309:63a4eb8bcd23 |
---|---|
459 rebuild_free_list(); // updates _allocate_before_rebuild counter | 459 rebuild_free_list(); // updates _allocate_before_rebuild counter |
460 } else { | 460 } else { |
461 // Append new block | 461 // Append new block |
462 Thread* thread = Thread::current(); | 462 Thread* thread = Thread::current(); |
463 Handle obj_handle(thread, obj); | 463 Handle obj_handle(thread, obj); |
464 // This can block, so we need to preserve obj accross call. | 464 // This can block, so we need to preserve obj across call. |
465 _last->_next = JNIHandleBlock::allocate_block(thread); | 465 _last->_next = JNIHandleBlock::allocate_block(thread); |
466 _last = _last->_next; | 466 _last = _last->_next; |
467 _allocate_before_rebuild--; | 467 _allocate_before_rebuild--; |
468 obj = obj_handle(); | 468 obj = obj_handle(); |
469 } | 469 } |
526 result++; | 526 result++; |
527 } | 527 } |
528 return result; | 528 return result; |
529 } | 529 } |
530 | 530 |
531 // This method is not thread-safe, i.e., must be called whule holding a lock on the | 531 // This method is not thread-safe, i.e., must be called while holding a lock on the |
532 // structure. | 532 // structure. |
533 long JNIHandleBlock::memory_usage() const { | 533 long JNIHandleBlock::memory_usage() const { |
534 return length() * sizeof(JNIHandleBlock); | 534 return length() * sizeof(JNIHandleBlock); |
535 } | 535 } |
536 | 536 |