src/hotspot/share/gc/z/zForwardingTable.hpp
changeset 53244 9807daeb47c4
parent 50525 767cdb97f103
child 54162 f344a0c6e19e
equal deleted inserted replaced
53243:8bea4144b21c 53244:9807daeb47c4
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, 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.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 #ifndef SHARE_GC_Z_ZFORWARDING_HPP
    24 #ifndef SHARE_GC_Z_ZFORWARDINGTABLE_HPP
    25 #define SHARE_GC_Z_ZFORWARDING_HPP
    25 #define SHARE_GC_Z_ZFORWARDINGTABLE_HPP
    26 
    26 
    27 #include "gc/z/zForwardingTableEntry.hpp"
    27 #include "gc/z/zForwardingTableEntry.hpp"
    28 #include "memory/allocation.hpp"
    28 #include "memory/allocation.hpp"
    29 
    29 
    30 typedef size_t ZForwardingTableCursor;
    30 typedef size_t ZForwardingTableCursor;
    54   uintptr_t insert(uintptr_t from_index, uintptr_t to_offset, ZForwardingTableCursor* cursor);
    54   uintptr_t insert(uintptr_t from_index, uintptr_t to_offset, ZForwardingTableCursor* cursor);
    55 
    55 
    56   void verify(size_t object_max_count, size_t live_objects) const;
    56   void verify(size_t object_max_count, size_t live_objects) const;
    57 };
    57 };
    58 
    58 
    59 #endif // SHARE_GC_Z_ZFORWARDING_HPP
    59 #endif // SHARE_GC_Z_ZFORWARDINGTABLE_HPP