equal
deleted
inserted
replaced
37 #include "utilities/macros.hpp" |
37 #include "utilities/macros.hpp" |
38 #if INCLUDE_ALL_GCS |
38 #if INCLUDE_ALL_GCS |
39 # include "gc_implementation/parallelScavenge/psPromotionManager.hpp" |
39 # include "gc_implementation/parallelScavenge/psPromotionManager.hpp" |
40 #endif // INCLUDE_ALL_GCS |
40 #endif // INCLUDE_ALL_GCS |
41 |
41 |
42 |
42 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
43 // Implememtation of ConstantPoolCacheEntry |
43 |
|
44 // Implementation of ConstantPoolCacheEntry |
44 |
45 |
45 void ConstantPoolCacheEntry::initialize_entry(int index) { |
46 void ConstantPoolCacheEntry::initialize_entry(int index) { |
46 assert(0 < index && index < 0x10000, "sanity check"); |
47 assert(0 < index && index < 0x10000, "sanity check"); |
47 _indices = index; |
48 _indices = index; |
48 _f1 = NULL; |
49 _f1 = NULL; |
666 |
667 |
667 // Printing |
668 // Printing |
668 |
669 |
669 void ConstantPoolCache::print_on(outputStream* st) const { |
670 void ConstantPoolCache::print_on(outputStream* st) const { |
670 assert(is_constantPoolCache(), "obj must be constant pool cache"); |
671 assert(is_constantPoolCache(), "obj must be constant pool cache"); |
671 st->print_cr(internal_name()); |
672 st->print_cr("%s", internal_name()); |
672 // print constant pool cache entries |
673 // print constant pool cache entries |
673 for (int i = 0; i < length(); i++) entry_at(i)->print(st, i); |
674 for (int i = 0; i < length(); i++) entry_at(i)->print(st, i); |
674 } |
675 } |
675 |
676 |
676 void ConstantPoolCache::print_value_on(outputStream* st) const { |
677 void ConstantPoolCache::print_value_on(outputStream* st) const { |