Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
4956:4ab89de75552 | 5915:2d503de963b3 |
---|---|
2046 strcpy(altclasses_path, get_meta_index_dir()); | 2046 strcpy(altclasses_path, get_meta_index_dir()); |
2047 strcat(altclasses_path, altclasses_jar); | 2047 strcat(altclasses_path, altclasses_jar); |
2048 scp.add_suffix_to_prefix(altclasses_path); | 2048 scp.add_suffix_to_prefix(altclasses_path); |
2049 scp_assembly_required = true; | 2049 scp_assembly_required = true; |
2050 FREE_C_HEAP_ARRAY(char, altclasses_path); | 2050 FREE_C_HEAP_ARRAY(char, altclasses_path); |
2051 } | |
2052 | |
2053 if (WhiteBoxAPI) { | |
2054 // Append wb.jar to bootclasspath if enabled | |
2055 const char* wb_jar = "wb.jar"; | |
2056 size_t wb_path_len = strlen(get_meta_index_dir()) + 1 + | |
2057 strlen(wb_jar); | |
2058 char* wb_path = NEW_C_HEAP_ARRAY(char, wb_path_len); | |
2059 strcpy(wb_path, get_meta_index_dir()); | |
2060 strcat(wb_path, wb_jar); | |
2061 scp.add_suffix(wb_path); | |
2062 scp_assembly_required = true; | |
2063 FREE_C_HEAP_ARRAY(char, wb_path); | |
2051 } | 2064 } |
2052 | 2065 |
2053 // Parse _JAVA_OPTIONS environment variable (if present) (mimics classic VM) | 2066 // Parse _JAVA_OPTIONS environment variable (if present) (mimics classic VM) |
2054 result = parse_java_options_environment_variable(&scp, &scp_assembly_required); | 2067 result = parse_java_options_environment_variable(&scp, &scp_assembly_required); |
2055 if (result != JNI_OK) { | 2068 if (result != JNI_OK) { |