annotate make/solaris/adlc_updater @ 10246:194f52aa2f23

7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap Summary: Refactor G1's hot card cache and card counts table into their own files. Simplify the card counts table, including removing the encoding of the card index in each entry. The card counts table now has a 1:1 correspondence with the cards spanned by heap. Space for the card counts table is reserved from virtual memory (rather than C heap) during JVM startup and is committed/expanded when the heap is expanded. Changes were also reviewed-by Vitaly Davidovich. Reviewed-by: tschatzl, jmasa
author johnc
date Thu, 09 May 2013 11:16:39 -0700
parents a50abfc67f31
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #! /bin/sh
a61af66fc99e Initial load
duke
parents:
diff changeset
2 #
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # This file is used by adlc.make to selectively update generated
a61af66fc99e Initial load
duke
parents:
diff changeset
4 # adlc files. Because source and target diretories are relative
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # paths, this file is copied to the target build directory before
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # use.
a61af66fc99e Initial load
duke
parents:
diff changeset
7 #
a61af66fc99e Initial load
duke
parents:
diff changeset
8 # adlc-updater <file> <source-dir> <target-dir>
a61af66fc99e Initial load
duke
parents:
diff changeset
9 #
475
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
10 fix_lines() {
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
11 # repair bare #line directives in $1 to refer to $2
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
12 awk < $1 > $1+ '
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
13 /^#line 999999$/ {print "#line " (NR+1) " \"" F2 "\""; next}
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
14 {print}
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
15 ' F2=$2
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
16 mv $1+ $1
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
17 }
1831
a50abfc67f31 6989736: fix mapfile warnings on solaris
never
parents: 475
diff changeset
18 fix_lines $2/$1 $3/$1
a50abfc67f31 6989736: fix mapfile warnings on solaris
never
parents: 475
diff changeset
19 [ -f $3/$1 ] && cmp -s $2/$1 $3/$1 || \
475
284d0af00d53 6771309: debugging AD files is difficult without #line directives in generated code
jrose
parents: 91
diff changeset
20 ( [ -f $3/$1 ] && echo Updating $3/$1 ; touch $2/made-change ; mv $2/$1 $3/$1 )