src/hotspot/share/gc/z/zMemory.hpp
changeset 54834 39ba09047e19
parent 50525 767cdb97f103
child 58812 4adca7312d8f
equal deleted inserted replaced
54833:76751d3faf7b 54834:39ba09047e19
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, 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.
    52 private:
    52 private:
    53   ZList<ZMemory> _freelist;
    53   ZList<ZMemory> _freelist;
    54 
    54 
    55 public:
    55 public:
    56   uintptr_t alloc_from_front(size_t size);
    56   uintptr_t alloc_from_front(size_t size);
       
    57   uintptr_t alloc_from_front_at_most(size_t size, size_t* allocated);
    57   uintptr_t alloc_from_back(size_t size);
    58   uintptr_t alloc_from_back(size_t size);
       
    59   uintptr_t alloc_from_back_at_most(size_t size, size_t* allocated);
    58   void free(uintptr_t start, size_t size);
    60   void free(uintptr_t start, size_t size);
    59 };
    61 };
    60 
    62 
    61 #endif // SHARE_GC_Z_ZMEMORY_HPP
    63 #endif // SHARE_GC_Z_ZMEMORY_HPP