hotspot/src/share/vm/memory/allocation.hpp
changeset 7397 5b173b4ca846
parent 6762 f8d1b560700e
child 7440 eabaf35910a1
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2010, 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.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
       
    25 #ifndef SHARE_VM_MEMORY_ALLOCATION_HPP
       
    26 #define SHARE_VM_MEMORY_ALLOCATION_HPP
       
    27 
       
    28 #include "runtime/globals.hpp"
       
    29 #include "utilities/globalDefinitions.hpp"
       
    30 #ifdef COMPILER1
       
    31 #include "c1/c1_globals.hpp"
       
    32 #endif
       
    33 #ifdef COMPILER2
       
    34 #include "opto/c2_globals.hpp"
       
    35 #endif
       
    36 
    25 #define ARENA_ALIGN_M1 (((size_t)(ARENA_AMALLOC_ALIGNMENT)) - 1)
    37 #define ARENA_ALIGN_M1 (((size_t)(ARENA_AMALLOC_ALIGNMENT)) - 1)
    26 #define ARENA_ALIGN_MASK (~((size_t)ARENA_ALIGN_M1))
    38 #define ARENA_ALIGN_MASK (~((size_t)ARENA_ALIGN_M1))
    27 #define ARENA_ALIGN(x) ((((size_t)(x)) + ARENA_ALIGN_M1) & ARENA_ALIGN_MASK)
    39 #define ARENA_ALIGN(x) ((((size_t)(x)) + ARENA_ALIGN_M1) & ARENA_ALIGN_MASK)
    28 
    40 
    29 // All classes in the virtual machine must be subclassed
    41 // All classes in the virtual machine must be subclassed
   417 
   429 
   418 public:
   430 public:
   419   ReallocMark()   PRODUCT_RETURN;
   431   ReallocMark()   PRODUCT_RETURN;
   420   void check()    PRODUCT_RETURN;
   432   void check()    PRODUCT_RETURN;
   421 };
   433 };
       
   434 
       
   435 #endif // SHARE_VM_MEMORY_ALLOCATION_HPP