hotspot/src/share/vm/runtime/jniHandles.cpp
changeset 22556 a17351e8c2c2
parent 22530 d1a70d79c50e
parent 22551 9bf46d16dcc6
child 24424 2658d7834c6e
--- a/hotspot/src/share/vm/runtime/jniHandles.cpp	Wed Jan 29 19:54:44 2014 -0500
+++ b/hotspot/src/share/vm/runtime/jniHandles.cpp	Thu Jan 30 14:01:45 2014 +0100
@@ -463,7 +463,7 @@
     // Append new block
     Thread* thread = Thread::current();
     Handle obj_handle(thread, obj);
-    // This can block, so we need to preserve obj accross call.
+    // This can block, so we need to preserve obj across call.
     _last->_next = JNIHandleBlock::allocate_block(thread);
     _last = _last->_next;
     _allocate_before_rebuild--;
@@ -530,7 +530,7 @@
   return result;
 }
 
-// This method is not thread-safe, i.e., must be called whule holding a lock on the
+// This method is not thread-safe, i.e., must be called while holding a lock on the
 // structure.
 long JNIHandleBlock::memory_usage() const {
   return length() * sizeof(JNIHandleBlock);