src/share/vm/runtime/sweeper.cpp

changeset 8713
8dfbb002197a
parent 8075
be740540f60c
child 8856
ac27a9c85bea
child 9858
b985cbb00e68
     1.1 --- a/src/share/vm/runtime/sweeper.cpp	Thu Jan 05 18:55:20 2017 -0500
     1.2 +++ b/src/share/vm/runtime/sweeper.cpp	Wed Jan 11 04:26:49 2017 -0800
     1.3 @@ -319,6 +319,7 @@
     1.4  }
     1.5  
     1.6  void NMethodSweeper::sweep_code_cache() {
     1.7 +  ResourceMark rm;
     1.8    Ticks sweep_start_counter = Ticks::now();
     1.9  
    1.10    _flushed_count                = 0;
    1.11 @@ -626,6 +627,7 @@
    1.12  // state of the code cache if it's requested.
    1.13  void NMethodSweeper::log_sweep(const char* msg, const char* format, ...) {
    1.14    if (PrintMethodFlushing) {
    1.15 +    ResourceMark rm;
    1.16      stringStream s;
    1.17      // Dump code cache state into a buffer before locking the tty,
    1.18      // because log_state() will use locks causing lock conflicts.
    1.19 @@ -643,6 +645,7 @@
    1.20    }
    1.21  
    1.22    if (LogCompilation && (xtty != NULL)) {
    1.23 +    ResourceMark rm;
    1.24      stringStream s;
    1.25      // Dump code cache state into a buffer before locking the tty,
    1.26      // because log_state() will use locks causing lock conflicts.

mercurial