Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/arguments.cpp @ 5915:2d503de963b3
7148152: Add whitebox testing API to HotSpot
Summary: Add an internal testing API to HotSpot to enable more targeted testing of vm functionality
Reviewed-by: phh, dholmes
author | mgerdin |
---|---|
date | Thu, 23 Feb 2012 14:58:35 +0100 |
parents | 15085a6eb50c |
children | 80fe40862b02 56ee89841dc4 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Fri Feb 17 15:11:32 2012 -0800 +++ b/src/share/vm/runtime/arguments.cpp Thu Feb 23 14:58:35 2012 +0100 @@ -2050,6 +2050,19 @@ FREE_C_HEAP_ARRAY(char, altclasses_path); } + if (WhiteBoxAPI) { + // Append wb.jar to bootclasspath if enabled + const char* wb_jar = "wb.jar"; + size_t wb_path_len = strlen(get_meta_index_dir()) + 1 + + strlen(wb_jar); + char* wb_path = NEW_C_HEAP_ARRAY(char, wb_path_len); + strcpy(wb_path, get_meta_index_dir()); + strcat(wb_path, wb_jar); + scp.add_suffix(wb_path); + scp_assembly_required = true; + FREE_C_HEAP_ARRAY(char, wb_path); + } + // Parse _JAVA_OPTIONS environment variable (if present) (mimics classic VM) result = parse_java_options_environment_variable(&scp, &scp_assembly_required); if (result != JNI_OK) {