mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8138651: -XX:DisableIntrinsic matches intrinsics overly eagerly
Improve parsing of DisableIntrinsic flag. Reviewed-by: kvn, shade, neliasso
This commit is contained in:
parent
7793175141
commit
c04398f782
5 changed files with 284 additions and 19 deletions
|
@ -47,7 +47,7 @@
|
|||
cflags(DumpReplay, bool, false, DumpReplay) \
|
||||
cflags(DumpInline, bool, false, DumpInline) \
|
||||
cflags(CompilerDirectivesIgnoreCompileCommands, bool, CompilerDirectivesIgnoreCompileCommands, X) \
|
||||
cflags(DisableIntrinsic, ccstr, DisableIntrinsic, DisableIntrinsic)
|
||||
cflags(DisableIntrinsic, ccstrlist, DisableIntrinsic, DisableIntrinsic)
|
||||
|
||||
#ifdef COMPILER1
|
||||
#define compilerdirectives_c1_flags(cflags)
|
||||
|
@ -100,6 +100,8 @@ private:
|
|||
InlineMatcher* _inlinematchers;
|
||||
CompilerDirectives* _directive;
|
||||
|
||||
static ccstrlist canonicalize_disableintrinsic(ccstrlist option_value);
|
||||
|
||||
public:
|
||||
DirectiveSet(CompilerDirectives* directive);
|
||||
~DirectiveSet();
|
||||
|
@ -141,6 +143,7 @@ public:
|
|||
void print_bool(outputStream* st, ccstr n, bool v, bool mod) { if (mod) { st->print("%s:%s ", n, v ? "true" : "false"); } }
|
||||
void print_double(outputStream* st, ccstr n, double v, bool mod) { if (mod) { st->print("%s:%f ", n, v); } }
|
||||
void print_ccstr(outputStream* st, ccstr n, ccstr v, bool mod) { if (mod) { st->print("%s:%s ", n, v); } }
|
||||
void print_ccstrlist(outputStream* st, ccstr n, ccstr v, bool mod) { print_ccstr(st, n, v, mod); }
|
||||
|
||||
void print(outputStream* st) {
|
||||
print_inline(st);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue