summaryrefslogtreecommitdiffstats
path: root/js/src/devtools/rootAnalysis/gen-hazards.sh
blob: 7007969a1416b3c6fffd60ae338f62358219efe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

JOBS="$1"

for j in $(seq $JOBS); do
    env PATH=$PATH:$SIXGILL/bin XDB=$SIXGILL/bin/xdb.so $JS $ANALYZE gcFunctions.lst suppressedFunctions.lst gcTypes.txt $j $JOBS tmp.$j > rootingHazards.$j &
done

wait

for j in $(seq $JOBS); do
    cat rootingHazards.$j
done