Add "classes-no-preload" profile section even if it has no real classes.
If there are no classes on the preloaded-classes-denylist, still record
the section in the profile with a special "no-prelaod marker" type ID
(an invalid type ID that is discarded when reading the profile). This is
to let ART differentiate between an old profile and a new profile with
an empty section.
Note that the changes in ART are guarded by the flag indirectly: they
only take effect together with changes in the platform that are guarded
by the flag.
Bug: 383506474
Test: atest PreloadCheck:com.android.preload.check.PreloadCheck
Flag: build.RELEASE_ART_NOPRELOAD_CLASSES_IN_PROFILE
Change-Id: Ibb7e96a101b760c8d5779b1885301f45bb778fa0
7 files changed