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/shared/gcTimer.hpp"
27 #include "gc/shared/referenceProcessorPhaseTimes.hpp"
28 #include "gc/shared/referenceProcessor.inline.hpp"
29 #include "gc/shared/workerDataArray.inline.hpp"
30 #include "logging/log.hpp"
31 #include "logging/logStream.hpp"
32 #include "memory/allocation.inline.hpp"
33
34 #define ASSERT_REF_TYPE(ref_type) assert((ref_type) >= REF_SOFT && (ref_type) <= REF_PHANTOM, \
35 "Invariant (%d)", (int)ref_type)
36
37 #define ASSERT_PHASE(phase) assert((phase) >= ReferenceProcessor::RefPhase1 && \
38 (phase) < ReferenceProcessor::RefPhaseMax, \
39 "Invariant (%d)", (int)phase);
40
41 #define ASSERT_SUB_PHASE(phase) assert((phase) >= ReferenceProcessor::SoftRefSubPhase1 && \
42 (phase) < ReferenceProcessor::RefSubPhaseMax, \
43 "Invariant (%d)", (int)phase);
44
45 static const char* SubPhasesParWorkTitle[ReferenceProcessor::RefSubPhaseMax] = {
46 "SoftRef (ms):",
47 "SoftRef (ms):",
48 "WeakRef (ms):",
49 "FinalRef (ms):",
50 "FinalRef (ms):",
51 "PhantomRef (ms):"
52 };
|
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/shared/gcTimer.hpp"
27 #include "gc/shared/referenceProcessorPhaseTimes.hpp"
28 #include "gc/shared/referenceProcessor.inline.hpp"
29 #include "gc/shared/workerDataArray.inline.hpp"
30 #include "logging/log.hpp"
31 #include "logging/logStream.hpp"
32 #include "memory/allocation.inline.hpp"
33 #include "runtime/atomic.hpp"
34
35 #define ASSERT_REF_TYPE(ref_type) assert((ref_type) >= REF_SOFT && (ref_type) <= REF_PHANTOM, \
36 "Invariant (%d)", (int)ref_type)
37
38 #define ASSERT_PHASE(phase) assert((phase) >= ReferenceProcessor::RefPhase1 && \
39 (phase) < ReferenceProcessor::RefPhaseMax, \
40 "Invariant (%d)", (int)phase);
41
42 #define ASSERT_SUB_PHASE(phase) assert((phase) >= ReferenceProcessor::SoftRefSubPhase1 && \
43 (phase) < ReferenceProcessor::RefSubPhaseMax, \
44 "Invariant (%d)", (int)phase);
45
46 static const char* SubPhasesParWorkTitle[ReferenceProcessor::RefSubPhaseMax] = {
47 "SoftRef (ms):",
48 "SoftRef (ms):",
49 "WeakRef (ms):",
50 "FinalRef (ms):",
51 "FinalRef (ms):",
52 "PhantomRef (ms):"
53 };
|