mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8081202: Hotspot compile warning: "Invalid suffix on literal; C++11 requires a space between literal and identifier"
Need to add a space between macro identifier and string literal Reviewed-by: stefank, dholmes, kbarrett
This commit is contained in:
parent
912d770499
commit
304b59b0c8
85 changed files with 462 additions and 462 deletions
|
@ -350,11 +350,11 @@ class G1CodeRootSetTest {
|
|||
assert(set1.is_empty(), "Code root set must be initially empty but is not.");
|
||||
|
||||
assert(G1CodeRootSet::static_mem_size() == sizeof(void*),
|
||||
err_msg("The code root set's static memory usage is incorrect, "SIZE_FORMAT" bytes", G1CodeRootSet::static_mem_size()));
|
||||
err_msg("The code root set's static memory usage is incorrect, " SIZE_FORMAT " bytes", G1CodeRootSet::static_mem_size()));
|
||||
|
||||
set1.add((nmethod*)1);
|
||||
assert(set1.length() == 1, err_msg("Added exactly one element, but set contains "
|
||||
SIZE_FORMAT" elements", set1.length()));
|
||||
SIZE_FORMAT " elements", set1.length()));
|
||||
|
||||
const size_t num_to_add = (size_t)G1CodeRootSet::Threshold + 1;
|
||||
|
||||
|
@ -363,14 +363,14 @@ class G1CodeRootSetTest {
|
|||
}
|
||||
assert(set1.length() == 1,
|
||||
err_msg("Duplicate detection should not have increased the set size but "
|
||||
"is "SIZE_FORMAT, set1.length()));
|
||||
"is " SIZE_FORMAT, set1.length()));
|
||||
|
||||
for (size_t i = 2; i <= num_to_add; i++) {
|
||||
set1.add((nmethod*)(uintptr_t)(i));
|
||||
}
|
||||
assert(set1.length() == num_to_add,
|
||||
err_msg("After adding in total "SIZE_FORMAT" distinct code roots, they "
|
||||
"need to be in the set, but there are only "SIZE_FORMAT,
|
||||
err_msg("After adding in total " SIZE_FORMAT " distinct code roots, they "
|
||||
"need to be in the set, but there are only " SIZE_FORMAT,
|
||||
num_to_add, set1.length()));
|
||||
|
||||
assert(CodeRootSetTable::_purge_list != NULL, "should have grown to large hashtable");
|
||||
|
@ -385,7 +385,7 @@ class G1CodeRootSetTest {
|
|||
}
|
||||
}
|
||||
assert(num_popped == num_to_add,
|
||||
err_msg("Managed to pop "SIZE_FORMAT" code roots, but only "SIZE_FORMAT" "
|
||||
err_msg("Managed to pop " SIZE_FORMAT " code roots, but only " SIZE_FORMAT " "
|
||||
"were added", num_popped, num_to_add));
|
||||
assert(CodeRootSetTable::_purge_list != NULL, "should have grown to large hashtable");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue