mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-20 10:55:29 +00:00
Added comments
This commit is contained in:
parent
4cddc76284
commit
18144ddc4c
1 changed files with 4 additions and 2 deletions
|
@ -261,8 +261,10 @@ public class Helper {
|
|||
};
|
||||
|
||||
if (threads == 0) {
|
||||
int processors = Runtime.getRuntime().availableProcessors();
|
||||
threads = processors * 4;
|
||||
// java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
|
||||
// 1040 KB native stack size / 32 KB thread stack size ~ 32 threads
|
||||
int processors = Runtime.getRuntime().availableProcessors(); // Modern devices: 8
|
||||
threads = processors * (BuildConfig.DEBUG ? 8 : 4);
|
||||
}
|
||||
|
||||
if (threads == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue