10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/cms/cmsHeap.hpp"
27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
28 #include "gc/cms/concurrentMarkSweepThread.hpp"
29 #include "gc/cms/vmCMSOperations.hpp"
30 #include "gc/shared/gcLocker.inline.hpp"
31 #include "gc/shared/gcTimer.hpp"
32 #include "gc/shared/gcTraceTime.inline.hpp"
33 #include "gc/shared/isGCActiveMark.hpp"
34 #include "runtime/handles.inline.hpp"
35 #include "runtime/interfaceSupport.inline.hpp"
36 #include "runtime/os.hpp"
37 #include "utilities/dtrace.hpp"
38
39 //////////////////////////////////////////////////////////
40 // Methods in abstract class VM_CMS_Operation
41 //////////////////////////////////////////////////////////
42 void VM_CMS_Operation::verify_before_gc() {
43 if (VerifyBeforeGC &&
44 CMSHeap::heap()->total_collections() >= VerifyGCStartAt) {
45 GCTraceTime(Info, gc, phases, verify) tm("Verify Before", _collector->_gc_timer_cm);
46 HandleMark hm;
47 FreelistLocker x(_collector);
48 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag);
49 CMSHeap::heap()->prepare_for_verify();
50 Universe::verify();
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/cms/cmsHeap.hpp"
27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
28 #include "gc/cms/concurrentMarkSweepThread.hpp"
29 #include "gc/cms/vmCMSOperations.hpp"
30 #include "gc/shared/gcLocker.hpp"
31 #include "gc/shared/gcTimer.hpp"
32 #include "gc/shared/gcTraceTime.inline.hpp"
33 #include "gc/shared/isGCActiveMark.hpp"
34 #include "runtime/handles.inline.hpp"
35 #include "runtime/interfaceSupport.inline.hpp"
36 #include "runtime/os.hpp"
37 #include "utilities/dtrace.hpp"
38
39 //////////////////////////////////////////////////////////
40 // Methods in abstract class VM_CMS_Operation
41 //////////////////////////////////////////////////////////
42 void VM_CMS_Operation::verify_before_gc() {
43 if (VerifyBeforeGC &&
44 CMSHeap::heap()->total_collections() >= VerifyGCStartAt) {
45 GCTraceTime(Info, gc, phases, verify) tm("Verify Before", _collector->_gc_timer_cm);
46 HandleMark hm;
47 FreelistLocker x(_collector);
48 MutexLockerEx y(_collector->bitMapLock(), Mutex::_no_safepoint_check_flag);
49 CMSHeap::heap()->prepare_for_verify();
50 Universe::verify();
|