equal
deleted
inserted
replaced
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 } |