1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
diff -r 515916374161 Makefile.am
--- a/Makefile.am Wed Dec 17 07:55:15 2008 -0500
+++ b/Makefile.am Wed Dec 17 11:59:55 2008 -0500
@@ -543,6 +543,13 @@
endif
ICEDTEA_FSG_PATCHES =
+
+# Build with assertions and lowered optimization
+DISTRIBUTION_PATCHES = \
+ patches/mixtec-assertions.patch \
+ patches/mixtec-no-log-vm-output.patch \
+ patches/mixtec-no-print-vm-options.patch \
+ patches/mixtec-optimization.patch
ICEDTEA_PATCHES = \
$(ZERO_PATCHES_COND) \
diff -r 515916374161 patches/mixtec-assertions.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mixtec-assertions.patch Wed Dec 17 11:59:55 2008 -0500
@@ -0,0 +1,14 @@
+diff -r d384f5a5bd0c hotspot/build/linux/makefiles/product.make
+--- openjdk/hotspot/make/linux/makefiles/product.make Mon Aug 06 13:11:51 2007 +0100
++++ openjdk/hotspot/make/linux/makefiles/product.make Fri Sep 14 09:58:33 2007 +0100
+@@ -41,8 +41,8 @@ MAPFILE = $(GAMMADIR)/build/linux/makefi
+ MAPFILE = $(GAMMADIR)/make/linux/makefiles/mapfile-vers-product
+
+ G_SUFFIX =
+-SYSDEFS += -DPRODUCT
+-VERSION = optimized
++SYSDEFS += -DASSERT
++VERSION = mixtec
+
+ # use -g to strip library as -x will discard its symbol table; -x is fine for
+ # executables.
diff -r 515916374161 patches/mixtec-no-log-vm-output.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mixtec-no-log-vm-output.patch Wed Dec 17 11:59:55 2008 -0500
@@ -0,0 +1,11 @@
+--- openjdk-ecj/hotspot/src/share/vm/runtime/globals.hpp 2007-11-13 09:19:54.000000000 -0500
++++ openjdk/hotspot/src/share/vm/runtime/globals.hpp 2007-11-13 17:13:24.000000000 -0500
+@@ -2081,7 +2081,7 @@
+ diagnostic(bool, DisplayVMOutput, true, \
+ "Display all VM output on the tty, independently of LogVMOutput") \
+ \
+- diagnostic(bool, LogVMOutput, trueInDebug, \
++ diagnostic(bool, LogVMOutput, false, \
+ "Save VM output to hotspot.log, or to LogFile") \
+ \
+ diagnostic(ccstr, LogFile, NULL, \
diff -r 515916374161 patches/mixtec-no-print-vm-options.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mixtec-no-print-vm-options.patch Wed Dec 17 11:59:55 2008 -0500
@@ -0,0 +1,12 @@
+diff -r c5904941581b openjdk-ecj/hotspot/src/share/vm/runtime/globals.hpp
+--- openjdk/hotspot/src/share/vm/runtime/globals.hpp Tue Nov 13 14:09:56 2007 +0000
++++ openjdk/hotspot/src/share/vm/runtime/globals.hpp Tue Nov 13 14:19:54 2007 +0000
+@@ -2072,7 +2072,7 @@ class CommandLineFlags {
+ diagnostic(bool, DebugInlinedCalls, true, \
+ "If false, restricts profiled locations to the root method only") \
+ \
+- product(bool, PrintVMOptions, trueInDebug, \
++ product(bool, PrintVMOptions, false, \
+ "print VM flag settings") \
+ \
+ diagnostic(bool, SerializeVMOutput, true, \
diff -r 515916374161 patches/mixtec-optimization.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/mixtec-optimization.patch Wed Dec 17 11:59:55 2008 -0500
@@ -0,0 +1,34 @@
+diff -urN openjdk.orig/hotspot/make/linux/makefiles/gcc.make openjdk/hotspot/make/linux/makefiles/gcc.make
+--- openjdk.orig/hotspot/make/linux/makefiles/gcc.make 2007-10-12 03:46:25.000000000 -0400
++++ openjdk/hotspot/make/linux/makefiles/gcc.make 2007-10-12 17:41:02.000000000 -0400
+@@ -111,7 +111,7 @@
+ CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
+
+ # The flags to use for an Optimized g++ build
+-OPT_CFLAGS += -O3
++OPT_CFLAGS += -O0
+
+ # Hotspot uses very unstrict aliasing turn this optimization off
+ OPT_CFLAGS += -fno-strict-aliasing
+diff -urN openjdk.orig/j2se/make/common/Defs-linux.gmk openjdk/j2se/make/common/Defs-linux.gmk
+--- openjdk.orig/jdk/make/common/Defs-linux.gmk 2007-10-12 03:54:05.000000000 -0400
++++ openjdk/jdk/make/common/Defs-linux.gmk 2007-10-12 17:41:02.000000000 -0400
+@@ -97,6 +97,7 @@
+ _OPT = $(CC_LOWER_OPT)
+ CPPFLAGS_DBG += -DLOGGING
+ endif
++_OPT = -O0
+
+ # For all platforms, do not omit the frame pointer register usage.
+ # We need this frame pointer to make it easy to walk the stacks.
+diff -r e847abdac6f6 openjdk/corba/make/common/Defs-linux.gmk
+--- openjdk/corba/make/common/Defs-linux.gmk Thu Nov 22 08:57:34 2007 +0000
++++ openjdk/corba/make/common/Defs-linux.gmk Thu Nov 22 08:59:18 2007 +0000
+@@ -87,6 +87,7 @@ else
+ _OPT = $(CC_LOWER_OPT)
+ CPPFLAGS_DBG += -DLOGGING
+ endif
++_OPT = -O0
+
+ # For all platforms, do not omit the frame pointer register usage.
+ # We need this frame pointer to make it easy to walk the stacks.
|