summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-04-19 12:41:04 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-05-08 10:32:14 +0100
commit2e6f69c704202d41f0ab5ab0aa65583a26184e51 (patch)
treea9fc475db54eca326fa46eebf90a3f1399fa7d1c /compiler/optimizing/graph_visualizer.cc
parent1724520ec2788838413b20672f73afa5a00b0d4c (diff)
Set hidden API flags of intrinsics
Intrinsics overwrite the hidden API access flags of the respective Java method, which is why we need to hardcode their API list membership. VarHandle intrinsics are blacklisted because they could be used to bypass hidden API checks and given they are new in P, should not be used by anybody except tests (that do not enforce API checks). The remaining intrinsics which happen to be @hide are put on light greylist. We used to put them on whitelist implicitly, hence never saw warnings about them. To be safe, we put them on light grey. Note that these are set even for the core image that currently does not have hidden API flags. That is fine because (a) VarHandles can still be tested, and (b) light greylist membership may print warnings but will not change the semantics. Bug: 64382372 Bug: 77733081 Test: make Merged-In: Ia9a7765260acb533560676e7dfcd51065cfb247d Change-Id: Ia9a7765260acb533560676e7dfcd51065cfb247d (cherry picked from commit 49dded0c15dbf3d7c3920ae4744c93c2d6081202)
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions