projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-10-22 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
libgc
/
mark_rts.c
diff --git
a/libgc/mark_rts.c
b/libgc/mark_rts.c
index 55eb5d5433953dd860281be12e0d9c90205f9ec9..4074879a71aa90d1f8e638b9ce7521573939bfb4 100644
(file)
--- a/
libgc/mark_rts.c
+++ b/
libgc/mark_rts.c
@@
-368,8
+368,11
@@
ptr_t p;
ptr_t GC_approx_sp()
{
ptr_t GC_approx_sp()
{
- word dummy;
+
VOLATILE
word dummy;
+ dummy = 42; /* Force stack to grow if necessary. Otherwise the */
+ /* later accesses might cause the kernel to think we're */
+ /* doing something wrong. */
# ifdef _MSC_VER
# pragma warning(disable:4172)
# endif
# ifdef _MSC_VER
# pragma warning(disable:4172)
# endif