src/share/vm/memory/metaspace.cpp

changeset 5708
8c5e6482cbfc
parent 5707
8227700da288
child 5770
9361de86a50f
     1.1 --- a/src/share/vm/memory/metaspace.cpp	Fri Sep 13 22:23:48 2013 +0200
     1.2 +++ b/src/share/vm/memory/metaspace.cpp	Fri Sep 13 22:25:27 2013 +0200
     1.3 @@ -881,9 +881,9 @@
     1.4  
     1.5    if (!is_available(chunk_word_size)) {
     1.6      if (TraceMetadataChunkAllocation) {
     1.7 -      tty->print("VirtualSpaceNode::take_from_committed() not available %d words ", chunk_word_size);
     1.8 +      gclog_or_tty->print("VirtualSpaceNode::take_from_committed() not available %d words ", chunk_word_size);
     1.9        // Dump some information about the virtual space that is nearly full
    1.10 -      print_on(tty);
    1.11 +      print_on(gclog_or_tty);
    1.12      }
    1.13      return NULL;
    1.14    }
    1.15 @@ -904,7 +904,7 @@
    1.16    if (TraceMetavirtualspaceAllocation && !result) {
    1.17      gclog_or_tty->print_cr("VirtualSpaceNode::expand_by() failed "
    1.18                             "for byte size " SIZE_FORMAT, bytes);
    1.19 -    virtual_space()->print();
    1.20 +    virtual_space()->print_on(gclog_or_tty);
    1.21    }
    1.22    return result;
    1.23  }
    1.24 @@ -1173,7 +1173,7 @@
    1.25  #endif
    1.26    if (TraceMetavirtualspaceAllocation && Verbose) {
    1.27      VirtualSpaceNode* vsl = current_virtual_space();
    1.28 -    vsl->print_on(tty);
    1.29 +    vsl->print_on(gclog_or_tty);
    1.30    }
    1.31  }
    1.32  
    1.33 @@ -1733,9 +1733,9 @@
    1.34    assert_lock_strong(SpaceManager::expand_lock());
    1.35    slow_locked_verify();
    1.36    if (TraceMetadataChunkAllocation) {
    1.37 -    tty->print_cr("ChunkManager::chunk_freelist_deallocate: chunk "
    1.38 -                  PTR_FORMAT "  size " SIZE_FORMAT,
    1.39 -                  chunk, chunk->word_size());
    1.40 +    gclog_or_tty->print_cr("ChunkManager::chunk_freelist_deallocate: chunk "
    1.41 +                           PTR_FORMAT "  size " SIZE_FORMAT,
    1.42 +                           chunk, chunk->word_size());
    1.43    }
    1.44    free_chunks_put(chunk);
    1.45  }
    1.46 @@ -1764,9 +1764,9 @@
    1.47      dec_free_chunks_total(chunk->capacity_word_size());
    1.48  
    1.49      if (TraceMetadataChunkAllocation && Verbose) {
    1.50 -      tty->print_cr("ChunkManager::free_chunks_get: free_list "
    1.51 -                    PTR_FORMAT " head " PTR_FORMAT " size " SIZE_FORMAT,
    1.52 -                    free_list, chunk, chunk->word_size());
    1.53 +      gclog_or_tty->print_cr("ChunkManager::free_chunks_get: free_list "
    1.54 +                             PTR_FORMAT " head " PTR_FORMAT " size " SIZE_FORMAT,
    1.55 +                             free_list, chunk, chunk->word_size());
    1.56      }
    1.57    } else {
    1.58      chunk = humongous_dictionary()->get_chunk(
    1.59 @@ -1776,10 +1776,10 @@
    1.60      if (chunk != NULL) {
    1.61        if (TraceMetadataHumongousAllocation) {
    1.62          size_t waste = chunk->word_size() - word_size;
    1.63 -        tty->print_cr("Free list allocate humongous chunk size " SIZE_FORMAT
    1.64 -                      " for requested size " SIZE_FORMAT
    1.65 -                      " waste " SIZE_FORMAT,
    1.66 -                      chunk->word_size(), word_size, waste);
    1.67 +        gclog_or_tty->print_cr("Free list allocate humongous chunk size "
    1.68 +                               SIZE_FORMAT " for requested size " SIZE_FORMAT
    1.69 +                               " waste " SIZE_FORMAT,
    1.70 +                               chunk->word_size(), word_size, waste);
    1.71        }
    1.72        // Chunk is being removed from the chunks free list.
    1.73        dec_free_chunks_total(chunk->capacity_word_size());
    1.74 @@ -1821,10 +1821,10 @@
    1.75      } else {
    1.76        list_count = humongous_dictionary()->total_count();
    1.77      }
    1.78 -    tty->print("ChunkManager::chunk_freelist_allocate: " PTR_FORMAT " chunk "
    1.79 -               PTR_FORMAT "  size " SIZE_FORMAT " count " SIZE_FORMAT " ",
    1.80 -               this, chunk, chunk->word_size(), list_count);
    1.81 -    locked_print_free_chunks(tty);
    1.82 +    gclog_or_tty->print("ChunkManager::chunk_freelist_allocate: " PTR_FORMAT " chunk "
    1.83 +                        PTR_FORMAT "  size " SIZE_FORMAT " count " SIZE_FORMAT " ",
    1.84 +                        this, chunk, chunk->word_size(), list_count);
    1.85 +    locked_print_free_chunks(gclog_or_tty);
    1.86    }
    1.87  
    1.88    return chunk;
    1.89 @@ -2344,7 +2344,7 @@
    1.90                          sum_count_in_chunks_in_use());
    1.91      new_chunk->print_on(gclog_or_tty);
    1.92      if (vs_list() != NULL) {
    1.93 -      vs_list()->chunk_manager()->locked_print_free_chunks(tty);
    1.94 +      vs_list()->chunk_manager()->locked_print_free_chunks(gclog_or_tty);
    1.95      }
    1.96    }
    1.97  }

mercurial