8227021: VM fails if any sun.boot.library.path paths are longer than JVM_MAXPATHLEN

The size of each path in sun.boot.library.path property should not exceed JVM_MAXPATHLEN

Reviewed-by: dholmes, coleenp, sspitsyn
This commit is contained in:
Adam Farley 2019-08-23 03:06:24 -07:00
parent 6e3a246c9a
commit ed45bde1a7
3 changed files with 105 additions and 30 deletions

View file

@ -821,7 +821,7 @@ class os: AllStatic {
// Amount beyond the callee frame size that we bang the stack.
static int extra_bang_size_in_bytes();
static char** split_path(const char* path, int* n);
static char** split_path(const char* path, size_t* elements, size_t file_name_length);
// support for mapping non-volatile memory using MAP_SYNC
static bool supports_map_sync();