File: fix-pthread-stack.patch

package info (click to toggle)
android-platform-art 14.0.0%2Br15-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,828 kB
  • sloc: cpp: 522,215; java: 194,312; asm: 28,950; python: 14,910; xml: 5,087; sh: 4,528; ansic: 4,035; makefile: 110; perl: 77
file content (13 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Fix for pthread_stack
Forwarded: not-needed
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -706,7 +706,7 @@ static size_t FixStackSize(size_t stack_size) {
 
   // It's not possible to request a stack smaller than the system-defined PTHREAD_STACK_MIN.
   if (stack_size < PTHREAD_STACK_MIN) {
-    stack_size = PTHREAD_STACK_MIN;
+    stack_size = (size_t) PTHREAD_STACK_MIN;
   }
 
   if (Runtime::Current()->GetImplicitStackOverflowChecks()) {