harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r427787 - /incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp
Date Tue, 01 Aug 2006 23:12:46 GMT
Author: geirm
Date: Tue Aug  1 16:12:46 2006
New Revision: 427787

URL: http://svn.apache.org/viewvc?rev=427787&view=rev
Log:
HARMONY-977

Change from deprecated pthread_attr_getstackaddr to pthread_attr_getstack.

Applied on ubuntu 6 and it works.  Will test on ubuntu 5, and will appreciate
tests on gentoo and FC5


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp?rev=427787&r1=427786&r2=427787&view=diff
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Tue Aug
 1 16:12:46 2006
@@ -198,12 +198,15 @@
     int err;
     void* stack_addr;
     pthread_attr_t pthread_attr;
+    size_t stack_size;
 
     pthread_t thread = pthread_self();
     err = pthread_getattr_np(thread, &pthread_attr);
-    err = pthread_attr_getstackaddr(&pthread_attr, &stack_addr);
+    assert(!err);
+    err = pthread_attr_getstack(&pthread_attr, &stack_addr, &stack_size);
+    assert(!err);
     pthread_attr_destroy(&pthread_attr);
-    return stack_addr;
+    return (void *)((unsigned char *)stack_addr + stack_size);
 }
 
 inline size_t find_stack_size() {



Mime
View raw message