1 /* |
1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2012, 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. |
67 |
66 |
68 // Total virtual time so far. |
67 // Total virtual time so far. |
69 double vtime_accum(); |
68 double vtime_accum(); |
70 // Marking virtual time so far |
69 // Marking virtual time so far |
71 double vtime_mark_accum(); |
70 double vtime_mark_accum(); |
72 // Counting virtual time so far. |
|
73 double vtime_count_accum() { return _vtime_count_accum; } |
|
74 |
71 |
75 ConcurrentMark* cm() { return _cm; } |
72 ConcurrentMark* cm() { return _cm; } |
76 |
73 |
77 void set_started() { assert(!_in_progress, "cycle in progress"); _started = true; } |
74 void set_started() { assert(!_in_progress, "cycle in progress"); _started = true; } |
78 void clear_started() { assert(_in_progress, "must be starting a cycle"); _started = false; } |
75 void clear_started() { assert(_in_progress, "must be starting a cycle"); _started = false; } |