src/hotspot/share/gc/z/zHeapIterator.cpp
changeset 51803 a16777c0a6c5
parent 50875 2217b2fc29ea
child 52139 5a2af44ecb83
equal deleted inserted replaced
51802:15094d12a632 51803:a16777c0a6c5
     1 /*
     1 /*
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2018, 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.
    49     _map.set_bit(index);
    49     _map.set_bit(index);
    50     return true;
    50     return true;
    51   }
    51   }
    52 };
    52 };
    53 
    53 
    54 class ZHeapIteratorRootOopClosure : public OopClosure {
    54 class ZHeapIteratorRootOopClosure : public ZRootsIteratorClosure {
    55 private:
    55 private:
    56   ZHeapIterator* const _iter;
    56   ZHeapIterator* const _iter;
    57   ObjectClosure* const _cl;
    57   ObjectClosure* const _cl;
    58 
    58 
    59 public:
    59 public: