equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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. |
33 #include "prims/jvmtiRedefineClasses.hpp" |
33 #include "prims/jvmtiRedefineClasses.hpp" |
34 #include "runtime/compilationPolicy.hpp" |
34 #include "runtime/compilationPolicy.hpp" |
35 #include "runtime/deoptimization.hpp" |
35 #include "runtime/deoptimization.hpp" |
36 #include "runtime/handles.inline.hpp" |
36 #include "runtime/handles.inline.hpp" |
37 #include "runtime/orderAccess.inline.hpp" |
37 #include "runtime/orderAccess.inline.hpp" |
|
38 |
|
39 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
38 |
40 |
39 // ================================================================== |
41 // ================================================================== |
40 // DataLayout |
42 // DataLayout |
41 // |
43 // |
42 // Overlay for generic profiling data. |
44 // Overlay for generic profiling data. |
125 if (trap != 0) { |
127 if (trap != 0) { |
126 char buf[100]; |
128 char buf[100]; |
127 st->print("trap(%s) ", Deoptimization::format_trap_state(buf, sizeof(buf), trap)); |
129 st->print("trap(%s) ", Deoptimization::format_trap_state(buf, sizeof(buf), trap)); |
128 } |
130 } |
129 if (extra != NULL) { |
131 if (extra != NULL) { |
130 st->print(extra); |
132 st->print("%s", extra); |
131 } |
133 } |
132 int flags = data()->flags(); |
134 int flags = data()->flags(); |
133 if (flags != 0) { |
135 if (flags != 0) { |
134 st->print("flags(%d) ", flags); |
136 st->print("flags(%d) ", flags); |
135 } |
137 } |
633 bool ParametersTypeData::profiling_enabled() { |
635 bool ParametersTypeData::profiling_enabled() { |
634 return MethodData::profile_parameters(); |
636 return MethodData::profile_parameters(); |
635 } |
637 } |
636 |
638 |
637 void ParametersTypeData::print_data_on(outputStream* st, const char* extra) const { |
639 void ParametersTypeData::print_data_on(outputStream* st, const char* extra) const { |
638 st->print("parameter types", extra); |
640 st->print("parameter types"); // FIXME extra ignored? |
639 _parameters.print_data_on(st); |
641 _parameters.print_data_on(st); |
640 } |
642 } |
641 |
643 |
642 void SpeculativeTrapData::print_data_on(outputStream* st, const char* extra) const { |
644 void SpeculativeTrapData::print_data_on(outputStream* st, const char* extra) const { |
643 print_shared(st, "SpeculativeTrapData", extra); |
645 print_shared(st, "SpeculativeTrapData", extra); |