< prev index next >

src/share/vm/gc_implementation/g1/g1HRPrinter.cpp

Print this page
rev 7905 : imported patch 8067336-allow-that-plab-allocations-at-the-end-of-regions-are-flexible


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/g1/g1HRPrinter.hpp"
  27 #include "gc_implementation/g1/heapRegion.hpp"
  28 #include "utilities/ostream.hpp"
  29 
  30 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  31 
  32 const char* G1HRPrinter::action_name(ActionType action) {
  33   switch(action) {
  34     case Alloc:          return "ALLOC";
  35     case AllocForce:     return "ALLOC-FORCE";
  36     case Retire:         return "RETIRE";
  37     case Reuse:          return "REUSE";
  38     case CSet:           return "CSET";
  39     case EvacFailure:    return "EVAC-FAILURE";
  40     case Cleanup:        return "CLEANUP";
  41     case PostCompaction: return "POST-COMPACTION";
  42     case Commit:         return "COMMIT";
  43     case Uncommit:       return "UNCOMMIT";
  44     default:             ShouldNotReachHere();
  45   }
  46   // trying to keep the Windows compiler happy
  47   return NULL;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/g1/g1HRPrinter.hpp"
  27 #include "gc_implementation/g1/heapRegion.inline.hpp"
  28 #include "utilities/ostream.hpp"
  29 
  30 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  31 
  32 const char* G1HRPrinter::action_name(ActionType action) {
  33   switch(action) {
  34     case Alloc:          return "ALLOC";
  35     case AllocForce:     return "ALLOC-FORCE";
  36     case Retire:         return "RETIRE";
  37     case Reuse:          return "REUSE";
  38     case CSet:           return "CSET";
  39     case EvacFailure:    return "EVAC-FAILURE";
  40     case Cleanup:        return "CLEANUP";
  41     case PostCompaction: return "POST-COMPACTION";
  42     case Commit:         return "COMMIT";
  43     case Uncommit:       return "UNCOMMIT";
  44     default:             ShouldNotReachHere();
  45   }
  46   // trying to keep the Windows compiler happy
  47   return NULL;


< prev index next >