hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
changeset 25468 5331df506290
parent 24941 4ebbe176a7b1
equal deleted inserted replaced
25375:03eaa1688625 25468:5331df506290
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2014, 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.
    26 #include "gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp"
    26 #include "gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp"
    27 #include "gc_implementation/shared/gcStats.hpp"
    27 #include "gc_implementation/shared/gcStats.hpp"
    28 #include "memory/defNewGeneration.hpp"
    28 #include "memory/defNewGeneration.hpp"
    29 #include "memory/genCollectedHeap.hpp"
    29 #include "memory/genCollectedHeap.hpp"
    30 #include "runtime/thread.hpp"
    30 #include "runtime/thread.hpp"
    31 #ifdef TARGET_OS_FAMILY_linux
    31 
    32 # include "os_linux.inline.hpp"
       
    33 #endif
       
    34 #ifdef TARGET_OS_FAMILY_solaris
       
    35 # include "os_solaris.inline.hpp"
       
    36 #endif
       
    37 #ifdef TARGET_OS_FAMILY_windows
       
    38 # include "os_windows.inline.hpp"
       
    39 #endif
       
    40 #ifdef TARGET_OS_FAMILY_aix
       
    41 # include "os_aix.inline.hpp"
       
    42 #endif
       
    43 #ifdef TARGET_OS_FAMILY_bsd
       
    44 # include "os_bsd.inline.hpp"
       
    45 #endif
       
    46 elapsedTimer CMSAdaptiveSizePolicy::_concurrent_timer;
    32 elapsedTimer CMSAdaptiveSizePolicy::_concurrent_timer;
    47 elapsedTimer CMSAdaptiveSizePolicy::_STW_timer;
    33 elapsedTimer CMSAdaptiveSizePolicy::_STW_timer;
    48 
    34 
    49 // Defined if the granularity of the time measurements is potentially too large.
    35 // Defined if the granularity of the time measurements is potentially too large.
    50 #define CLOCK_GRANULARITY_TOO_LARGE
    36 #define CLOCK_GRANULARITY_TOO_LARGE