File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2424 */
2525package com .oracle .svm .hosted .image ;
2626
27+ import static com .oracle .svm .core .SubstrateOptions .DeleteLocalSymbols ;
28+
2729import java .io .IOException ;
2830import java .nio .file .Files ;
2931import java .nio .file .Path ;
@@ -127,7 +129,7 @@ private static void stripLinux(AfterImageWriteAccessImpl accessImpl) {
127129
128130 private static Path createKeepSymbolsListFile (AfterImageWriteAccessImpl accessImpl ) throws IOException {
129131 Path exportedSymbolsPath = accessImpl .getTempDirectory ().resolve ("keep-symbols.list" ).toAbsolutePath ();
130- Files .write (exportedSymbolsPath , accessImpl .getImageSymbols (true ));
132+ Files .write (exportedSymbolsPath , accessImpl .getImageSymbols (DeleteLocalSymbols . getValue () ));
131133 return exportedSymbolsPath ;
132134 }
133135}
Original file line number Diff line number Diff line change @@ -274,6 +274,15 @@ def _test_libgraal_fatal_error_handling(extra_vm_arguments):
274274 pass
275275 else :
276276 mx .abort ('Expected "Fatal error in JVMCI" to be in contents of ' + hs_err + ':' + linesep + contents )
277+ # check that the hs_err contains libgraal symbols on supported platforms
278+ symbol_patterns = {
279+ 'linux' : 'com.oracle.svm.core.jdk.VMErrorSubstitutions::doShutdown' ,
280+ 'darwin' : 'VMErrorSubstitutions_doShutdown' ,
281+ 'windows' : None
282+ }
283+ pattern = symbol_patterns [mx .get_os ()]
284+ if pattern and pattern not in contents :
285+ mx .abort ('Expected "' + pattern + '" to be in contents of ' + hs_err + ':' + linesep + contents )
277286
278287 if 'JVMCINativeLibraryErrorFile' in out .data and not seen_libjvmci_log :
279288 mx .abort ('Expected a file matching "hs_err_pid*_libjvmci.log" in test directory. Entries found=' + str (listdir (scratch_dir )))
You can’t perform that action at this time.
0 commit comments