1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2010, 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. |
145 |
145 |
146 // VM Thread interface for determining safepoint rate |
146 // VM Thread interface for determining safepoint rate |
147 static long last_non_safepoint_interval() { |
147 static long last_non_safepoint_interval() { |
148 return os::javaTimeMillis() - _end_of_last_safepoint; |
148 return os::javaTimeMillis() - _end_of_last_safepoint; |
149 } |
149 } |
|
150 static long end_of_last_safepoint() { |
|
151 return _end_of_last_safepoint; |
|
152 } |
150 static bool is_cleanup_needed(); |
153 static bool is_cleanup_needed(); |
151 static void do_cleanup_tasks(); |
154 static void do_cleanup_tasks(); |
152 |
155 |
153 // debugging |
156 // debugging |
154 static void print_state() PRODUCT_RETURN; |
157 static void print_state() PRODUCT_RETURN; |