mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8197408: Bad pointer comparison and small cleanup in os_linux.cpp
Reviewed-by: bobv, stuefe
This commit is contained in:
parent
8241f85b85
commit
5287d9a366
4 changed files with 146 additions and 82 deletions
|
@ -414,9 +414,9 @@ void OSContainer::init() {
|
|||
|
||||
}
|
||||
|
||||
char * OSContainer::container_type() {
|
||||
const char * OSContainer::container_type() {
|
||||
if (is_containerized()) {
|
||||
return (char *)"cgroupv1";
|
||||
return "cgroupv1";
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue