1.1 --- a/src/share/vm/runtime/safepoint.hpp Thu Sep 02 11:40:02 2010 -0700 1.2 +++ b/src/share/vm/runtime/safepoint.hpp Fri Sep 03 17:51:07 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -147,6 +147,9 @@ 1.11 static long last_non_safepoint_interval() { 1.12 return os::javaTimeMillis() - _end_of_last_safepoint; 1.13 } 1.14 + static long end_of_last_safepoint() { 1.15 + return _end_of_last_safepoint; 1.16 + } 1.17 static bool is_cleanup_needed(); 1.18 static void do_cleanup_tasks(); 1.19 1.20 @@ -228,15 +231,4 @@ 1.21 } 1.22 }; 1.23 1.24 -// 1.25 -// CounterDecay 1.26 -// 1.27 -// Interates through invocation counters and decrements them. This 1.28 -// is done at each safepoint. 1.29 -// 1.30 -class CounterDecay : public AllStatic { 1.31 - static jlong _last_timestamp; 1.32 - public: 1.33 - static void decay(); 1.34 - static bool is_decay_needed() { return (os::javaTimeMillis() - _last_timestamp) > CounterDecayMinIntervalLength; } 1.35 -}; 1.36 +