Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082580 | emb-9 | Jeremy Manson | P3 | Resolved | Fixed | team |
os::getenv takes a buffer, and returns false in two cases: 1) if there was no environment variable, and 2) if the environment variable didn't fit into the buffer.
This makes it impossible to use this API to get the entire contents of the environment variable - you are limited to the length of the buffer.
Straight getenv() itself is part of the C99 spec, and supported on all platforms for which we build Hotspot. The only platform we know that doesn't support it is WinRT, and Hotspot doesn't target WinRT.
This makes it impossible to use this API to get the entire contents of the environment variable - you are limited to the length of the buffer.
Straight getenv() itself is part of the C99 spec, and supported on all platforms for which we build Hotspot. The only platform we know that doesn't support it is WinRT, and Hotspot doesn't target WinRT.
- backported by
-
JDK-8082580 os::getenv is inadequate
- Resolved
- relates to
-
JDK-8288483 JAVA_TOOL_OPTIONS are silently truncated if they exceed 1024 bytes
- In Progress
-
JDK-8076450 com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java: assert(!on_C_heap() || allocated_on_C_heap()) failed: growable array must be on C heap if elements are
- Resolved
-
JDK-8145740 Visual Studio pragmas should be guarded by #ifdef _MSC_VER
- Resolved
-
JDK-8207139 NMT is not enabled on Windows 2016/10
- Closed