annotate make/cscope.make @ 3927:f1b4e0e0bdad

7089625: G1: policy for how many old regions to add to the CSet (when young gen is fixed) is broken Summary: When refactoring the code for a previous fix, a condition was not correctly negated which prevents the G1 policy from adding the correct number of old regions to the CSet when the young gen size is fixed. The changeset also fixes a small syntactical issue in g1ErgoVerbose.hpp which is causing compiler warnings. Reviewed-by: brutisso, ysr
author tonyp
date Tue, 13 Sep 2011 12:40:14 -0400
parents d6cdc6c77582
children f08d439fab8c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
2 # Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
21 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
25 # The cscope.out file is generated in the current directory. The old cscope.out
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
26 # file is *not* removed because cscope is smart enough to only build what has
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
27 # changed. cscope can be confused if files are renamed or removed, so it may be
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
28 # necessary to remove cscope.out (gmake cscope.clean) if a lot of reorganization
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
29 # has occurred.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 include $(GAMMADIR)/make/scm.make
a61af66fc99e Initial load
duke
parents:
diff changeset
32
a61af66fc99e Initial load
duke
parents:
diff changeset
33 RM = rm -f
111
7747916a0945 6685160: fix cscope build with hg
ysr
parents: 0
diff changeset
34 HG = hg
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
35 CS_TOP = $(GAMMADIR)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
36
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
37 CSDIRS = $(CS_TOP)/src $(CS_TOP)/make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
38 CSINCS = $(CSDIRS:%=-I%)
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 CSCOPE = cscope
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
41 CSCOPE_OUT = cscope.out
0
a61af66fc99e Initial load
duke
parents:
diff changeset
42 CSCOPE_FLAGS = -b
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44 # Allow .java files to be added from the environment (CSCLASSES=yes).
a61af66fc99e Initial load
duke
parents:
diff changeset
45 ifdef CSCLASSES
a61af66fc99e Initial load
duke
parents:
diff changeset
46 ADDCLASSES= -o -name '*.java'
a61af66fc99e Initial load
duke
parents:
diff changeset
47 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 # Adding CClassHeaders also pushes the file count of a full workspace up about
a61af66fc99e Initial load
duke
parents:
diff changeset
50 # 200 files (these files also don't exist in a new workspace, and thus will
a61af66fc99e Initial load
duke
parents:
diff changeset
51 # cause the recreation of the database as they get created, which might seem
a61af66fc99e Initial load
duke
parents:
diff changeset
52 # a little confusing). Thus allow these files to be added from the environment
a61af66fc99e Initial load
duke
parents:
diff changeset
53 # (CSHEADERS=yes).
a61af66fc99e Initial load
duke
parents:
diff changeset
54 ifndef CSHEADERS
a61af66fc99e Initial load
duke
parents:
diff changeset
55 RMCCHEADERS= -o -name CClassHeaders
a61af66fc99e Initial load
duke
parents:
diff changeset
56 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
57
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
58 # Ignore build products.
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
59 CS_PRUNE_GENERATED = -o -name '${OSNAME}_*_core' -o \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
60 -name '${OSNAME}_*_compiler?'
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
61
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
62 # O/S-specific files for all systems are included by default. Set CS_OS to a
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
63 # space-separated list of identifiers to include only those systems.
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
64 ifdef CS_OS
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
65 CS_PRUNE_OS = $(patsubst %,-o -name '*%*',\
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
66 $(filter-out ${CS_OS},linux macos solaris windows))
0
a61af66fc99e Initial load
duke
parents:
diff changeset
67 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
68
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
69 # CPU-specific files for all processors are included by default. Set CS_CPU
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
70 # space-separated list identifiers to include only those CPUs.
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
71 ifdef CS_CPU
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
72 CS_PRUNE_CPU = $(patsubst %,-o -name '*%*',\
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
73 $(filter-out ${CS_CPU},arm ppc sparc x86 zero))
0
a61af66fc99e Initial load
duke
parents:
diff changeset
74 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 # What files should we include? A simple rule might be just those files under
a61af66fc99e Initial load
duke
parents:
diff changeset
77 # SCCS control, however this would miss files we create like the opcodes and
a61af66fc99e Initial load
duke
parents:
diff changeset
78 # CClassHeaders. The following attempts to find everything that is *useful*.
a61af66fc99e Initial load
duke
parents:
diff changeset
79 # (.del files are created by sccsrm, demo directories contain many .java files
a61af66fc99e Initial load
duke
parents:
diff changeset
80 # that probably aren't useful for development, and the pkgarchive may contain
a61af66fc99e Initial load
duke
parents:
diff changeset
81 # duplicates of files within the source hierarchy).
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 # Directories to exclude.
a61af66fc99e Initial load
duke
parents:
diff changeset
84 CS_PRUNE_STD = $(SCM_DIRS) \
a61af66fc99e Initial load
duke
parents:
diff changeset
85 -o -name '.del-*' \
a61af66fc99e Initial load
duke
parents:
diff changeset
86 -o -name '*demo' \
a61af66fc99e Initial load
duke
parents:
diff changeset
87 -o -name pkgarchive
a61af66fc99e Initial load
duke
parents:
diff changeset
88
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
89 # Placeholder for user-defined excludes.
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
90 CS_PRUNE_EX =
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
91
0
a61af66fc99e Initial load
duke
parents:
diff changeset
92 CS_PRUNE = $(CS_PRUNE_STD) \
a61af66fc99e Initial load
duke
parents:
diff changeset
93 $(CS_PRUNE_OS) \
a61af66fc99e Initial load
duke
parents:
diff changeset
94 $(CS_PRUNE_CPU) \
a61af66fc99e Initial load
duke
parents:
diff changeset
95 $(CS_PRUNE_GENERATED) \
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
96 $(CS_PRUNE_EX) \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
97 $(RMCCHEADERS)
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 # File names to include.
a61af66fc99e Initial load
duke
parents:
diff changeset
100 CSFILENAMES = -name '*.[ch]pp' \
a61af66fc99e Initial load
duke
parents:
diff changeset
101 -o -name '*.[Ccshlxy]' \
a61af66fc99e Initial load
duke
parents:
diff changeset
102 $(CS_ADD_GENERATED) \
a61af66fc99e Initial load
duke
parents:
diff changeset
103 -o -name '*.d' \
a61af66fc99e Initial load
duke
parents:
diff changeset
104 -o -name '*.il' \
a61af66fc99e Initial load
duke
parents:
diff changeset
105 -o -name '*.cc' \
a61af66fc99e Initial load
duke
parents:
diff changeset
106 -o -name '*[Mm]akefile*' \
a61af66fc99e Initial load
duke
parents:
diff changeset
107 -o -name '*.gmk' \
a61af66fc99e Initial load
duke
parents:
diff changeset
108 -o -name '*.make' \
a61af66fc99e Initial load
duke
parents:
diff changeset
109 -o -name '*.ad' \
a61af66fc99e Initial load
duke
parents:
diff changeset
110 $(ADDCLASSES)
a61af66fc99e Initial load
duke
parents:
diff changeset
111
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
112 .PHONY: cscope cscope.clean cscope.scratch TAGS.clean FORCE
0
a61af66fc99e Initial load
duke
parents:
diff changeset
113 .PRECIOUS: cscope.out
a61af66fc99e Initial load
duke
parents:
diff changeset
114
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
115 cscope $(CSCOPE_OUT): cscope.files FORCE
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
116 $(CSCOPE) -f $(CSCOPE_OUT) $(CSCOPE_FLAGS)
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
117
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
118 cscope.clean:
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
119 $(QUIETLY) $(RM) $(CSCOPE_OUT) cscope.files
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
120
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
121 cscope.scratch: cscope.clean cscope
0
a61af66fc99e Initial load
duke
parents:
diff changeset
122
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
123 # The raw list is reordered so cscope displays the most relevant files first.
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
124 cscope.files:
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
125 $(QUIETLY) \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
126 raw=cscope.$$$$; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
127 find $(CSDIRS) -type d \( $(CS_PRUNE) \) -prune -o \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
128 -type f \( $(CSFILENAMES) \) -print > $$raw; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
129 { \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
130 echo "$(CSINCS)"; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
131 egrep -v "\.java|/make/" $$raw; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
132 fgrep ".java" $$raw; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
133 fgrep "/make/" $$raw; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
134 } > $@; \
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
135 rm -f $$raw
0
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 TAGS: cscope.files FORCE
a61af66fc99e Initial load
duke
parents:
diff changeset
138 egrep -v '^-|^$$' $< | etags --members -
a61af66fc99e Initial load
duke
parents:
diff changeset
139
3291
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
140 TAGS.clean:
d6cdc6c77582 7037250: cscope.make database generation is silently broken
jcoomes
parents: 1552
diff changeset
141 $(RM) TAGS