1.1 --- a/src/share/vm/oops/cpCache.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/oops/cpCache.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -38,8 +38,9 @@ 1.11 # include "gc_implementation/parallelScavenge/psPromotionManager.hpp" 1.12 #endif // INCLUDE_ALL_GCS 1.13 1.14 +PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 1.15 1.16 -// Implememtation of ConstantPoolCacheEntry 1.17 +// Implementation of ConstantPoolCacheEntry 1.18 1.19 void ConstantPoolCacheEntry::initialize_entry(int index) { 1.20 assert(0 < index && index < 0x10000, "sanity check"); 1.21 @@ -667,7 +668,7 @@ 1.22 1.23 void ConstantPoolCache::print_on(outputStream* st) const { 1.24 assert(is_constantPoolCache(), "obj must be constant pool cache"); 1.25 - st->print_cr(internal_name()); 1.26 + st->print_cr("%s", internal_name()); 1.27 // print constant pool cache entries 1.28 for (int i = 0; i < length(); i++) entry_at(i)->print(st, i); 1.29 }