blob: 0ca16b9d8c25274b0578a352c0f67e044a113a3a (
plain) (
blame)
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
|
$FreeBSD$
--- ../src/solaris/bin/java_wrapper_bsd.sh 1 Oct 2001 11:44:43 -0000 1.4
+++ ../src/solaris/bin/java_wrapper_bsd.sh 17 Apr 2003 15:07:23 -0000
@@ -71,37 +71,56 @@
# Select vm type (if classic vm, also select thread type).
unset vmtype
unset ttype
+unset vmopt
DEFAULT_THREADS_FLAG=green
-if [ "x$1" = "x-hotspot" ]; then
- vmtype=hotspot
+if [ "x$1" = "x-client" ]; then
+ vmtype=client
ttype=native_threads
+ vmopt=-$vmtype
shift 1
else
if [ "x$1" = "x-classic" ]; then
vmtype=classic
- ttype=${DEFAULT_THREADS_FLAG}_threads
+ if [ ${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}} = native ]; then
+ ttype=native_threads
+ else
+ ttype=green_threads
+ fi
+ vmopt=-$vmtype
shift 1
else
if [ "x$1" = "x-green" ]; then
vmtype=classic
ttype=green_threads
+ vmopt=-$vmtype
shift 1
else
if [ "x$1" = "x-native" ]; then
vmtype=classic
ttype=native_threads
+ vmopt=-$vmtype
shift 1
else
- if [ -d ${jre}/lib/${proc}/hotspot ]; then
- vmtype=hotspot
+ if [ "x$1" = "x-server" ]; then
+ vmtype=server
ttype=native_threads
- else
- vmtype=classic
- if [ ${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}} = native ]
- then
+ vmopt=-$vmtype
+ shift 1
+ else
+ if [ "x$1" = "x-hotspot" ]; then
+ vmtype=client
ttype=native_threads
- else
- ttype=green_threads
+ vmopt=-$vmtype
+ shift 1
+ else
+ vmtype=classic
+ if [ ${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}} = native ]
+ then
+ ttype=native_threads
+ else
+ ttype=green_threads
+ fi
+ vmopt=-$vmtype
fi
fi
fi
@@ -141,7 +160,7 @@
# Run.
if [ -x "$prog" ]
then
- exec $DEBUG_PROG "$prog" "$@"
+ exec $DEBUG_PROG "$prog" "$vmopt" "$@"
else
echo >&2 "$progname was not found in ${prog}"
exit 1
|