gecko-dev/hal
Gabriele Svelto b0e6709e13 Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj
This patch initializes some HAL components greedily so that we can get rid of
lazy initializers within the code. Observers are still lazily initialized
because they can be instanced within content processes but that doesn't always
happen and we don't want to pay the memory price for structures we don't use.

Shutdown is now happening at a fixed time for all HAL components save
WakeLocks. This ensures that we don't destroy an object while still iterating
over it, something that could happen before.

Finally a workaround for a compiler limitation has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D3100

--HG--
extra : moz-landing-system : lando
2018-08-31 20:29:30 +00:00
..
android Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
cocoa Bug 1470994 - remove unused accuracy field from SensorData; r=gsvelto 2018-06-27 16:05:48 +03:00
fallback Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
linux Bug 1382955 (part 3) - Remove a bunch of unused HAL stuff. r=gsvelto,kanru. 2017-08-02 10:09:32 +10:00
sandbox Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
windows Bug 1480177 Lowercase includes to fix MinGW Build Errors r=froydnj 2018-07-30 22:43:24 -05:00
Hal.cpp Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj 2018-08-31 20:29:30 +00:00
Hal.h Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj 2018-08-31 20:29:30 +00:00
HalBatteryInformation.h Bug 1482753 - Move battery/Types.h into hal/ and BatteryObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
HalImpl.h
HalInternal.h Bug 1465898 - Remove unused code for managing physical audio devices; r=agaynor 2018-06-04 22:28:09 +02:00
HalLog.h
HalNetworkInformation.h Bug 1482753 - Move network/Types.h into hal/ and NetworkObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
HalSandbox.h
HalScreenConfiguration.h Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
HalSensor.h Bug 1469309 - Remove an unused sensor type; r=agaynor 2018-06-19 09:18:09 +02:00
HalTypes.h Bug 1465898 - Remove unused code for managing physical audio devices; r=agaynor 2018-06-04 22:28:09 +02:00
HalWakeLock.cpp Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj 2018-08-31 20:29:30 +00:00
HalWakeLock.h
HalWakeLockInformation.h Bug 1482753 - Move power/Types.h into hal/ and WakeLockObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
HalWakeLockInternal.h Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj 2018-08-31 20:29:30 +00:00
moz.build Bug 1482753 - Move power/Types.h into hal/ and WakeLockObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
WindowIdentifier.cpp
WindowIdentifier.h