Prevent non-browser processes from loading classes from secondary dex files |
|||
Issue descriptionFor enabling multidex in release (see issue 512357 for more context), we'll need a way to ensure that non-browser processes don't access secondary dex files. Without this, if any class becomes used by the renderer, all RAM savings will be reversed and then some. agrieve@ and I discussed several approaches, most of which involved blocking access to classes2.dex in some way which doesn't work since sandboxed processes can't access the file system.
,
Jun 30 2017
Not currently working on this. A couple of hacky prototypes I wrote a while back: 1) Disable access to secondary dex files in isolated processes (https://codereview.chromium.org/2499923003/) 2) Fail when we try to load classes that aren't in the main_dex_list (https://codereview.chromium.org/2845773004/)
,
Nov 23 2017
This likely won't save us any disk space since optimized dex files will still be created with this approach so we're going to take the custom dex loading route. |
|||
►
Sign in to add a comment |
|||
Comment 1 by estevenson@chromium.org
, Dec 20 2016