< prev index next >

src/hotspot/share/gc/g1/g1OopStarChunkedList.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 30,42 **** delete_list(_croots); delete_list(_oops); delete_list(_coops); } ! size_t G1OopStarChunkedList::oops_do(OopClosure* obj_cl, OopClosure* root_cl) { ! size_t result = 0; ! result += chunks_do(_roots, root_cl); ! result += chunks_do(_croots, root_cl); ! result += chunks_do(_oops, obj_cl); ! result += chunks_do(_coops, obj_cl); ! return result; } --- 30,40 ---- delete_list(_croots); delete_list(_oops); delete_list(_coops); } ! void G1OopStarChunkedList::oops_do(OopClosure* obj_cl, OopClosure* root_cl) { ! chunks_do(_roots, root_cl); ! chunks_do(_croots, root_cl); ! chunks_do(_oops, obj_cl); ! chunks_do(_coops, obj_cl); }
< prev index next >