mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com> Co-authored-by: Alex Buckley <alex.buckley@oracle.com> Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com> Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com> Co-authored-by: James Laskey <james.laskey@oracle.com> Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com> Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com> Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com> Co-authored-by: Mandy Chung <mandy.chung@oracle.com> Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com> Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com> Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com> Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
This commit is contained in:
parent
785151164a
commit
393a39afe3
19 changed files with 944 additions and 146 deletions
|
@ -1230,11 +1230,21 @@ bool os::set_boot_path(char fileSep, char pathSep) {
|
|||
Arguments::set_meta_index_path(meta_index, meta_index_dir);
|
||||
|
||||
char* sysclasspath = NULL;
|
||||
struct stat st;
|
||||
|
||||
// modular image if bootmodules.jimage exists
|
||||
char* jimage = format_boot_path("%/lib/modules/bootmodules.jimage", home, home_len, fileSep, pathSep);
|
||||
if (jimage == NULL) return false;
|
||||
bool has_jimage = (os::stat(jimage, &st) == 0);
|
||||
if (has_jimage) {
|
||||
Arguments::set_sysclasspath(jimage);
|
||||
return true;
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(char, jimage, mtInternal);
|
||||
|
||||
// images build if rt.jar exists
|
||||
char* rt_jar = format_boot_path("%/lib/rt.jar", home, home_len, fileSep, pathSep);
|
||||
if (rt_jar == NULL) return false;
|
||||
struct stat st;
|
||||
bool has_rt_jar = (os::stat(rt_jar, &st) == 0);
|
||||
FREE_C_HEAP_ARRAY(char, rt_jar, mtInternal);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue