hotspot/src/share/vm/gc/g1/dirtyCardQueue.hpp
changeset 46305 bff6d23aa1e3
parent 37197 282fa21230c3
child 46653 d72083d17b19
equal deleted inserted replaced
46304:8d4d88f90669 46305:bff6d23aa1e3
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2017, 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   // doing something else, with auto-flush on completion.
    49   // doing something else, with auto-flush on completion.
    50   ~DirtyCardQueue();
    50   ~DirtyCardQueue();
    51 
    51 
    52   // Process queue entries and release resources.
    52   // Process queue entries and release resources.
    53   void flush() { flush_impl(); }
    53   void flush() { flush_impl(); }
    54 
       
    55   void **get_buf() { return _buf;}
       
    56   size_t get_index() { return _index;}
       
    57   void reinitialize() { _buf = 0; _sz = 0; _index = 0;}
       
    58 
    54 
    59   // Compiler support.
    55   // Compiler support.
    60   static ByteSize byte_offset_of_index() {
    56   static ByteSize byte_offset_of_index() {
    61     return PtrQueue::byte_offset_of_index<DirtyCardQueue>();
    57     return PtrQueue::byte_offset_of_index<DirtyCardQueue>();
    62   }
    58   }