Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/instanceKlass.cpp @ 17937:78bbf4d43a14
8037816: Fix for 8036122 breaks build with Xcode5/clang
8043029: Change 8037816 breaks HS build with older GCC versions which don't support diagnostic pragmas
8043164: Format warning in traceStream.hpp
Summary: Backport of main fix + two corrections, enables clang compilation, turns on format attributes, corrects/mutes warnings
Reviewed-by: kvn, coleenp, iveresov, twisti
author | drchase |
---|---|
date | Thu, 22 May 2014 15:52:41 -0400 |
parents | 386dd1c71858 |
children | bd4d69d9cb7d |
comparison
equal
deleted
inserted
replaced
17935:7384f6a12fc1 | 17937:78bbf4d43a14 |
---|---|
73 #endif // INCLUDE_ALL_GCS | 73 #endif // INCLUDE_ALL_GCS |
74 #ifdef COMPILER1 | 74 #ifdef COMPILER1 |
75 #include "c1/c1_Compiler.hpp" | 75 #include "c1/c1_Compiler.hpp" |
76 #endif | 76 #endif |
77 | 77 |
78 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC | |
79 | |
78 #ifdef DTRACE_ENABLED | 80 #ifdef DTRACE_ENABLED |
79 | 81 |
80 #ifndef USDT2 | 82 #ifndef USDT2 |
81 | 83 |
82 HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required, | 84 HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required, |
2893 Klass::print_on(st); | 2895 Klass::print_on(st); |
2894 | 2896 |
2895 st->print(BULLET"instance size: %d", size_helper()); st->cr(); | 2897 st->print(BULLET"instance size: %d", size_helper()); st->cr(); |
2896 st->print(BULLET"klass size: %d", size()); st->cr(); | 2898 st->print(BULLET"klass size: %d", size()); st->cr(); |
2897 st->print(BULLET"access: "); access_flags().print_on(st); st->cr(); | 2899 st->print(BULLET"access: "); access_flags().print_on(st); st->cr(); |
2898 st->print(BULLET"state: "); st->print_cr(state_names[_init_state]); | 2900 st->print(BULLET"state: "); st->print_cr("%s", state_names[_init_state]); |
2899 st->print(BULLET"name: "); name()->print_value_on(st); st->cr(); | 2901 st->print(BULLET"name: "); name()->print_value_on(st); st->cr(); |
2900 st->print(BULLET"super: "); super()->print_value_on_maybe_null(st); st->cr(); | 2902 st->print(BULLET"super: "); super()->print_value_on_maybe_null(st); st->cr(); |
2901 st->print(BULLET"sub: "); | 2903 st->print(BULLET"sub: "); |
2902 Klass* sub = subklass(); | 2904 Klass* sub = subklass(); |
2903 int n; | 2905 int n; |