Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
x86-64: disable GDB support for normal builds
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eduard - Gabriel Munteanu  
View profile  
 More options Jan 13 2012, 11:16 am
From: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
Date: Fri, 13 Jan 2012 18:16:17 +0200
Local: Fri, Jan 13 2012 11:16 am
Subject: [PATCH 1/2] x86-64: disable GDB support for normal builds
GDB doesn't give us sensible backtraces when building without debugging
CFLAGS. Moreover, registering compiled methods with GDB could impact
performance needlessly.

Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
---
 Makefile                          |    2 +-
 arch/x86/include/arch/config_64.h |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9331861..b95b750 100644
--- a/Makefile
+++ b/Makefile
@@ -246,7 +246,7 @@ DEFAULT_CFLAGS      += $(INCLUDES)
 DEBUG =
 ifeq ($(strip $(DEBUG)),1)
        # This overrides DEFAULT_CFLAGS, but not user-supplied CFLAGS.
-       DEFAULT_CFLAGS += -O0 -ggdb
+       DEFAULT_CFLAGS += -O0 -ggdb -DCONFIG_DEBUG
 endif

 DEFAULT_LIBS   = -L. -ljvm -lrt -lpthread -lm -ldl -lz -lbfd -lopcodes -liberty -Lboehmgc -lboehmgc $(ARCH_LIBS)
diff --git a/arch/x86/include/arch/config_64.h b/arch/x86/include/arch/config_64.h
index 695df09..0e43d83 100644
--- a/arch/x86/include/arch/config_64.h
+++ b/arch/x86/include/arch/config_64.h
@@ -3,5 +3,8 @@
 #define USE_FFI 1
 #define CONFIG_ARGS_MAP 1
 #define ARCH_NAME "x86-64"
-#define CONFIG_GDB
+
+#ifdef CONFIG_DEBUG
+#define CONFIG_GDB 1
+#endif

--
1.7.3.4


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "test/functional: add ParameterPassingLivenessTest" by Eduard - Gabriel Munteanu
Eduard - Gabriel Munteanu  
View profile  
 More options Jan 13 2012, 11:16 am
From: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
Date: Fri, 13 Jan 2012 18:16:18 +0200
Local: Fri, Jan 13 2012 11:16 am
Subject: [PATCH 2/2] test/functional: add ParameterPassingLivenessTest
Passing certain parameters results in nested calling sequences on
x86-64, but this isn't handled correctly at the moment.

Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
---
 Makefile                                           |    1 +
 .../jvm/ParameterPassingLivenessTest.java          |   42 ++++++++++++++++++++
 tools/test.py                                      |    1 +
 3 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 test/functional/jvm/ParameterPassingLivenessTest.java

diff --git a/Makefile b/Makefile
index b95b750..fb78a45 100644
--- a/Makefile
+++ b/Makefile
@@ -367,6 +367,7 @@ REGRESSION_TEST_SUITE_CLASSES = \
        test/functional/jvm/ObjectCreationAndManipulationTest.java \
        test/functional/jvm/ObjectStackTest.java \
        test/functional/jvm/ParameterPassingTest.java \
+       test/functional/jvm/ParameterPassingLivenessTest.java \
        test/functional/jvm/PrintTest.java \
        test/functional/jvm/PutfieldTest.java \
        test/functional/jvm/PutstaticPatchingTest.java \
diff --git a/test/functional/jvm/ParameterPassingLivenessTest.java b/test/functional/jvm/ParameterPassingLivenessTest.java
new file mode 100644
index 0000000..2304849
--- /dev/null
+++ b/test/functional/jvm/ParameterPassingLivenessTest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2009 Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>
+ *
+ * This file is released under the GPL version 2 with the following
+ * clarification and special exception:
+ *
+ *     Linking this library statically or dynamically with other modules is
+ *     making a combined work based on this library. Thus, the terms and
+ *     conditions of the GNU General Public License cover the whole
+ *     combination.
+ *
+ *     As a special exception, the copyright holders of this library give you
+ *     permission to link this library with independent modules to produce an
+ *     executable, regardless of the license terms of these independent
+ *     modules, and to copy and distribute the resulting executable under terms
+ *     of your choice, provided that you also meet, for each linked independent
+ *     module, the terms and conditions of the license of that module. An
+ *     independent module is a module which is not derived from or based on
+ *     this library. If you modify this library, you may extend this exception
+ *     to your version of the library, but you are not obligated to do so. If
+ *     you do not wish to do so, delete this exception statement from your
+ *     version.
+ *
+ * Please refer to the file LICENSE for details.
+ */
+package jvm;
+
+import jato.internal.VM;
+
+/**
+ * @author Eduard - Gabriel Munteanu
+ */
+public class ParameterPassingLivenessTest extends TestCase {
+    private static int run(int[] a, int v) {
+        return v;
+    }
+
+    public static void main(String[] args) {
+        int n = run(new int[8], 1);
+        VM.exit(n);
+    }
+}
diff --git a/tools/test.py b/tools/test.py
index 3d3bca2..6669435 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -73,6 +73,7 @@ TESTS = [
 , ( "jvm.ObjectCreationAndManipulationTest", 0, NO_SYSTEM_CLASSLOADER, [ "i386" ] )
 , ( "jvm.ObjectStackTest", 0, NO_SYSTEM_CLASSLOADER, [ "i386", "x86_64" ] )
 , ( "jvm.ParameterPassingTest", 100, NO_SYSTEM_CLASSLOADER, [ "i386", "x86_64" ] )
+, ( "jvm.ParameterPassingLivenessTest", 1, NO_SYSTEM_CLASSLOADER, [ "i386", "x86_64" ] )
 , ( "jvm.PopTest", 0, NO_SYSTEM_CLASSLOADER, [ "i386", "x86_64" ] )
 , ( "jvm.PrintTest", 0, NO_SYSTEM_CLASSLOADER, [ "i386" ] )
 , ( "jvm.PutfieldTest", 0, NO_SYSTEM_CLASSLOADER, [ "i386", "x86_64" ] )
--
1.7.3.4


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »