equal
deleted
inserted
replaced
39 #include "runtime/fieldType.hpp" |
39 #include "runtime/fieldType.hpp" |
40 #include "runtime/init.hpp" |
40 #include "runtime/init.hpp" |
41 #include "runtime/javaCalls.hpp" |
41 #include "runtime/javaCalls.hpp" |
42 #include "runtime/signature.hpp" |
42 #include "runtime/signature.hpp" |
43 #include "runtime/vframe.hpp" |
43 #include "runtime/vframe.hpp" |
|
44 |
|
45 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
44 |
46 |
45 ConstantPool* ConstantPool::allocate(ClassLoaderData* loader_data, int length, TRAPS) { |
47 ConstantPool* ConstantPool::allocate(ClassLoaderData* loader_data, int length, TRAPS) { |
46 // Tags are RW but comment below applies to tags also. |
48 // Tags are RW but comment below applies to tags also. |
47 Array<u1>* tags = MetadataFactory::new_writeable_array<u1>(loader_data, length, 0, CHECK_NULL); |
49 Array<u1>* tags = MetadataFactory::new_writeable_array<u1>(loader_data, length, 0, CHECK_NULL); |
48 |
50 |
1890 |
1892 |
1891 // Printing |
1893 // Printing |
1892 |
1894 |
1893 void ConstantPool::print_on(outputStream* st) const { |
1895 void ConstantPool::print_on(outputStream* st) const { |
1894 assert(is_constantPool(), "must be constantPool"); |
1896 assert(is_constantPool(), "must be constantPool"); |
1895 st->print_cr(internal_name()); |
1897 st->print_cr("%s", internal_name()); |
1896 if (flags() != 0) { |
1898 if (flags() != 0) { |
1897 st->print(" - flags: 0x%x", flags()); |
1899 st->print(" - flags: 0x%x", flags()); |
1898 if (has_preresolution()) st->print(" has_preresolution"); |
1900 if (has_preresolution()) st->print(" has_preresolution"); |
1899 if (on_stack()) st->print(" on_stack"); |
1901 if (on_stack()) st->print(" on_stack"); |
1900 st->cr(); |
1902 st->cr(); |