comparison src/share/vm/classfile/classLoader.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 2b8e28fdf503
children 52b4284cb496 ca6d25be853b 6e0cb14ce59b
comparison
equal deleted inserted replaced
17935:7384f6a12fc1 17937:78bbf4d43a14
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 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.
341 static void print_meta_index(LazyClassPathEntry* entry, 341 static void print_meta_index(LazyClassPathEntry* entry,
342 GrowableArray<char*>& meta_packages) { 342 GrowableArray<char*>& meta_packages) {
343 tty->print("[Meta index for %s=", entry->name()); 343 tty->print("[Meta index for %s=", entry->name());
344 for (int i = 0; i < meta_packages.length(); i++) { 344 for (int i = 0; i < meta_packages.length(); i++) {
345 if (i > 0) tty->print(" "); 345 if (i > 0) tty->print(" ");
346 tty->print(meta_packages.at(i)); 346 tty->print("%s", meta_packages.at(i));
347 } 347 }
348 tty->print_cr("]"); 348 tty->print_cr("]");
349 } 349 }
350 350
351 351
1297 if (e->is_rt_jar() && e != _first_entry) break; 1297 if (e->is_rt_jar() && e != _first_entry) break;
1298 e->compile_the_world(system_class_loader, CATCH); 1298 e->compile_the_world(system_class_loader, CATCH);
1299 e = e->next(); 1299 e = e->next();
1300 } 1300 }
1301 jlong end = os::javaTimeMillis(); 1301 jlong end = os::javaTimeMillis();
1302 tty->print_cr("CompileTheWorld : Done (%d classes, %d methods, %d ms)", 1302 tty->print_cr("CompileTheWorld : Done (%d classes, %d methods, " JLONG_FORMAT " ms)",
1303 _compile_the_world_class_counter, _compile_the_world_method_counter, (end - start)); 1303 _compile_the_world_class_counter, _compile_the_world_method_counter, (end - start));
1304 { 1304 {
1305 // Print statistics as if before normal exit: 1305 // Print statistics as if before normal exit:
1306 extern void print_statistics(); 1306 extern void print_statistics();
1307 print_statistics(); 1307 print_statistics();