Skip to content

Commit d936556

Browse files
committed
8341633: StatSampler::assert_system_property: Print the keys and values of the assert
Reviewed-by: stefank
1 parent 3fba170 commit d936556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/runtime/statSampler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ void StatSampler::assert_system_property(const char* name, const char* value, TR
201201
// convert Java String to utf8 string
202202
char* system_value = java_lang_String::as_utf8_string(value_oop);
203203

204-
assert(strcmp(value, system_value) == 0, "property value mustn't differ from System.getProperty");
204+
assert(strcmp(value, system_value) == 0, "property value mustn't differ from System.getProperty. Our value is: %s, System.getProperty is: %s",
205+
value, system_value);
205206
#endif // ASSERT
206207
}
207208

0 commit comments

Comments
 (0)