8160356: invalid suffix on literal warning is occurred with GCC 6
Summary: Add whitespace separation
Reviewed-by: kbarrett, kvn
Contributed-by: yasuenag@gmail.com
--- a/hotspot/src/share/vm/classfile/moduleEntry.cpp Fri Jul 01 13:39:36 2016 +0200
+++ b/hotspot/src/share/vm/classfile/moduleEntry.cpp Thu Jun 30 19:16:14 2016 -0400
@@ -413,7 +413,7 @@
void ModuleEntry::print(outputStream* st) {
ResourceMark rm;
- st->print_cr("entry "PTR_FORMAT" name %s module "PTR_FORMAT" loader %s version %s location %s strict %s next "PTR_FORMAT,
+ st->print_cr("entry " PTR_FORMAT " name %s module " PTR_FORMAT " loader %s version %s location %s strict %s next " PTR_FORMAT,
p2i(this),
name() == NULL ? UNNAMED_MODULE : name()->as_C_string(),
p2i(module()),
--- a/hotspot/src/share/vm/classfile/packageEntry.cpp Fri Jul 01 13:39:36 2016 +0200
+++ b/hotspot/src/share/vm/classfile/packageEntry.cpp Thu Jun 30 19:16:14 2016 -0400
@@ -346,8 +346,8 @@
void PackageEntry::print(outputStream* st) {
ResourceMark rm;
- st->print_cr("package entry "PTR_FORMAT" name %s module %s classpath_index "
- INT32_FORMAT " is_exported_unqualified %d is_exported_allUnnamed %d " "next "PTR_FORMAT,
+ st->print_cr("package entry " PTR_FORMAT " name %s module %s classpath_index "
+ INT32_FORMAT " is_exported_unqualified %d is_exported_allUnnamed %d " "next " PTR_FORMAT,
p2i(this), name()->as_C_string(),
(module()->is_named() ? module()->name()->as_C_string() : UNNAMED_MODULE),
_classpath_index, _is_exported_unqualified, _is_exported_allUnnamed, p2i(next()));
--- a/hotspot/src/share/vm/gc/shared/preservedMarks.cpp Fri Jul 01 13:39:36 2016 +0200
+++ b/hotspot/src/share/vm/gc/shared/preservedMarks.cpp Thu Jun 30 19:16:14 2016 -0400
@@ -48,10 +48,10 @@
#ifndef PRODUCT
void PreservedMarks::assert_empty() {
- assert(_stack.is_empty(), "stack expected to be empty, size = "SIZE_FORMAT,
+ assert(_stack.is_empty(), "stack expected to be empty, size = " SIZE_FORMAT,
_stack.size());
assert(_stack.cache_size() == 0,
- "stack expected to have no cached segments, cache size = "SIZE_FORMAT,
+ "stack expected to have no cached segments, cache size = " SIZE_FORMAT,
_stack.cache_size());
}
#endif // ndef PRODUCT