I made an app (Java based, without JNI stuff), to stress our android device. It does some intensive work and /sdcard IO writes (They are 60 threads) all of them are with FOREGROUND priority.
After a couple of minutes appeared crashes in different places (system_server - FinalizerDaemon timeouts) and then the Watchdog rebooted the device with message Watchdog killing system process: null.
I tested it also on Nexus 7 and other android devices in production, the behavior is the SAME. It seems that some apk, can overload the system and to reboot the user-space.
Is this behavior (under high pressure/load from FOREGROUND threads) is by design in android Jelly-Bean and are there any plans for some remedy for this situation.