harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r605636 - /harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp
Date Wed, 19 Dec 2007 17:55:10 GMT
Author: gshimansky
Date: Wed Dec 19 09:55:08 2007
New Revision: 605636

URL: http://svn.apache.org/viewvc?rev=605636&view=rev
Log:
Fixed HARMONY-5329
[drlvm][exception] With JVMTI enabled ExceptionCatch event makes VM to crash in release mode

Patch adds additional space in stack for callback function to operate in.


Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp?rev=605636&r1=605635&r2=605636&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/lil/em64t/pim/stack_iterator_em64t.cpp Wed Dec
19 09:55:08 2007
@@ -526,7 +526,10 @@
 
 void si_set_callback(StackIterator* si, NativeCodePtr* callback) {
 #ifdef WIN32
-    const static uint64 red_zone_size = 0x00;
+    // Shadow memory to save 4 registers into stack,
+    // this is necessary for WIN64 calling conventions.
+    // NOTE: This file is used only for x86_64 architectures
+    const static uint64 red_zone_size = 0x28;
 #else
     const static uint64 red_zone_size = 0x88;
 #endif



Mime
View raw message