Chromium Code Reviews
DescriptionSplit JNI init so native library preloading dosn't cause native init.
The zygote relies on preloading the shared library. However we can't
determine the process type at this point (for monochrome it could be a
chrome renderer, or a webview renderer), and so current OnJNIOnLoadInit
code that relies on knowing the process type has to be delayed until
LibraryLoader is called, and the process type is known.
To get around this, we split this code in two, and have the first stage
(JNI_OnLoad) register a hook that is run in the second stage, to process
the OnJNIOnLoadInit work.
BUG=
Review-Url: https://codereview.chromium.org/2593653002
Cr-Commit-Position: refs/heads/master@{#441678}
Committed: https://chromium.googlesource.com/chromium/src/+/48fdf7dc65a82510505c68c7e03fba8f3a88009b
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add library initialization to AwCookieManager constructor #
Total comments: 7
Messages
Total messages: 29 (14 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||