mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8271003: hs_err improvement: handle CLASSPATH env setting longer than O_BUFLEN
Reviewed-by: dholmes, stuefe, iklam, minqi
This commit is contained in:
parent
43a6ba9677
commit
3435d299f7
2 changed files with 86 additions and 1 deletions
|
@ -989,7 +989,9 @@ void os::print_environment_variables(outputStream* st, const char** env_list) {
|
|||
if (envvar != NULL) {
|
||||
st->print("%s", env_list[i]);
|
||||
st->print("=");
|
||||
st->print_cr("%s", envvar);
|
||||
st->print("%s", envvar);
|
||||
// Use separate cr() printing to avoid unnecessary buffer operations that might cause truncation.
|
||||
st->cr();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue