Skip to content

Commit

Permalink
Add ImageSymbolsPrefix hosted option
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Sep 4, 2020
1 parent 183da93 commit e223225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ public static Predicate<String> makeFilter(String[] definedFilters) {
@Option(help = "Use linker option to remove all local symbols from image.")//
public static final HostedOptionKey<Boolean> DeleteLocalSymbols = new HostedOptionKey<>(true);

@Option(help = "Common prefix used by method symbols in image.")//
public static final HostedOptionKey<String> ImageSymbolsPrefix = new HostedOptionKey<>("");

@Option(help = "Fold SecurityManager getter.", stability = OptionStability.EXPERIMENTAL, type = OptionType.Expert) //
public static final HostedOptionKey<Boolean> FoldSecurityManagerGetter = new HostedOptionKey<>(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ public static String localSymbolNameForMethod(java.lang.reflect.Method m) {
*/
public static String localSymbolNameForMethod(ResolvedJavaMethod sm) {
/* We don't mangle local symbols, because they never need be referenced by an assembler. */
return SubstrateUtil.uniqueShortName(sm);
return SubstrateOptions.ImageSymbolsPrefix.getValue() + SubstrateUtil.uniqueShortName(sm);
}

/**
Expand Down

0 comments on commit e223225

Please sign in to comment.