Lines Matching refs:JNIHandleBlock
45 JNIHandleBlock* JNIHandles::_global_handles = NULL;
46 JNIHandleBlock* JNIHandles::_weak_global_handles = NULL;
160 _global_handles = JNIHandleBlock::allocate_block();
161 _weak_global_handles = JNIHandleBlock::allocate_block();
171 JNIHandleBlock* block = thread->active_handles();
273 int JNIHandleBlock::_blocks_allocated = 0;
274 JNIHandleBlock* JNIHandleBlock::_block_free_list = NULL;
276 JNIHandleBlock* JNIHandleBlock::_block_list = NULL;
280 void JNIHandleBlock::zap() {
288 JNIHandleBlock* JNIHandleBlock::allocate_block(Thread* thread) {
290 JNIHandleBlock* block;
301 // JNIHandleBlockFreeList_lock (JNIHandleBlock::allocate_block)
306 block = new JNIHandleBlock();
309 tty->print_cr("JNIHandleBlock " INTPTR_FORMAT " allocated (%d total blocks)",
335 void JNIHandleBlock::release_block(JNIHandleBlock* block, Thread* thread) {
337 JNIHandleBlock* pop_frame_link = block->pop_frame_link();
344 JNIHandleBlock* freelist = thread->free_handle_block();
360 // JNIHandleBlockFreeList_lock (JNIHandleBlock::allocate_block)
365 JNIHandleBlock* next = block->_next;
380 void JNIHandleBlock::oops_do(OopClosure* f) {
381 JNIHandleBlock* current_chain = this;
385 for (JNIHandleBlock* current = current_chain; current != NULL;
408 void JNIHandleBlock::weak_oops_do(BoolObjectClosure* is_alive,
410 for (JNIHandleBlock* current = this; current != NULL; current = current->_next) {
444 jobject JNIHandleBlock::allocate_handle(oop obj) {
450 for (JNIHandleBlock* current = _next; current != NULL;
494 _last->_next = JNIHandleBlock::allocate_block(thread);
503 void JNIHandleBlock::rebuild_free_list() {
507 for (JNIHandleBlock* current = this; current != NULL; current = current->_next) {
531 tty->print_cr("Rebuild free list JNIHandleBlock " INTPTR_FORMAT " blocks=%d used=%d free=%d add=%d",
537 bool JNIHandleBlock::contains(jobject handle) const {
542 bool JNIHandleBlock::chain_contains(jobject handle) const {
543 for (JNIHandleBlock* current = (JNIHandleBlock*) this; current != NULL; current = current->_next) {
552 int JNIHandleBlock::length() const {
554 for (JNIHandleBlock* current = _next; current != NULL; current = current->_next) {
562 long JNIHandleBlock::memory_usage() const {
563 return length() * sizeof(JNIHandleBlock);
569 bool JNIHandleBlock::any_contains(jobject handle) {
570 for (JNIHandleBlock* current = _block_list; current != NULL; current = current->_block_list_link) {
578 void JNIHandleBlock::print_statistics() {
583 JNIHandleBlock* block = _block_list;