hotspot/src/share/vm/memory/genCollectedHeap.hpp
changeset 19986 33d188c66ed9
parent 19286 48394008c803
child 21560 b3ae3ba25ebb
equal deleted inserted replaced
19983:82c1a95ae314 19986:33d188c66ed9
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   144   virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) gen_policy(); }
   144   virtual CollectorPolicy* collector_policy() const { return (CollectorPolicy*) gen_policy(); }
   145 
   145 
   146   // Adaptive size policy
   146   // Adaptive size policy
   147   virtual AdaptiveSizePolicy* size_policy() {
   147   virtual AdaptiveSizePolicy* size_policy() {
   148     return gen_policy()->size_policy();
   148     return gen_policy()->size_policy();
       
   149   }
       
   150 
       
   151   // Return the (conservative) maximum heap alignment
       
   152   static size_t conservative_max_heap_alignment() {
       
   153     return Generation::GenGrain;
   149   }
   154   }
   150 
   155 
   151   size_t capacity() const;
   156   size_t capacity() const;
   152   size_t used() const;
   157   size_t used() const;
   153 
   158