Compare commits

...

1069 Commits

Author SHA1 Message Date
J. Duke
26adaaea4e Merge 2017-07-05 16:56:12 +02:00
J. Duke
e721522348 Merge 2017-07-05 16:56:10 +02:00
J. Duke
2656d7a01f Merge 2017-07-05 16:56:02 +02:00
J. Duke
7e40d102f2 Merge 2017-07-05 16:55:59 +02:00
J. Duke
3f0a295a52 Merge 2017-07-05 16:55:56 +02:00
J. Duke
b6fc4748ce Merge 2017-07-05 16:55:52 +02:00
J. Duke
8f82891b31 Merge 2017-07-05 16:55:36 +02:00
J. Duke
4b7ceefbbd Added tag jdk7-b63 for changeset dfd8506f74c3 2017-07-05 16:55:26 +02:00
J. Duke
2a60847f5b Merge 2017-07-05 16:55:26 +02:00
J. Duke
e7a63cccce Merge 2017-07-05 16:55:24 +02:00
J. Duke
6bc357285d Merge 2017-07-05 16:55:23 +02:00
J. Duke
9da28758ff Merge 2017-07-05 16:55:21 +02:00
J. Duke
56d3e06fa7 Merge 2017-07-05 16:55:20 +02:00
J. Duke
80d5f36b68 Merge 2017-07-05 16:55:17 +02:00
J. Duke
52c35e0265 Merge 2017-07-05 16:55:13 +02:00
J. Duke
5032399d57 Added tag jdk7-b62 for changeset 6107cbff3130 2017-07-05 16:55:03 +02:00
J. Duke
30558fec61 Merge 2017-07-05 16:55:03 +02:00
J. Duke
99d4ee95ed Merge 2017-07-05 16:55:00 +02:00
J. Duke
c50fb355f2 Merge 2017-07-05 16:54:55 +02:00
J. Duke
0a81152247 Merge 2017-07-05 16:54:52 +02:00
J. Duke
208f2737de Merge 2017-07-05 16:54:48 +02:00
J. Duke
9d19e76f68 Merge 2017-07-05 16:54:44 +02:00
J. Duke
6ef515c0b1 Merge 2017-07-05 16:54:35 +02:00
J. Duke
83f09c53ec Added tag jdk7-b61 for changeset dbb955b1ee59 2017-07-05 16:54:26 +02:00
J. Duke
54ab66f63e Merge 2017-07-05 16:54:26 +02:00
J. Duke
a3eef137c5 Merge 2017-07-05 16:54:23 +02:00
J. Duke
b964d618d0 Merge 2017-07-05 16:54:21 +02:00
J. Duke
9a8b886c8c Merge 2017-07-05 16:54:19 +02:00
J. Duke
2b7defe805 Merge 2017-07-05 16:54:16 +02:00
J. Duke
346104fba7 Merge 2017-07-05 16:54:14 +02:00
J. Duke
651b3cb0dc Merge 2017-07-05 16:54:11 +02:00
J. Duke
8bb8b01aa7 Added tag jdk7-b60 for changeset 5a10e4d0b14d 2017-07-05 16:54:00 +02:00
J. Duke
c1ff9b2e3b Merge 2017-07-05 16:53:59 +02:00
J. Duke
3cd535c3d2 Merge 2017-07-05 16:53:56 +02:00
J. Duke
ce3609a8c1 Merge 2017-07-05 16:53:52 +02:00
J. Duke
2d51e89646 Merge 2017-07-05 16:53:48 +02:00
J. Duke
61d70f97dd Merge 2017-07-05 16:53:43 +02:00
J. Duke
1a0cdff3a1 Merge 2017-07-05 16:53:40 +02:00
J. Duke
4621eb872e Merge 2017-07-05 16:53:32 +02:00
J. Duke
ac9ea072da Added tag jdk7-b59 for changeset c33e7d38c921 2017-07-05 16:53:22 +02:00
J. Duke
6d918271d5 Merge 2017-07-05 16:53:22 +02:00
J. Duke
069b902c3d Merge 2017-07-05 16:53:19 +02:00
J. Duke
f0bbae6b26 Merge 2017-07-05 16:53:18 +02:00
J. Duke
cb9bbf84e9 Merge 2017-07-05 16:53:15 +02:00
J. Duke
76c0e546f9 Merge 2017-07-05 16:53:13 +02:00
J. Duke
c23a0c829c Merge 2017-07-05 16:53:11 +02:00
J. Duke
903f64c7e0 Merge 2017-07-05 16:53:07 +02:00
J. Duke
08bc6f6c37 Added tag jdk7-b58 for changeset d60a9ce3c3ea 2017-07-05 16:52:55 +02:00
J. Duke
0cbcd44d1d Merge 2017-07-05 16:52:55 +02:00
J. Duke
5231d0f568 Merge 2017-07-05 16:52:52 +02:00
J. Duke
0b0864c6a0 Merge 2017-07-05 16:52:49 +02:00
J. Duke
6ed538c2f9 Merge 2017-07-05 16:52:46 +02:00
J. Duke
e19ece417c Merge 2017-07-05 16:52:43 +02:00
J. Duke
23f4a764cc Merge 2017-07-05 16:52:40 +02:00
J. Duke
07974fe56c Merge 2017-07-05 16:52:33 +02:00
J. Duke
6d493ab8c7 Added tag jdk7-b57 for changeset b44f05654c26 2017-07-05 16:52:25 +02:00
J. Duke
30795df1f9 Merge 2017-07-05 16:52:25 +02:00
J. Duke
608a24a077 Merge 2017-07-05 16:52:22 +02:00
J. Duke
1d83f691b5 Merge 2017-07-05 16:52:18 +02:00
J. Duke
1ad2667331 Merge 2017-07-05 16:52:09 +02:00
J. Duke
b569d4f083 Merge 2017-07-05 16:52:04 +02:00
J. Duke
46c7bd230b Merge 2017-07-05 16:52:01 +02:00
J. Duke
8ffeb9198c Merge 2017-07-05 16:51:49 +02:00
J. Duke
4be4e2435b Added tag jdk7-b56 for changeset a8134c4ee2cf 2017-07-05 16:51:36 +02:00
J. Duke
21694f8b3f Merge 2017-07-05 16:51:35 +02:00
J. Duke
01f21a6de3 Merge 2017-07-05 16:51:32 +02:00
J. Duke
4b5fc49d99 Merge 2017-07-05 16:51:30 +02:00
J. Duke
05a64fecfc Merge 2017-07-05 16:51:28 +02:00
J. Duke
3a5105829d Merge 2017-07-05 16:51:26 +02:00
J. Duke
d1b22548f7 Merge 2017-07-05 16:51:23 +02:00
J. Duke
9d9464e69f Merge 2017-07-05 16:51:20 +02:00
J. Duke
28535fab17 Added tag jdk7-b55 for changeset c8b275d62d6b 2017-07-05 16:51:11 +02:00
J. Duke
423befc9a0 Merge 2017-07-05 16:51:11 +02:00
J. Duke
63d0d6341e Merge 2017-07-05 16:51:08 +02:00
J. Duke
e8a73fedc4 Merge 2017-07-05 16:51:03 +02:00
J. Duke
3a439c4575 Merge 2017-07-05 16:51:01 +02:00
J. Duke
7f5de13442 Merge 2017-07-05 16:50:59 +02:00
J. Duke
cdc164def3 Merge 2017-07-05 16:50:56 +02:00
J. Duke
b3f376acc1 Merge 2017-07-05 16:50:44 +02:00
J. Duke
2e266fe5de Added tag jdk7-b54 for changeset 15096652c4d4 2017-07-05 16:50:37 +02:00
J. Duke
6e1d4b9a47 Merge 2017-07-05 16:50:36 +02:00
J. Duke
d4df05123c Merge 2017-07-05 16:50:34 +02:00
J. Duke
9fe908f70c Merge 2017-07-05 16:50:32 +02:00
J. Duke
8074acb8e5 Merge 2017-07-05 16:50:29 +02:00
J. Duke
c95e5f7be1 Merge 2017-07-05 16:50:26 +02:00
J. Duke
acd8ec4775 Merge 2017-07-05 16:50:24 +02:00
J. Duke
7c47fb7795 Merge 2017-07-05 16:50:15 +02:00
J. Duke
1fcb5893bd Added tag jdk7-b53 for changeset d52186ee770d 2017-07-05 16:50:04 +02:00
J. Duke
9d14bdc3f8 Merge 2017-07-05 16:50:03 +02:00
J. Duke
11f703169a Merge 2017-07-05 16:50:01 +02:00
J. Duke
72f8b88373 Merge 2017-07-05 16:49:57 +02:00
J. Duke
257b3156a0 Merge 2017-07-05 16:49:54 +02:00
J. Duke
d5f146c728 Merge 2017-07-05 16:49:51 +02:00
J. Duke
813710bde8 Merge 2017-07-05 16:49:47 +02:00
J. Duke
9795a8f232 Merge 2017-07-05 16:49:40 +02:00
J. Duke
fd20a6a950 Added tag jdk7-b52 for changeset 7a90e89e36d1 2017-07-05 16:49:29 +02:00
J. Duke
8844da387d Merge 2017-07-05 16:49:29 +02:00
J. Duke
1e148bf0f8 Merge 2017-07-05 16:49:26 +02:00
J. Duke
d51178243e Merge 2017-07-05 16:49:24 +02:00
J. Duke
cb67468c6b Merge 2017-07-05 16:49:22 +02:00
J. Duke
f4e479b786 Merge 2017-07-05 16:49:20 +02:00
J. Duke
975611d880 Merge 2017-07-05 16:49:18 +02:00
J. Duke
ee48026e26 Merge 2017-07-05 16:49:16 +02:00
J. Duke
0f6b9a919b Added tag jdk7-b51 for changeset a25c5ec5e40e 2017-07-05 16:49:08 +02:00
J. Duke
38930ae468 Merge 2017-07-05 16:49:07 +02:00
J. Duke
46c1a1e892 Merge 2017-07-05 16:49:05 +02:00
J. Duke
70ccdb4c4a Merge 2017-07-05 16:49:00 +02:00
J. Duke
4cd8847917 Merge 2017-07-05 16:48:57 +02:00
J. Duke
2a59a55528 Merge 2017-07-05 16:48:53 +02:00
J. Duke
5d66f7eaaa Merge 2017-07-05 16:48:49 +02:00
J. Duke
1fce158e64 Merge 2017-07-05 16:48:40 +02:00
J. Duke
78cace0652 Added tag jdk7-b50 for changeset 5da0e6b9f4f1 2017-07-05 16:48:21 +02:00
Qi Zuo
8a897fd954 Merge 2009-07-09 13:53:05 -04:00
Yuri Nesterenko
41c97e79d2 Merge 2009-07-07 23:13:09 -07:00
Yuri Nesterenko
5e24ed1624 Merge 2009-07-07 23:12:36 -07:00
Qi Zuo
77dfafa4b6 Merge 2009-07-07 10:20:17 -04:00
Qi Zuo
7ef92f5289 Merge 2009-07-07 10:14:46 -04:00
Kelly O'Hair
57bbf9b1cb 6857805: Fix openjdk builds to avoid building deploy repository
Reviewed-by: xdono
2009-07-06 22:37:00 -07:00
Andy Herrick
ae19c87243 Merge 2009-07-06 17:12:40 -04:00
Andy Herrick
737dc57b27 Merge 2009-07-06 17:11:04 -04:00
Andy Herrick
279d1a82d3 Merge 2009-07-06 15:04:30 -04:00
Andy Herrick
982c996c2a Merge 2009-07-06 15:02:27 -04:00
Andy Herrick
14323dd4c7 Merge 2009-07-06 14:10:31 -04:00
Andy Herrick
fec12535e0 Merge 2009-07-06 14:02:08 -04:00
Andy Herrick
0f944b04ac Merge 2009-07-06 14:01:31 -04:00
Tim Bell
0bbc6ba0de Merge 2009-07-03 09:16:14 -07:00
Tim Bell
83c391b784 Merge 2009-07-03 09:15:02 -07:00
Xiomara Jayasena
6e0fdb31a3 Added tag jdk7-b63 for changeset 128e22c119ee 2009-07-02 11:11:13 -07:00
Xiomara Jayasena
618ccf3eb4 Added tag jdk7-b63 for changeset c8270bf40b76 2009-07-02 11:11:03 -07:00
Xiomara Jayasena
b97d4ce1f4 Added tag jdk7-b63 for changeset 7f19175c3da7 2009-07-02 11:10:56 -07:00
Xiomara Jayasena
ed8fe0a826 Added tag jdk7-b63 for changeset 602c27ff78bc 2009-07-02 11:10:55 -07:00
Xiomara Jayasena
21c2f06cab Added tag jdk7-b63 for changeset 06171649948f 2009-07-02 11:10:50 -07:00
Xiomara Jayasena
fafbce61bc Added tag jdk7-b63 for changeset 216abec68111 2009-07-02 11:10:47 -07:00
Xiomara Jayasena
7aef72f708 Added tag jdk7-b63 for changeset f8a5fbede855 2009-07-02 11:10:46 -07:00
Andy Herrick
df335e4cd0 Merge 2009-07-01 10:18:58 -04:00
Yuri Nesterenko
3306dc93fa Merge 2009-07-01 00:24:25 -07:00
Yuri Nesterenko
41cd33fc25 Merge 2009-07-01 00:23:56 -07:00
Yuri Nesterenko
130ebaebe5 Merge 2009-07-01 00:17:02 -07:00
Erik Trimble
9fa3fbda4b 6856257: Bump the HS16 build number to 05
Update the HS16 build number to 05

Reviewed-by: jcoomes
2009-06-30 10:40:31 -07:00
Yuri Nesterenko
6c34ebe4d3 Merge 2009-06-30 02:48:38 -07:00
Anton Tarasov
fdd0280661 6855713: jdk7: debug build failure in awt_Frame.cpp
Reviewed-by: dcherepanov, yan
2009-06-30 12:55:21 +04:00
Tim Bell
101107355d Merge 2009-06-29 23:08:52 -07:00
Tim Bell
692966b0eb Merge 2009-06-29 23:08:06 -07:00
Xueming Shen
a91b1ffd43 Merge 2009-06-29 21:16:01 -07:00
Weijun Wang
c9930b0e4f 6855671: DerOutputStream encodes negative integer incorrectly
Reviewed-by: xuelei
2009-06-30 11:55:58 +08:00
Xueming Shen
4b33465b42 6707281: Adler32.update() JavaDoc is wrong
6553961: java.util.zip.{CRC32,Adler32}.update(int) doc errors
6646605: Missing method ZipFile.getComment()
6841232: ZipFile should implement Closeable
4985614: Failure on calls to ZipFile constructor
5032358: "java.util.zip.ZipException: The system cannot find the file specified"
6846616: java/util/zip/ZipFile/ReadAfterClose.java failed after fix for 6735255

Some misc bug/rfe fixes for zipfile

Reviewed-by: alanb
2009-06-29 19:57:58 -07:00
Jonathan Gibbons
b6347a63bf 6855993: fix comments in langtools launcher script
Reviewed-by: ohair
2009-06-29 17:45:29 -07:00
Tim Bell
c0a769b9ff Merge 2009-06-29 17:40:17 -07:00
Yuka Kamiya
f2d770bf73 6855715: Font2Dtest demo needs to be updated to support Unicode 5.1.0
Reviewed-by: okutsu
2009-06-30 09:38:16 +09:00
Jonathan Gibbons
92af1e97cf 6855069: rmic should support v51 class files
Reviewed-by: jrose
2009-06-29 16:28:58 -07:00
Jennifer Godinez
5256d9183f Merge 2009-06-29 14:42:22 -07:00
Andy Herrick
84c0ca5fa8 6855953: JDK7 - merger error of deployment changes with b62 -in jdk/make/sun/Makefile
This problem was discovered testing initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-29 17:34:29 -04:00
Andy Herrick
974a4682e4 Merge 2009-06-29 12:06:42 -04:00
Andy Herrick
85ce7f96e2 Merge 2009-06-29 12:00:41 -04:00
Andy Herrick
a1a51c4ffa Merge 2009-06-29 12:00:09 -04:00
Michael McMahon
df221ae4b0 Merge 2009-06-29 15:08:52 +01:00
Michael McMahon
f9268d3c20 6827999: 6827999: URLClassLoader.addURL(URL) adds URLs to closed class loader
Reviewed-by: chegar
2009-06-29 15:05:15 +01:00
Chris Hegarty
60b4f589fb 6855335: Several changes in the SCTP implementation
Reviewed-by: michaelm
2009-06-29 14:53:10 +01:00
Michael McMahon
27c5ebc1c1 Merge 2009-06-29 13:29:05 +01:00
Michael McMahon
a505db1f7d 6513803: httpserver regression test Test13 failing and causing NullPointerException
Check for NPEs

Reviewed-by: chegar
2009-06-29 13:10:33 +01:00
Tim Bell
817aac3f58 Merge 2009-06-28 23:16:18 -07:00
Kelly O'Hair
82ca44035d Merge 2009-06-28 11:47:34 -07:00
Tim Bell
ae572de526 Merge 2009-06-28 00:01:09 -07:00
Tim Bell
8990000e63 Merge 2009-06-28 00:00:25 -07:00
Alan Bateman
9b6fcc28d2 6844054: (bf) Eliminate dependency on javax.management.ObjectName
Reviewed-by: mchung
2009-06-27 21:49:41 +01:00
Alan Bateman
212565afd7 6838333: New I/O: Update file system API to jsr203/nio2-b101
6844313: New I/O: File timestamps should be represented by a FileTime rather than a long+TimeUnit

Reviewed-by: sherman
2009-06-27 21:46:53 +01:00
Mahmood Ali
48800dcb6c 6855563: test broken after merge with latest parser
Reviewed-by: jjg
2009-06-27 12:04:43 -07:00
Kelly O'Hair
4f6bc0cc73 6855180: Fix classfile version check in java_crw_demo
Reviewed-by: jjg
2009-06-26 21:52:47 -07:00
Michael Ernst
d6b7dc0812 6854796: update JSR308 impl with latest code from type-annotations repo
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 19:47:12 -07:00
Michael Ernst
e03ee9130a 6855544: add missing files
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 19:12:41 -07:00
Michael Ernst
5a1465b9de 6843077: JSR 308: Annotations on types
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 18:51:39 -07:00
Michael Ernst
272d82ec23 6843077: JSR 308: Annotations on types
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 18:39:45 -07:00
Joe Darcy
2b12b62ad4 6593082: MirroredTypeException constructor does not throw NPE when type is null
Reviewed-by: jjg
2009-06-26 12:22:40 -07:00
Peter Zhelezniakov
f17d1e509e 6849805: Nimbus L&F: NimbusLookAndFeel.getDerivedColor() not always returns color2 for 1.0 midPoint
Different rounding mode used for float->int conversion

Reviewed-by: malenkov
2009-06-26 21:43:21 +04:00
Tim Bell
71fcc09e90 Merge 2009-06-26 10:26:27 -07:00
Tim Bell
645805c313 Merge 2009-06-26 10:25:45 -07:00
Man Lung Wong
adb1c7571e 6848458: java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java fails
Consider gap between the component edge and container borders instead of just getX() and getY()

Reviewed-by: dav
2009-06-26 19:50:44 +04:00
Jean-Christophe Collet
33dbe6a01d 6855297: Windows build breaks after 6811297
Re-introduced the mistakenly taken out authObj member

Reviewed-by: chegar
2009-06-26 16:50:58 +02:00
Sergey Malenkov
99370fd871 6742850: Antialiasing for GTK L&F should be turned on by default if there is no embedded bitmap
Reviewed-by: peterz
2009-06-26 17:15:19 +04:00
Sergey Malenkov
d41845e0ab 6679840: provide a way to choose v-synced BufferStrategy
Reviewed-by: peterz
2009-06-26 16:58:46 +04:00
Sergey Malenkov
0ed9b1c52f 6557223: Resize cursor stays after fast outline-resize of JInternalFrame with JScrollPane
Reviewed-by: peterz
2009-06-26 16:30:02 +04:00
Yuri Nesterenko
c61b48b28b 6711676: Numpad keys trigger more than one KeyEvent
Introduce a new sniffer based on server keymap.

Reviewed-by: art
2009-06-26 11:48:58 +04:00
Erik Trimble
0fc1aa3a2b Merge 2009-06-25 22:01:08 -07:00
Peter Zhelezniakov
433856b24d 6827032: NIMBUS: Drag and drop throws a NPE in SwingSet2 ColorChooser
Reviewed-by: malenkov
2009-06-26 08:09:19 +04:00
Lillian Angel
9feab8fb3a 6852607: MessageUtils JVM crash
Fixes crash by checking null field

Reviewed-by: alanb
2009-06-25 17:01:56 -04:00
Xiomara Jayasena
a37f5785ad Added tag jdk7-b62 for changeset aca415f62ac6 2009-06-25 12:10:11 -07:00
Xiomara Jayasena
16157d1e61 Added tag jdk7-b62 for changeset 301dcd5c88d0 2009-06-25 12:10:01 -07:00
Xiomara Jayasena
6b2bc4b69e Added tag jdk7-b62 for changeset 90c518858444 2009-06-25 12:09:54 -07:00
Xiomara Jayasena
fd51007692 Added tag jdk7-b62 for changeset fe183c0b19a9 2009-06-25 12:09:53 -07:00
Xiomara Jayasena
5cd0d5d07c Added tag jdk7-b62 for changeset c9577b36ceac 2009-06-25 12:09:48 -07:00
Xiomara Jayasena
c8519d5bfa Added tag jdk7-b62 for changeset 71847d16bc71 2009-06-25 12:09:45 -07:00
Xiomara Jayasena
e798379e7f Added tag jdk7-b62 for changeset 5d65d3a7be83 2009-06-25 12:09:43 -07:00
Jean-Christophe Collet
1ece67558e 6811297: Add more logging to HTTP protocol handler
Added extra logging to HttpURLConnection and HttpClient. Added a capture tool.

Reviewed-by: chegar
2009-06-25 18:56:30 +02:00
Sergey Malenkov
3fcee8351e 6848364: javax/swing/border/Test4856008.java regression test fails due to BorderedComponent package not found
Reviewed-by: alexp
2009-06-25 18:50:51 +04:00
Yuka Kamiya
bbd33e6ddc 6792400: Avoid loading of Normalizer resources for simple uses
Reviewed-by: okutsu
2009-06-25 21:55:39 +09:00
Yuri Nesterenko
b6b6594d50 Merge 2009-06-25 02:42:26 -07:00
Yuka Kamiya
3876899a84 6609750: [Fmt-De] SimpleDateFormat.format() doesn't handle pattern "y" correctly
Reviewed-by: okutsu
2009-06-25 17:37:28 +09:00
Yuri Nesterenko
2fb866d956 Merge 2009-06-25 00:20:34 -07:00
Yuri Nesterenko
0efb52dc90 Merge 2009-06-25 00:18:46 -07:00
Tim Bell
c76e1a308a Merge 2009-06-24 17:34:13 -07:00
Yuka Kamiya
f73952ec12 6853792: test/java/text/Bidi/Bug6850113.java compilation error
Reviewed-by: okutsu
2009-06-25 07:38:09 +09:00
Andy Herrick
b8b39b3d37 6633813: Add standard hotspot import path for Kernel VM
This problem was discovered testing initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-24 14:49:31 -04:00
Jennifer Godinez
912fd84f30 Merge 2009-06-24 11:49:16 -07:00
Sergey Malenkov
eaf8bfc5f3 6737700: api/javax_swing/table/DefaultTableCellRenderer/index.html#getset:DefaultTableCellRenderer
Reviewed-by: alexp
2009-06-24 17:45:19 +04:00
Sergey Malenkov
c48e8ec7a6 6852574: EnumPersistenceDelegate fails to persist instances with blocks
Reviewed-by: peterz
2009-06-24 13:59:54 +04:00
Maurizio Cimadamore
b4cc117e8c 6852649: The Rich formatter printer should be an explicit class to facilitate overriding
Improve reusabiliy of the rich formatter by removing anonymous inner classes/changing visibility of fields

Reviewed-by: jjg
2009-06-24 10:51:13 +01:00
Maurizio Cimadamore
1fc0b5c367 6852595: Accessing scope using JSR199 API on erroneous tree causes Illegal Argument Exception
Fixed problem with empty DiagnosticSource objects causing IAE in the JCDiagnostic constructor

Reviewed-by: jjg
2009-06-24 10:50:54 +01:00
Maurizio Cimadamore
6847ebb65f 6822637: ResolveError hierarchy needs to be refactored
Break ResolveError class into a hierarchy representing different kinds of resolution errors

Reviewed-by: jjg
2009-06-24 10:50:27 +01:00
Yuri Nesterenko
46360bd868 Merge 2009-06-23 23:09:49 -07:00
Yuri Nesterenko
c801c71a5a Merge 2009-06-23 23:08:59 -07:00
Tim Bell
7cd3837139 Merge 2009-06-23 22:09:28 -07:00
Tim Bell
b9554f42b8 Merge 2009-06-23 22:07:58 -07:00
Anthony Petrov
b751a27e27 6851646: test/closed/java/awt/GridBagLayout/GridBagLayoutIpadXYTest/GridBagLayoutIpadXYTest.java can fail
Added realSync() call. Made the test public.

Reviewed-by: dcherepanov
2009-06-23 16:10:19 +04:00
Anton Tarasov
4fc4bb20ae 6821291: assertion failure in awt_Frame.h
Reviewed-by: dcherepanov, art
2009-06-23 15:53:32 +04:00
Dmitry Cherepanov
0cadb2e023 6736247: Component.printAll Invalid local JNI handle
Reviewed-by: anthony
2009-06-23 15:10:02 +04:00
Dmitry Cherepanov
2e78b95300 6824169: Need to remove some AWT class dependencies
Reviewed-by: art, anthony, igor, alexp
2009-06-23 13:35:58 +04:00
Peter Zhelezniakov
25986e7185 6844273: jdk/make/docs/CORE_PKGS.gmk does not list Nimbus
Reviewed-by: prr
2009-06-23 12:24:37 +04:00
Peter Zhelezniakov
beedf39dce 6844273: jdk/make/docs/CORE_PKGS.gmk does not list Nimbus
Reviewed-by: prr
2009-06-23 12:24:11 +04:00
Martin Buchholz
cab60341e3 6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
Eliminate (most) uses of jar -C

Reviewed-by: ohair
2009-06-22 21:07:20 -07:00
Jeremy Manson
7c01613569 6834805: Improve jar -C performance
Store "-C" directories in a HashSet, not List, to remove duplicates

Reviewed-by: sherman
2009-06-22 20:47:51 -07:00
Xueming Shen
3c65bb6343 6847092: (cs) CharsetEncoder.isLegalReplacement of US_ASCII behaves differently since
Updated the US_ASCII and ISO-8859-1 to fix the failure.

Reviewed-by: alanb, martin
2009-06-22 19:22:47 -07:00
Martin Buchholz
614cc9b007 6851653: (launcher) Make every java process 20 bytes smaller
Carefully keep track of every byte

Reviewed-by: ksrini, xlu
2009-06-22 16:41:27 -07:00
Phil Race
886c516b5b 6853617: race condition in java.awt.Font.getAttributes() (private method)
Reviewed-by: igor, jgodinez
2009-06-22 14:10:09 -07:00
Jennifer Godinez
cb5399d380 6850398: Allow GraphicsEnvironment to be loaded by system classloader (edit)
Reviewed-by: campbell, prr
2009-06-22 09:47:50 -07:00
Peter Zhelezniakov
3006b1fcd0 6849277: Nimbus L&F: lots of painter classes were added to JDK7 as public
Reviewed-by: malenkov
2009-06-22 18:08:50 +04:00
Andy Herrick
ca0d6a6d87 Merge 2009-06-22 09:16:54 -04:00
Andy Herrick
20ca8f630f Merge 2009-06-22 09:14:27 -04:00
Andy Herrick
647445e46c Merge 2009-06-22 09:14:12 -04:00
Tim Bell
adc7d0d7eb Merge 2009-06-21 23:55:50 -07:00
Tim Bell
8848c1d3d6 Merge 2009-06-21 23:52:58 -07:00
Tim Bell
9d8cdd7057 Merge 2009-06-21 23:52:12 -07:00
Tim Bell
686380cd8d Merge 2009-06-21 23:51:39 -07:00
Tim Bell
a251061f15 Merge 2009-06-21 23:50:28 -07:00
Tim Bell
b7f472f390 Merge 2009-06-21 23:49:42 -07:00
Martin Buchholz
356454363f 6853336: (process) disable or remove clone-exec feature (6850720)
Clone-exec feature (6850720) needs more work on 32-bit Linux

Reviewed-by: alanb, michaelm
2009-06-21 12:02:14 -07:00
Xiaobin Lu
c0146a5bd0 6850606: Regression from JDK 1.6.0_12
The returned result from multiply should be constructed by using valueOf to take care of the INFLATED case.

Reviewed-by: darcy
2009-06-20 13:34:06 -07:00
Xueming Shen
721a90bda5 6299219: euro sign failed to be printed in Console on Localized Windows platform with GBK encoding
4891024: EUC-KR and JOHAB converters need to be updated to include two new characters
4287467: Character converter generator tool

Migrated some of the doublebyte charsets to the new implementation.

Reviewed-by: okutsu
2009-06-19 14:39:06 -07:00
Lillian Angel
5cd182518e 6721086: Toolkit beep does not work consistently
Flush out after bell is sounded

Reviewed-by: anthony
2009-06-19 16:49:50 -04:00
Andy Herrick
2d11eb64db 6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
This problem was discovered testing initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-19 15:04:51 -04:00
Jonathan Gibbons
b62ac9c58c 6852856: javap changes to facilitate subclassing javap for variants
Reviewed-by: mcimadamore
2009-06-19 11:40:47 -07:00
Andy Herrick
2eaba45345 6852646: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set
This problem was discovered testing initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-19 11:46:39 -04:00
Jon Masamitsu
c8140c1078 Merge 2009-06-19 07:33:25 -07:00
Jean-Christophe Collet
712e4baa4b 6852108: Remove Preferences dependance from SocksSocketImpl
Removed Preferences API use and fixed a few findbugs gotchas

Reviewed-by: alanb
2009-06-19 14:12:22 +02:00
Weijun Wang
1d5c589340 6851973: ignore incoming channel binding if acceptor does not set one
Reviewed-by: valeriep
2009-06-19 18:03:27 +08:00
Xiomara Jayasena
1d0779a3a4 Added tag jdk7-b61 for changeset d3f240c8b48f 2009-06-18 13:05:48 -07:00
Xiomara Jayasena
38d90218be Added tag jdk7-b61 for changeset 11089342ea90 2009-06-18 13:05:38 -07:00
Xiomara Jayasena
ce0ae876c8 Added tag jdk7-b61 for changeset e1179c38abf6 2009-06-18 13:05:31 -07:00
Xiomara Jayasena
62d03b7b68 Added tag jdk7-b61 for changeset 539a96985f3b 2009-06-18 13:05:30 -07:00
Xiomara Jayasena
b1455878ee Added tag jdk7-b61 for changeset c97f5ba46ed8 2009-06-18 13:05:25 -07:00
Xiomara Jayasena
56bdb06bb1 Added tag jdk7-b61 for changeset 5f63016850d8 2009-06-18 13:05:21 -07:00
Xiomara Jayasena
d12a988e50 Added tag jdk7-b61 for changeset 73a162bf9360 2009-06-18 13:05:20 -07:00
Jon Masamitsu
317dafead1 Merge 2009-06-18 12:40:53 -07:00
Sean Mullan
1d306fbe9b Merge 2009-06-18 10:38:21 -04:00
Sean Mullan
5e6adf6d99 6833839: RFE: improve ManifestDigester by instantiating StringBuilder constructor w/ initial value
Reviewed-by: weijun
2009-06-18 09:04:20 -04:00
Anton Tarasov
48ed6852bf 4788402: SortingFocusTraversalPolicy: prob with non-focusable focus Cycle Root as first
Reviewed-by: dcherepanov
2009-06-18 11:28:54 +04:00
Yuri Nesterenko
0b09aba377 Merge 2009-06-17 23:27:56 -07:00
Weijun Wang
f5d1fbc0b4 6712755: jarsigner fails to sign itextasian.jar since 1.5.0_b14, it works with 1.5.0_13
Reviewed-by: mullan
2009-06-18 11:12:13 +08:00
Andrew John Hughes
fdff41f711 6851515: awt_p.h incorporates a chunk of the XRender header
Use XRender header directly rather than copying chunks locally

Reviewed-by: anthony, ohair
2009-06-17 21:13:04 +01:00
Andrew John Hughes
e4d607185f 6851515: awt_p.h incorporates a chunk of the XRender header
Use XRender header directly rather than copying chunks locally

Reviewed-by: anthony, ohair
2009-06-17 20:53:01 +01:00
Weijun Wang
7b2694f5b3 6849275: enhance krb5 reg tests
Reviewed-by: xuelei
2009-06-17 15:26:58 +08:00
Xue-Lei Andrew Fan
71306719d3 6850783: InvalidityDateExtension returns reference to internal mutable state
Return cloned instead of referenced object

Reviewed-by: weijun
2009-06-16 20:46:25 +08:00
Maurizio Cimadamore
3b51e6ae0d 6638712: Inference with wildcard types causes selection of inapplicable method
Added global sanity check in order to make sure that return type inference does not violate bounds constraints

Reviewed-by: jjg
2009-06-16 10:46:37 +01:00
Maurizio Cimadamore
fda3d758e3 6835428: regression: return-type inference rejects valid code
Redundant subtyping test during type-inference ends up in rejecting legal code

Reviewed-by: jjg
2009-06-16 10:46:16 +01:00
Maurizio Cimadamore
5f7f3d4e38 6835430: javac does not generate signature attributes for classes extending parameterized inner classes
ClassWriter does not consider outer params of an inner class when emitting signature attributes

Reviewed-by: jjg
2009-06-16 10:45:42 +01:00
Maurizio Cimadamore
518efd59c1 6845686: basic and raw formatters do not display captured var id properly when javac runs in -XDoldDiags mode
Basic and raw formatters do not override Printer methods properly

Reviewed-by: jjg
2009-06-16 10:45:11 +01:00
Yuri Nesterenko
d184c2ebce Merge 2009-06-16 00:37:39 -07:00
Andy Herrick
1939fe49d8 Merge 2009-06-15 13:08:29 -04:00
Andy Herrick
679c401cc8 Merge 2009-06-15 13:07:30 -04:00
Andy Herrick
47ab693590 Merge 2009-06-15 13:07:18 -04:00
Jennifer Godinez
45febb097f Merge 2009-06-15 09:59:03 -07:00
Dmitry Cherepanov
d7d8999b2b 6847584: closed/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.html fails
Reviewed-by: anthony
2009-06-15 11:15:55 -04:00
Andrew Brygin
0574960761 6684104: Applets fails to launch using ImageIO if .java.policy with File permissions present on the system
Reviewed-by: igor, prr
2009-06-15 17:19:33 +04:00
Andrew Brygin
5ecb6c24be 6829549: JVM crash on certain images
Reviewed-by: igor, prr
2009-06-15 14:49:22 +04:00
Jeremy Manson
5bf951e2a6 6511515: poor performance of LogRecord.inferCaller depending on java.lang.Throwable.getStackTraceElement
Allow random access to stack trace elements; retrieve only needed ones

Reviewed-by: swamyv
2009-06-14 14:33:30 -07:00
Martin Buchholz
a5e977cf14 6850720: (process) Use clone(CLONE_VM), not fork, on Linux to avoid swap exhaustion
Use clone(CLONE_VM) on Linux; Reluctantly implement execvpe.

Reviewed-by: michaelm
2009-06-14 14:23:22 -07:00
Yuka Kamiya
3445a11481 6850113: Bidi class needs to be updated to support Unicode 5.1
Reviewed-by: okutsu
2009-06-13 06:43:54 +09:00
Antonios Printezis
f741e2fceb 6850846: G1: extend G1 marking verification
Extend G1 marking verification to use either the "prev" or "next" marking information, as appropriate.

Reviewed-by: johnc, ysr
2009-06-12 16:20:16 -04:00
Andy Herrick
e487e25584 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
6845973: Update JDK7 with deployment changes in 6u13, 6u14
4802695: Support 64-bit Java Plug-in and Java webstart on Windows/Linux on AMD64
6825019: DownloadManager should not be loaded and referenced for full JRE
6738770: REGRESSION:JSException throws when use LiveConnect javascript facility
6772884: plugin2 : java.lang.OutOfMemoryError or crash
6707535: Crossing domain hole affecting multiple sites/domains using plug-in
6728071: Non-verification of Update files may allow unintended updates
6704154: Code loaded from local filesystem should not get access to localhost
6727081: Web Start security restrictions bypass using special extension jnlp
6727079: Java Web Start Socket() restriction bypass
6727071: Cache location/user name information disclosure in SingleInstanceImpl
6716217: AppletClassLoader adds permissions based on codebase regardless of CS
6694892: Java Webstart inclusion via system properties override [CVE-2008-2086]
6704074: localhost socket access due to cache location exposed
6703909: Java webstart arbitrary file creation using nativelib
6665315: browser crashes when deployment.properties has more slashes ( / )
6660121: Encoding values in JNLP files can cause buffer overflow
6606110: URLConnection.setProxiedHost for resources that are loaded via proxy
6581221: SSV(VISTA): Redirection FAILS to work if user does a downgrade install
6609756: Buffer Overflow in Java ActiveX component
6608712: Bypassing the same origin policy in Java with crafted names
6534630: "gnumake clobber" doesn't
6849953: JDK7 - replacement of bufferoverflowU.lib on amd64 breaks build
6849029: Need some JDK7 merge clean-up after comments on the webrev
6847582: Build problem on JDK7 with isSecureProperty in merge
6827935: JDK 7 deployment merging - problem in Compiler-msvm.gmk
6823215: latest merge fixes from 6u12 -> JDK7
6816153: further mergers for JDK7 deployment integration
6807074: Fix Java Kernel and JQS in initial JDK7 builds

Initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-12 14:56:32 -04:00
Tim Bell
b88afe3210 Merge 2009-06-11 21:35:12 -07:00
Tim Bell
54e8ace85c Merge 2009-06-11 21:32:12 -07:00
Tim Bell
1d82926517 Merge 2009-06-11 21:30:49 -07:00
Tim Bell
c39be4cb0e Merge 2009-06-11 21:26:25 -07:00
Tim Bell
3b9b40dd90 Merge 2009-06-11 21:11:22 -07:00
Tim Bell
a91e623395 Merge 2009-06-11 21:09:19 -07:00
Erik Trimble
d560c41ebf Merge 2009-06-11 21:01:07 -07:00
Xue-Lei Andrew Fan
2f977c16d9 6570344: Invalid RSA OID in sun.security.x509.AlgorithmId
Change RSA OID to "2.5.8.1.1"

Reviewed-by: mullan
2009-06-12 09:00:38 +08:00
Erik Trimble
79522a9709 6850551: Bump the HS16 build number to 04
Update the HS16 build number to 04

Reviewed-by: jcoomes
2009-06-11 17:56:51 -07:00
Erik Trimble
d42eeab7f3 Merge 2009-06-11 17:46:40 -07:00
John Coomes
24f3527be2 6849716: BitMap - performance regression introduced with G1
Make verification code visible only in debug builds

Reviewed-by: iveresov, ysr, johnc, apetrusenko, tonyp
2009-06-11 13:31:01 -07:00
Andy Herrick
ac945bbf62 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
6845973: Update JDK7 with deployment changes in 6u13, 6u14
4802695: Support 64-bit Java Plug-in and Java webstart on Windows/Linux on AMD64
6825019: DownloadManager should not be loaded and referenced for full JRE
6738770: REGRESSION:JSException throws when use LiveConnect javascript facility
6772884: plugin2 : java.lang.OutOfMemoryError or crash
6707535: Crossing domain hole affecting multiple sites/domains using plug-in
6728071: Non-verification of Update files may allow unintended updates
6704154: Code loaded from local filesystem should not get access to localhost
6727081: Web Start security restrictions bypass using special extension jnlp
6727079: Java Web Start Socket() restriction bypass
6727071: Cache location/user name information disclosure in SingleInstanceImpl
6716217: AppletClassLoader adds permissions based on codebase regardless of CS
6694892: Java Webstart inclusion via system properties override [CVE-2008-2086]
6704074: localhost socket access due to cache location exposed
6703909: Java webstart arbitrary file creation using nativelib
6665315: browser crashes when deployment.properties has more slashes ( / )
6660121: Encoding values in JNLP files can cause buffer overflow
6606110: URLConnection.setProxiedHost for resources that are loaded via proxy
6581221: SSV(VISTA): Redirection FAILS to work if user does a downgrade install
6609756: Buffer Overflow in Java ActiveX component
6608712: Bypassing the same origin policy in Java with crafted names
6534630: "gnumake clobber" doesn't
6849953: JDK7 - replacement of bufferoverflowU.lib on amd64 breaks build
6849029: Need some JDK7 merge clean-up after comments on the webrev
6847582: Build problem on JDK7 with isSecureProperty in merge
6827935: JDK 7 deployment merging - problem in Compiler-msvm.gmk
6823215: latest merge fixes from 6u12 -> JDK7
6816153: further mergers for JDK7 deployment integration
6807074: Fix Java Kernel and JQS in initial JDK7 builds

Initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-11 15:16:20 -04:00
Andy Herrick
2189d1b41a 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
6845973: Update JDK7 with deployment changes in 6u13, 6u14
4802695: Support 64-bit Java Plug-in and Java webstart on Windows/Linux on AMD64
6825019: DownloadManager should not be loaded and referenced for full JRE
6738770: REGRESSION:JSException throws when use LiveConnect javascript facility
6772884: plugin2 : java.lang.OutOfMemoryError or crash
6707535: Crossing domain hole affecting multiple sites/domains using plug-in
6728071: Non-verification of Update files may allow unintended updates
6704154: Code loaded from local filesystem should not get access to localhost
6727081: Web Start security restrictions bypass using special extension jnlp
6727079: Java Web Start Socket() restriction bypass
6727071: Cache location/user name information disclosure in SingleInstanceImpl
6716217: AppletClassLoader adds permissions based on codebase regardless of CS
6694892: Java Webstart inclusion via system properties override [CVE-2008-2086]
6704074: localhost socket access due to cache location exposed
6703909: Java webstart arbitrary file creation using nativelib
6665315: browser crashes when deployment.properties has more slashes ( / )
6660121: Encoding values in JNLP files can cause buffer overflow
6606110: URLConnection.setProxiedHost for resources that are loaded via proxy
6581221: SSV(VISTA): Redirection FAILS to work if user does a downgrade install
6609756: Buffer Overflow in Java ActiveX component
6608712: Bypassing the same origin policy in Java with crafted names
6534630: "gnumake clobber" doesn't
6849953: JDK7 - replacement of bufferoverflowU.lib on amd64 breaks build
6849029: Need some JDK7 merge clean-up after comments on the webrev
6847582: Build problem on JDK7 with isSecureProperty in merge
6827935: JDK 7 deployment merging - problem in Compiler-msvm.gmk
6823215: latest merge fixes from 6u12 -> JDK7
6816153: further mergers for JDK7 deployment integration
6807074: Fix Java Kernel and JQS in initial JDK7 builds

Initial changeset for implementing 6uX Deployment Features into JDK7

Reviewed-by: dgu, billyh
2009-06-11 15:15:49 -04:00
Xiomara Jayasena
13dc5bb0c0 Added tag jdk7-b60 for changeset 47bb5c4cb85e 2009-06-11 10:54:31 -07:00
Xiomara Jayasena
861912d777 Added tag jdk7-b60 for changeset 21261fc963f2 2009-06-11 10:54:22 -07:00
Xiomara Jayasena
76d4b7bdd4 Added tag jdk7-b60 for changeset 76ee911ec65f 2009-06-11 10:54:15 -07:00
Xiomara Jayasena
8a94398eb5 Added tag jdk7-b60 for changeset 23aa5ac01f3b 2009-06-11 10:54:14 -07:00
Xiomara Jayasena
283db215ef Added tag jdk7-b60 for changeset 4df6b30560c1 2009-06-11 10:54:09 -07:00
Xiomara Jayasena
9599b16f63 Added tag jdk7-b60 for changeset 6737e8a2ab2b 2009-06-11 10:54:06 -07:00
Xiomara Jayasena
fbcb9909e0 Added tag jdk7-b60 for changeset fc15870ef45c 2009-06-11 10:54:05 -07:00
Andrew Brygin
d78db1b0c7 5101862: WBMP Image reader tries to load Quicktime MOV files
Reviewed-by: igor, prr
2009-06-11 14:22:33 +04:00
Andrew Brygin
83632f1cab 6296893: BMP Writer handles TopDown property incorrectly for some of the compression types
Reviewed-by: igor, prr
2009-06-11 13:47:42 +04:00
Jon Masamitsu
46dcdf10e6 Merge 2009-06-10 14:57:21 -07:00
Sean Mullan
46c0719042 6845161: Bottleneck in Configuration.getConfiguration synchronized call
Reduce scope of synchronized block

Reviewed-by: weijun
2009-06-10 09:12:15 -07:00
Yuri Nesterenko
d094861eeb Merge 2009-06-09 23:47:38 -07:00
Weijun Wang
8a52d1a9d5 6578647: Undefined requesting URL in java.net.Authenticator.getPasswordAuthentication()
Reviewed-by: chegar, valeriep
2009-06-09 14:17:05 +08:00
Igor Veresov
307bb62ca5 6849122: G1: Typo introduced during implementation of the parallel refinement
Typo fix

Reviewed-by: jcoomes
2009-06-08 16:14:19 -07:00
Jennifer Godinez
b321d4a736 Merge 2009-06-08 13:56:45 -07:00
John Coomes
10002fa2ff 6814552: par compact - some compilers fail to optimize bitmap code
Reviewed-by: tonyp, iveresov, jmasa, ysr
2009-06-07 22:08:24 -07:00
John Cuthbertson
70fe3ca4f5 6843694: G1: assert(index < _vs.committed_size(),"bad index"), g1BlockOffsetTable.inline.hpp:55
For heaps larger than 32Gb, the number of heap regions overflows the data type used to hold the region index in the SparsePRT structure. Changed the region indexes, card indexes, and RSet hash table buckets to ints and added some size overflow guarantees.

Reviewed-by: ysr, tonyp
2009-06-11 17:19:33 -07:00
Y. Srinivas Ramakrishna
9d9317de4c 6820167: GCALotAtAllSafepoints + FullGCALot(ScavengeALot) options crash JVM
Short-circuit gc-a-lot attempts by non-JavaThreads; SkipGCALot c'tor to elide re-entrant gc-a-lot attempts.

Reviewed-by: apetrusenko, jcoomes, jmasa, kamg
2009-06-11 12:40:00 -07:00
Y. Srinivas Ramakrishna
9611174798 6848641: CMSCollector::_roots_scanning_options should be initialized
The field is now initialized in the constructor.

Reviewed-by: iveresov, jmasa, johnc
2009-06-07 00:27:41 -07:00
Changpeng Fang
0429abd38a 6848466: frame::frame_size() assertion failure with -XX:+DebugDeoptimization
Add a RegisterMap* argument to frame::frame_size() to correctly compute the sender frame

Reviewed-by: never
2009-06-05 10:25:39 -07:00
Dmitry Cherepanov
7019b37e8c 6829180: Removing focused component from a window causes a JVM crash for JDK7b50+ on WinXP/Vista
Access pData on the toolkit thread

Reviewed-by: art, anthony, naoto
2009-06-05 17:30:05 +04:00
Omair Majid
eb1cb99d4e 6832386: Fix JTreg test: java/awt/Graphics/DrawImageBG/SystemBgColorTest.java
Removed unneeded System.exit(0) call.

Reviewed-by: art, ohair, anthony
2009-06-04 15:18:46 +04:00
Xue-Lei Andrew Fan
105735aeb6 6847459: Allow trust anchor self-issued intermediate version 1 and version 2 certificate
Reviewed-by: weijun
2009-06-04 11:28:03 +08:00
Tom Rodriguez
73a6885c23 Merge 2009-06-03 18:15:25 -07:00
Tom Rodriguez
fd4d5540ba Merge 2009-06-03 15:16:50 -07:00
Tom Rodriguez
169c83bf8d 6847305: solaris reorder mapfiles generate too many warnings
Reviewed-by: kvn
2009-06-03 15:02:13 -07:00
Yuri Nesterenko
1770d3d03e 6839645: Swing application prints message in Control Panel if language is changed
Just remove debug printout from production builds; ignore multicharacter-generating keys

Reviewed-by: uta
2009-06-03 17:41:05 +04:00
Yuri Nesterenko
86df48bb43 Merge 2009-06-01 01:06:28 -07:00
Yuri Nesterenko
5979ab9e03 Merge 2009-06-01 01:05:22 -07:00
Xueming Shen
01649412e3 6808625: Incomplete code sample in Deflater javadoc
Added compresser.end() into example

Reviewed-by: martin
2009-05-29 16:34:49 -07:00
Jonathan Gibbons
e25b3b4834 6838199: remove support for old javap
Reviewed-by: ohair, mcimadamore
2009-05-29 16:27:26 -07:00
Jonathan Gibbons
542d43cc10 6838199: remove support for old javap
Reviewed-by: ohair, mcimadamore
2009-05-29 16:26:41 -07:00
Chris Hegarty
9641cb498c 6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
Reviewed-by: alanb
2009-05-29 15:51:43 +01:00
Jonathan Gibbons
6fb18b568c 6802102: unignore @ignored tests where possible
Reviewed-by: mcimadamore
2009-05-28 09:49:56 -07:00
Changpeng Fang
f981546f2d 6837146: Should perform unswitch before maximally unroll in loop transformation
Move loop unswitch before maximally unroll

Reviewed-by: never
2009-05-28 09:37:18 -07:00
Pavel Porvatov
f46daf03eb 6845805: Test for CR 6713352 is failed under Linux
Reviewed-by: malenkov
2009-05-28 18:11:07 +04:00
Joe Darcy
05ea258bbb 6843761: Update langtools tests to remove unncessary -source and -target options
Reviewed-by: jjg
2009-05-27 22:34:43 -07:00
Keith McGuigan
ac9b9ad0ea Merge 2009-05-27 15:32:21 -07:00
Keith McGuigan
c2ff547e1f 6838211: jdk docs creation broken for tracing docs
Fix javadoc makefile macro

Reviewed-by: ohair, jjg
2009-05-27 13:20:23 -07:00
Mandy Chung
e1109816d7 Merge 2009-05-27 13:02:00 -07:00
Vladimir Kozlov
802f3552f9 6843752: missing code for an anti-dependent Phi in GCM
Don't place a load below anti-dependent PHI.

Reviewed-by: never, twisti
2009-05-27 12:35:51 -07:00
Xue-Lei Andrew Fan
06370a8f01 6845286: Add regression test for name constraints
Create regression test cases on name constraints

Reviewed-by: weijun
2009-05-27 17:48:22 +08:00
Mandy Chung
26e0c238dd 6535104: TEST_BUG: FindDeadlocks.java fails intermittently
Retry a few times to check thread status before reporting failure

Reviewed-by: swamyv
2009-05-26 18:09:32 -07:00
Mandy Chung
dd2d72ea50 6512493: TEST_BUG: unexpected LockInfo failure in LockedSynchronizers.java
Retry a few times to check thread status before reporting failure

Reviewed-by: swamyv
2009-05-26 18:07:14 -07:00
Mandy Chung
354731edb5 5080203: TEST_BUG: ThreadStateTest fails intermittently
Retry a few times to check thread status before reporting failure

Reviewed-by: swamyv
2009-05-26 18:02:44 -07:00
Mandy Chung
bb698a2b6f 6798842: TEST_BUG: ThreadStackTrace.java fails intermittently with unexpected thread status
Remove @ignore

Reviewed-by: swamyv
2009-05-26 17:54:28 -07:00
Mandy Chung
e2f7248afb 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
Remove @ignore

Reviewed-by: swamyv
2009-05-26 17:47:57 -07:00
John Coomes
a720198e39 Merge 2009-05-26 16:43:42 -07:00
Jean-Christophe Collet
74bfe722ce 6726695: HttpURLConnection shoul support 'Expect: 100-contimue' headers for PUT
Added code triggered when 'Expect: 100-continue' header has been added

Reviewed-by: chegar
2009-05-26 16:03:51 +02:00
Xue-Lei Andrew Fan
93614a3c7d 6720721: CRL check with circular depency support needed
Checking AKID of certificates and CRLs

Reviewed-by: mullan, weijun
2009-05-26 16:43:22 +08:00
Xue-Lei Andrew Fan
5f228867b6 6822460: support self-issued certificate
Checking self-issued certificate during certification path building

Reviewed-by: mullan, weijun
2009-05-26 16:19:18 +08:00
Weijun Wang
9823ad0eae 6844887: NPE in TextCallbackHandler
Reviewed-by: xuelei
2009-05-26 10:12:22 +08:00
Jean-Christophe Collet
97c0be0045 6349566: java.net.CookieManager doesn't set default domain
Enforce default domain in CookieManager

Reviewed-by: michaelm
2009-05-25 22:27:26 +02:00
Andrei Dmitriev
fb9bba27b9 6844750: Solaris build failed after 6799099
Reviewed-by: yan
2009-05-25 18:22:23 +04:00
Xiaobin Lu
2af45eb571 6806261: BigDecimal.longValueExact() method throws NullPointerException
Add various tests to test the change to 6622432

Reviewed-by: darcy
2009-05-24 16:35:32 -07:00
Xiaobin Lu
9f9d70b270 6622432: RFE: Performance improvements to java.math.BigDecimal
Reviewed-by: darcy
2009-05-24 16:29:57 -07:00
Andrew Brygin
8e2b3cf306 4893408: JPEGReader throws IllegalArgException when setting the destination to BYTE_GRAY
Reviewed-by: igor, prr
2009-05-23 08:35:37 +04:00
Xiaobin Lu
627e2d9b8d 6843580: JavaThread.getStackBase throws sun.jvm.hotspot.WrongTypeException invoked by jstack
Reviewed-by: phh, dice, never, swamyv
2009-05-22 16:40:38 -07:00
Andrei Dmitriev
072ba357bf 6799099: All automatic regression tests that create Robot fail on X11
Reviewed-by: art, ant
2009-05-22 16:09:45 +04:00
Xueming Shen
f625a6d545 6843578: Re-implement IBM doublebyte charsets
6639450: IBM949C encoder modifies state of IBM949 encoder
6569191: Cp943 io converter returns U+0000 and U+FFFD for unconvertable character
6577466: Character encoder IBM970 throws a BufferOverflowException
5065777: CharsetEncoder canEncode() methods often incorrectly return false

Re-write 11 IBM doublebyte charsets. Thanks Ulf.Zibis for the codereview!

Reviewed-by: martin
2009-05-21 23:32:46 -07:00
Andrew Haley
dfe2bac1c2 6839133: lcms 1.18 update breaks ICC_ProfileRGB Tests
Reviewed-by: avu, prr
2009-05-21 18:41:50 +01:00
Vladimir Kozlov
fdb3ca8708 6772683: Thread.isInterrupted() fails to return true on multiprocessor PC
Set the control edge for the field _interrupted load in inline_native_isInterrupted().

Reviewed-by: never
2009-05-21 10:05:36 -07:00
Hiroshi Yamauchi
f3d01961f8 6829659: Circle is rendered in C shape
Reviewed-by: campbell, flar
2009-05-21 09:56:03 -07:00
Andrew John Hughes
62ccd90ee5 6841728: Make building the Nimbus L 'n' F optional (100054)
Add DISABLE_NIMBUS variable to prevent Nimbus subdirs being built

Reviewed-by: mr, ohair
2009-05-21 16:29:58 +01:00
Anton Tarasov
b02a9e2e05 6833019: KeyboardFocusManager.getCurrentKeyboardFocusManager() throws unspecified HeadlessException
Reviewed-by: art
2009-05-21 15:04:23 +04:00
Maurizio Cimadamore
a74aa28243 6722234: javac diagnostics need better integration with the type-system
Added RichDiagnosticFormatter which provides better formatting capabilities for javac types/symbols

Reviewed-by: jjg
2009-05-21 10:56:36 +01:00
Artem Ananiev
55c50f50d0 6794764: Translucent windows are completely repainted on every paint event, on Windows
6719382: Printing of AWT components on windows is not working
6726866: Repainting artifacts when resizing or dragging JInternalFrames in non-opaque toplevel
6683775: Painting artifacts is seen when panel is made setOpaque(false) for a translucent window

Reviewed-by: anthony, tdv, alexp
2009-05-21 12:29:25 +04:00
Jonathan Gibbons
db4ff5c63b 6843648: tools/javac/versions/check.sh is broken
Reviewed-by: darcy
2009-05-20 19:10:06 -07:00
Jonathan Gibbons
9c931b2138 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 14:02:22 -07:00
Jonathan Gibbons
6178f3c373 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:55:50 -07:00
Jonathan Gibbons
1a23b46f1e 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:50:44 -07:00
Jonathan Gibbons
3cba2870f9 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:45:44 -07:00
Jonathan Gibbons
5c4f8ce7ae 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:41:23 -07:00
Jonathan Gibbons
6fbe9f979e 6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
2009-05-20 13:36:23 -07:00
Tomas Hurka
6ee565c7b8 6839599: JVM crash while profiling Tomcat and Liferay
ConstantPoolOopDesc::copy_cpool_bytes() - do the brute-force search search through 'tbl' when SymbolTable::lookup_only() returns NULL

Reviewed-by: kamg
2009-05-20 09:36:53 +02:00
Weijun Wang
0263c2809b 6832353: Krb5LoginModule: use the KRB5CCNAME when searching for Kerberos ticket cache
Reviewed-by: xuelei
2009-05-20 10:12:37 +08:00
Weijun Wang
04e56f7701 6682516: SPNEGO_HTTP_AUTH/WWW_KRB and SPNEGO_HTTP_AUTH/WWW_SPNEGO failed on all non-windows platforms
Reviewed-by: xuelei
2009-05-20 10:12:00 +08:00
Christian Thalinger
2005a31e5d 6832016: {DigestMD5Base,Des3DkCrypto}.setParityBit should use Integer.bitCount
Reviewed-by: weijun
2009-05-20 10:11:23 +08:00
Kelly O'Hair
253ff78590 6733313: corba build warnings: /bin/sh: gcc: not found
Reviewed-by: tbell
2009-05-19 18:09:31 -07:00
Kelly O'Hair
b988772464 6843041: Remove duplicate README files in repositories (make/README)
Reviewed-by: robilad
2009-05-19 17:40:10 -07:00
Kelly O'Hair
ef6f1e857d 6843041: Remove duplicate README files in repositories (make/README)
Reviewed-by: robilad
2009-05-19 17:39:30 -07:00
Kelly O'Hair
efa22ed94a 6843041: Remove duplicate README files in repositories (make/README)
Reviewed-by: robilad
2009-05-19 17:39:02 -07:00
Kelly O'Hair
d5ce0cdbb4 6843041: Remove duplicate README files in repositories (make/README)
Reviewed-by: robilad
2009-05-19 17:38:37 -07:00
Kelly O'Hair
637888e40d 6843041: Remove duplicate README files in repositories (make/README)
Reviewed-by: robilad
2009-05-19 17:38:09 -07:00
Xueming Shen
9a67d0776e Merge 2009-05-19 16:33:32 -07:00
Xueming Shen
c27639c4d2 6728376: Wrong error handling in Java_java_util_zip_Deflater_deflateBytes leads to size 0 if compress fails
6735255: ZipFile.close() does not close ZipFileInputStreams, contrary to the API document

Throws OOM when malloc failed. Closes all outstanding streams when closing

Reviewed-by: alanb
2009-05-19 16:21:48 -07:00
Xueming Shen
15baf98a0a 6843079: Putback for the new EUC_TW is not complete
Putback the files missed in last putback

Reviewed-by: alanb
2009-05-19 16:03:02 -07:00
Xueming Shen
a1958b22ef 6831794: charset EUC_TW is 12.6% of the total size of charsets.jar
6229811: Several codepoints in EUC_TW failed in roundtrip conversion

Re-write EUC_TW charset to address the size and roundtrip issue.

Reviewed-by: alanb
2009-05-19 15:25:29 -07:00
Jonathan Gibbons
131c3e10ee 6832154: refactor Paths to be just a utility class for JavacFileManager
Reviewed-by: darcy
2009-05-19 15:07:15 -07:00
Jonathan Gibbons
9de58af34f 6843013: missing files in fix for 6824493
Reviewed-by: darcy
2009-05-19 13:53:00 -07:00
Jonathan Gibbons
72b623769a 6824493: experimental support for additional info for instructions
Reviewed-by: mcimadamore
2009-05-19 11:50:54 -07:00
Jonathan Gibbons
f05e74203e 6841419: classfile: add constant pool iterator
Reviewed-by: mcimadamore
2009-05-19 11:43:50 -07:00
Kevin Looney
58eddef3f4 6841420: classfile: add new methods to ConstantClassInfo
Reviewed-by: mcimadamore
2009-05-19 11:33:13 -07:00
Kevin Looney
c1b42c6d84 6841422: classfile: add Type visitor
Reviewed-by: mcimadamore
2009-05-19 11:27:10 -07:00
Anthony Petrov
c403935e34 6839999: Cumulative fix for 6762511 and 6838003
Adds support for ARGB and ABGR X11 surfaces.

Reviewed-by: art, yan
2009-05-19 17:03:13 +04:00
Andrey Petrusenko
b7eda61fb6 6819065: G1: eliminate high serial card table clearing time
Reviewed-by: iveresov, tonyp
2009-05-19 04:05:31 -07:00
Anthony Petrov
013285996b 6833444: _BOOTDIR1/_BOOTDIR2 on MS Windows should be consistent with other platforms
Added optional _BOOTDIR3 that provides the J: path for the BOOTDIR on Windows

Reviewed-by: ohair, xdono
2009-05-19 14:43:49 +04:00
Anthony Petrov
7648a0d70b 6812298: Dynamic GraphicsConfig changes don't work on X11 platforms
The peer gets recreated if the visual of the new GC differs from the previous one

Reviewed-by: art, dcherepanov
2009-05-19 14:14:31 +04:00
Anthony Petrov
41def7835d 6811219: Deadlock java AWT in XWarningWindow
The locking scheme has been re-architected, the code slightly refactored.

Reviewed-by: art, dcherepanov
2009-05-19 12:15:18 +04:00
Igor Veresov
4f6c7e4a14 6841831: G1: assert(contains_reference(from),"We just added it!") fires
During parallel rset updating we have to make sure that the worker ids of the refinement threads do not intersect with the worker ids that can be claimed by the mutator threads.

Reviewed-by: tonyp
2009-05-18 11:52:46 -07:00
Kelly O'Hair
f4e0a8215f 6842023: Improve test reliability, Increase timeout factor on jtreg tests, etc
Reviewed-by: tbell
2009-05-18 10:36:38 -07:00
Yuri Nesterenko
db67339fc1 6834525: PIT: RowToleranceTransitivityTest test fail with crash on rhel4 x86 and rhel 5x86
Do not try to use released XKB resources

Reviewed-by: art
2009-05-18 12:39:58 +04:00
Kelly O'Hair
affd74638e Merge 2009-05-15 18:14:44 -07:00
Kelly O'Hair
d73143f27c Merge 2009-05-15 13:41:04 -07:00
Kelly O'Hair
8874d572a6 Merge 2009-05-15 13:30:55 -07:00
Kelly O'Hair
1d7cbccae4 Merge 2009-05-15 13:27:18 -07:00
Kelly O'Hair
b0fc926bb5 Merge 2009-05-15 13:25:38 -07:00
Kelly O'Hair
3b39400069 Merge 2009-05-15 13:24:02 -07:00
Kelly O'Hair
6854596ec6 Merge 2009-05-15 13:21:43 -07:00
Kelly O'Hair
fd807f04fe Merge 2009-05-15 13:18:10 -07:00
Kelly O'Hair
b324b462d0 6841873: Fix windows redist default location for msvc runtime dlls
Reviewed-by: tbell
2009-05-15 13:14:40 -07:00
Pavel Porvatov
210c9c8b6f 6713352: Deadlock in JFileChooser with synchronized custom FileSystemView
Reviewed-by: malenkov, peterz
2009-05-15 17:26:45 +04:00
Artem Ananiev
fb42efb4c9 6678385: Random java.lang.StackOverflowError from various JDKs
Reviewed-by: stayer
2009-05-15 15:40:35 +04:00
Peter Zhelezniakov
ec0e5a2b69 6827581: Contextkey does not work in Nimbus
Reviewed-by: rupashka
2009-05-15 12:06:22 +04:00
Vassili Igouchkine
ed2d2684f6 Added tag jdk7-b59 for changeset 43abe9a4635d 2009-05-14 10:58:12 -07:00
Vassili Igouchkine
6a308df390 Added tag jdk7-b59 for changeset b17924394fab 2009-05-14 10:58:07 -07:00
Vassili Igouchkine
a4e92d5f8e Added tag jdk7-b59 for changeset d2427dc1e789 2009-05-14 10:58:02 -07:00
Vassili Igouchkine
7290b272ce Added tag jdk7-b59 for changeset bb13aa7f099b 2009-05-14 10:58:01 -07:00
Vassili Igouchkine
9ca52ee60e Added tag jdk7-b59 for changeset ba9ddcebd212 2009-05-14 10:57:58 -07:00
Vassili Igouchkine
ef820dcedb Added tag jdk7-b59 for changeset a6cb451eede5 2009-05-14 10:57:56 -07:00
Vassili Igouchkine
e498e1e6fd Added tag jdk7-b59 for changeset 2ca12c11db49 2009-05-14 10:57:55 -07:00
Jennifer Godinez
47aba10d4e Merge 2009-05-14 09:53:35 -07:00
Peter Zhelezniakov
8514d49a21 6741426: ClassCastException from ComboBoxEditableState (Nimbus LaF) in JDK 1.6.0_10 RC
Reviewed-by: rupashka
2009-05-14 18:12:13 +04:00
Yuri Nesterenko
ac54f240e8 Merge 2009-05-14 00:17:25 -07:00
Erik Trimble
a31fce833b Merge 2009-05-13 08:46:58 -07:00
Erik Trimble
236059bc4e Merge 2009-05-13 08:40:46 -07:00
Christian Thalinger
8a262ce04b 6814842: Load shortening optimizations
6797305 handles load widening but no shortening which should be covered here.

Reviewed-by: never, kvn
2009-05-13 00:45:22 -07:00
Igor Veresov
702a13b785 6840196: NUMA allocator: crash in fastdebug during startup on Linux
With libnuma >1.2 explicity use 1.1 symbols

Reviewed-by: ysr
2009-05-12 15:55:56 -07:00
Xiomara Jayasena
78f516d04e Merge 2009-05-12 14:05:09 -07:00
John R Rose
708863fcf9 6839839: access checking logic is wrong at three points in MethodHandles
Point fixes to access checking logic

Reviewed-by: mr
2009-05-12 13:54:22 -07:00
Yuri Nesterenko
a529aee20c Merge 2009-05-12 00:40:13 -07:00
Yuka Kamiya
136168a10c 6834474: (tz) Support tzdata2009g
Reviewed-by: okutsu
2009-05-12 15:21:55 +09:00
John R Rose
9d698bded0 6839802: java.dyn needs to be on the CORE_PKGS list
Fix makefile to expose the new APIs in the core list; edit some javadocs for correctness

Reviewed-by: mr
2009-05-11 21:09:58 -07:00
Vladimir Kozlov
e101bdf5df 6836054: java/util/Arrays/CopyMethods.java fails on solaris-sparc with IllegalArgumentException
Do not mark an allocation as scalar replaceable if its actual type in unknown statically.

Reviewed-by: never
2009-05-11 18:30:13 -07:00
Vladimir Kozlov
6202395cb2 6832293: JIT compiler got wrong result in type checking with -server
Check for an object array of interface in CmpPNode::sub().

Reviewed-by: never
2009-05-11 17:59:54 -07:00
Igor Veresov
8c764e214c 6484957: G1: parallel concurrent refinement
6826318: G1: remove traversal-based refinement code

Removed traversal-based refinement code as it's no longer used. Made the concurrent refinement (queue-based) parallel.

Reviewed-by: tonyp
2009-05-11 16:30:56 -07:00
Vassili Igouchkine
9135d7552c Added tag jdk7-b58 for changeset 81bd48bfe2e6 2009-05-11 12:08:21 -07:00
Vassili Igouchkine
dc73a83365 Added tag jdk7-b58 for changeset d01743017349 2009-05-11 12:08:15 -07:00
Vassili Igouchkine
5a15b20036 Added tag jdk7-b58 for changeset 2c677d453222 2009-05-11 12:08:10 -07:00
Vassili Igouchkine
b020505579 Added tag jdk7-b58 for changeset 2d7afc04121f 2009-05-11 12:08:09 -07:00
Vassili Igouchkine
c724f6fbe7 Added tag jdk7-b58 for changeset 4b001cb378e2 2009-05-11 12:08:06 -07:00
Vassili Igouchkine
f9618e7435 Added tag jdk7-b58 for changeset f50e6e2c1b3b 2009-05-11 12:08:03 -07:00
Vassili Igouchkine
40b682817a Added tag jdk7-b58 for changeset 9f9b8a0e6229 2009-05-11 12:08:03 -07:00
Kelly O'Hair
09e524e11b Merge 2009-05-08 23:00:08 -07:00
Erik Trimble
7df98bfb6b Merge 2009-05-08 19:50:32 -07:00
Kelly O'Hair
c6c9f3af05 Merge 2009-05-08 16:42:11 -07:00
Kelly O'Hair
3872bb1118 Merge 2009-05-08 16:40:39 -07:00
Igor Veresov
dacaa6b65d 6838842: NUMA allocator: Segfault during startup on Linux
Restored os::free_memory() semantics

Reviewed-by: apetrusenko
2009-05-08 15:20:10 -07:00
Kelly O'Hair
4ac53f2566 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
Reviewed-by: never, kvn
2009-05-08 15:16:38 -07:00
Kelly O'Hair
a3ead33c8d 6839126: Type error found by newer windows compiler
Reviewed-by: never, kvn
2009-05-08 14:33:58 -07:00
Kelly O'Hair
e2f79f8662 Merge 2009-05-08 11:24:17 -07:00
Vladimir Kozlov
34ee921399 6788527: Server vm intermittently fails with assertion "live value must not be garbage" with fastdebug bits
Cache Jvmti and DTrace flags used by Compiler.

Reviewed-by: never
2009-05-08 10:44:20 -07:00
Vladimir Kozlov
b5cff6a1a0 Merge 2009-05-08 10:34:31 -07:00
Erik Trimble
67fd924e0e 6838819: Bump the HS16 build number to 03
Update the HS16 build number to 03

Reviewed-by: jcoomes
2009-05-07 21:35:30 -07:00
Erik Trimble
2827b06412 Merge 2009-05-07 21:33:37 -07:00
Kelly O'Hair
663faa821c 6835803: Type error in src/windows/native/sun/windows/awt_Window.cpp
Reviewed-by: prr
2009-05-07 18:19:41 -07:00
Vladimir Kozlov
955a453996 Merge 2009-05-07 17:09:48 -07:00
John Coomes
4b2a0a80b5 Merge 2009-05-07 13:54:48 -07:00
Xiomara Jayasena
7c1f3ef608 Merge 2009-05-07 12:26:38 -07:00
Xiomara Jayasena
390fc897b8 Merge 2009-05-07 12:26:22 -07:00
Xiomara Jayasena
66a887e5da Merge 2009-05-07 12:26:11 -07:00
Xiomara Jayasena
44a93651d0 Merge 2009-05-07 12:26:08 -07:00
Xiomara Jayasena
a9f5efb132 Merge 2009-05-07 10:32:58 -07:00
Xiomara Jayasena
e7a0b90b6d Merge 2009-05-07 10:31:32 -07:00
Xiomara Jayasena
12553738d8 Merge 2009-05-07 10:30:49 -07:00
Xiomara Jayasena
64abc7291f Merge 2009-05-07 10:30:34 -07:00
Xiomara Jayasena
e53c553749 Merge 2009-05-07 10:30:17 -07:00
Xiomara Jayasena
25e4c1f79b Merge 2009-05-07 10:30:10 -07:00
Chris Hegarty
8cc962d4a3 6837982: SCTP API docs not being generated
Update docs makefile to build javadoc for the com.sun.nio.sctp package.

Reviewed-by: jccollet, alanb, weijun
2009-05-07 17:02:47 +01:00
Keith McGuigan
e703c7c158 Merge 2009-05-07 11:44:53 -04:00
Christian Thalinger
a7d12b2fbf Merge 2009-05-07 04:16:53 -07:00
Christian Thalinger
1576a9be9e Merge 2009-05-07 00:28:13 -07:00
Tom Rodriguez
21e4bf1052 6838154: make/linux/makefiles/sa.make needs hash-style fix
Reviewed-by: kvn, jrose
2009-05-06 17:52:45 -07:00
Phil Race
c71395c821 6806822: Font.getFontName() is slow in Java5 and 6
Reviewed-by: igor, jgodinez
2009-05-06 14:14:54 -07:00
Christian Thalinger
96139033e6 6837011: SIGSEGV in PhaseIdealLoop in 32bit jvm
The CR's test crashes with SIGSEGV when running with "-server -Xcomp" using using 32bit jvm.

Reviewed-by: kvn, never, rasbold
2009-05-06 12:04:42 -07:00
Kelly O'Hair
d5f349c8ca 6837665: Deal with windows ant problem where commas in -D options do not work
Reviewed-by: xdono
2009-05-06 11:29:11 -07:00
Kelly O'Hair
994ff42465 6837665: Deal with windows ant problem where commas in -D options do not work
Reviewed-by: xdono
2009-05-06 11:27:39 -07:00
Andrew Haley
59fa6868bb 6837665: Deal with windows ant problem where commas in -D options do not work
Rewrite to avoid commas in -D options

Reviewed-by: ohair
2009-05-06 18:04:08 +01:00
Yuri Nesterenko
d1277d1d57 Merge 2009-05-06 09:37:34 -07:00
Anthony Petrov
a9fe649f3d 6838046: Rollback 6762511 due to build failure (6838003)
Reviewed-by: yan
2009-05-06 20:06:23 +04:00
Christian Thalinger
e53f13b49f 6837906: compiler tests of 6636138 fail with IllegalAccessException
The compiler tests of 6636138 fail with an IllegalAccessException.

Reviewed-by: kvn
2009-05-06 08:57:24 -07:00
Artem Ananiev
825bafa0ea 6837004: java.awt.GraphicsDevice.setFullScreenWindow throws NPE for windows with background color not set
Reviewed-by: yan, dcherepanov
2009-05-06 12:39:23 +04:00
Christian Thalinger
6a270f9f19 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
These methods can be instrinsified by using bit scan, bit test, and population count instructions.

Reviewed-by: kvn, never
2009-05-06 00:27:52 -07:00
Tim Bell
8f52d15f97 Merge 2009-05-05 23:12:47 -07:00
John R Rose
fb6164cec8 6829144: JSR 292 JVM features need a provisional Java API
JDK API and runtime (partial) for anonk, meth, indy

Reviewed-by: mr
2009-05-05 22:40:09 -07:00
John Cuthbertson
92afe130d1 6833576: G1: assert illegal index, growableArray.hpp:186
The code that calculates the heap region index for an object address incorrectly used signed arithmetic.

Reviewed-by: jcoomes, ysr
2009-05-05 22:15:35 -07:00
Changpeng Fang
716c78f080 6833879: Assigning positive zero is ignored when old value is negative zero
Don't perform CMOVE identity optimization for floating point types

Reviewed-by: kvn, never
2009-05-05 11:02:10 -07:00
Jennifer Godinez
553fed80a4 Merge 2009-05-05 09:09:24 -07:00
Anthony Petrov
2c819571f1 6762511: Translucency is not working on Linux using Metacity
Introduced additional blits and new X11 surface types (ARGB, ABGR)

Reviewed-by: art, avu
2009-05-05 14:45:56 +04:00
Tim Bell
32b0fa3461 Merge 2009-05-04 22:16:46 -07:00
Tim Bell
7a94d5e47f Merge 2009-05-04 22:16:02 -07:00
Tim Bell
076ac3ae62 Merge 2009-05-04 22:14:18 -07:00
Tim Bell
5c0a4e4514 Merge 2009-05-04 22:13:54 -07:00
Tim Bell
9ca99a7f17 Merge 2009-05-04 22:12:47 -07:00
Tom Rodriguez
df05badc49 6837224: libsaproc.so on linux needs version of 6799141
Reviewed-by: kvn
2009-05-04 22:06:47 -07:00
Tim Bell
1f70f71621 6658158: Mutable statics in SAAJ (findbugs)
6658163: txw2.DatatypeWriter.BUILDIN is a mutable static (findbugs)

Reviewed-by: darcy
2009-05-04 21:10:41 -07:00
Tim Bell
0bbebf3a62 6588002: XSLTProcessorApplet still allows reading from forbidden URLs
Reviewed-by: darcy
2009-05-04 21:10:30 -07:00
John R Rose
5ba10ad9ad 6829189: Java programming with JSR 292 needs language support
Language changes documented in http://wikis.sun.com/display/mlvm/ProjectCoinProposal

Reviewed-by: jjg, darcy, mcimadamore
2009-05-04 21:04:04 -07:00
Tim Bell
2b96ebbe49 6529590: flaw in com.sun.corba.se.impl.presentation.rmi.IDLNameTranslatorImpl
Reviewed-by: darcy
2009-05-04 18:40:45 -07:00
Jacob T Royal
221af5e5e1 6837214: Update JDK7 man pages
Reviewed-by: darcy, bpatel, tbell
2009-05-04 18:28:26 -07:00
Poonam Bajaj
1e41f46948 6829234: Refix 6822407 and 6812971
Fixes two SA issues 6822407 and 6812971

Reviewed-by: swamyv, acorn, kvn, coleenp
2009-05-04 17:58:10 -07:00
Alan Bateman
e4f45d0a0b 6834246: (ch) AsynchronousSocketChannel#write completes with wrong number of bytes written under load (win)
Reviewed-by: sherman
2009-05-04 19:25:14 +01:00
Andrey Petrusenko
907a41e100 Merge 2009-05-04 02:57:39 -07:00
Xueming Shen
2c08c535e0 6836489: Incorrect @link usage in java.util.zip API doc
Correct the wrong @link tag

Reviewed-by: alanb
2009-05-01 12:06:14 -07:00
Vladimir Kozlov
3c70cff23a 6835796: Fedora 9 linux_i586-fastdebug-c2-runThese_Xcomp times out
Switch off GCC 4.3.0 optimized compilation for mulnode.o.

Reviewed-by: johnc
2009-04-30 15:57:29 -07:00
John Cuthbertson
55750920b4 6490395: G1: Tidy up command line flags
Change G1 flag names to be more consistent and disable some in 'product' mode.

Reviewed-by: tonyp, iveresov
2009-04-30 15:07:53 -07:00
Xiomara Jayasena
bb0d22f385 Added tag jdk7-b57 for changeset dd13095c13cb 2009-04-30 15:04:50 -07:00
Xiomara Jayasena
56074531b7 Added tag jdk7-b57 for changeset 93833fce07e3 2009-04-30 15:04:39 -07:00
Xiomara Jayasena
798d1746b9 Added tag jdk7-b57 for changeset 583fd6b10e17 2009-04-30 15:04:33 -07:00
Xiomara Jayasena
a5b6b6ecdc Added tag jdk7-b57 for changeset f3be0d512b5d 2009-04-30 15:04:31 -07:00
Xiomara Jayasena
b2a4da69f0 Added tag jdk7-b57 for changeset 86c4409e49f6 2009-04-30 15:04:27 -07:00
Xiomara Jayasena
e4251b62c9 Added tag jdk7-b57 for changeset b4665c6a75e5 2009-04-30 15:04:23 -07:00
Xiomara Jayasena
b87234f8cd Added tag jdk7-b57 for changeset e5d0323a2da4 2009-04-30 15:04:22 -07:00
Vladimir Kozlov
e329e92190 Merge 2009-04-30 12:09:39 -07:00
John Coomes
cdc2e5a6af Merge 2009-04-30 09:53:20 -07:00
Kelly O'Hair
232190dc7b 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: kvn
2009-04-29 17:30:20 -07:00
John Coomes
e2a126f80d 6834202: Bump the HS16 build number to 02
Reviewed-by: jmasa
2009-04-29 13:27:51 -07:00
John Coomes
f40f23b2f0 Merge 2009-04-29 13:22:09 -07:00
Vladimir Kozlov
2c4602adb3 6834177: Running jsynprog on Solaris Nevada can cause JVM crash
Use CodeCache buffer blob instead of static buffer in AdapterHandlerLibrary.

Reviewed-by: never
2009-04-29 12:58:09 -07:00
Jennifer Godinez
934dac40ef Merge 2009-04-29 12:27:05 -07:00
Yuri Nesterenko
035ca4f0c8 Merge 2009-04-29 00:27:46 -07:00
Yuri Nesterenko
0e307b3211 Merge 2009-04-29 00:24:58 -07:00
Kelly O'Hair
2756e99316 6835241: Annotate some tests with @ignore that have shown to be unpredictable
Reviewed-by: tbell
2009-04-28 14:43:44 -07:00
Yuri Nesterenko
33484a2710 Merge 2009-04-28 13:41:11 -07:00
Yuri Nesterenko
6887885b5b Merge 2009-04-28 13:31:15 -07:00
Yuri Nesterenko
06a805b13f Merge 2009-04-28 13:30:42 -07:00
Jennifer Godinez
b7456052cd Merge 2009-04-28 13:25:25 -07:00
Peter Zhelezniakov
68a4665158 6835113: Nimbus Makefile issue
Reviewed-by: prr
2009-04-28 21:41:04 +04:00
Kelly O'Hair
101e0eb871 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:26:18 -07:00
Kelly O'Hair
70b0bc68ce 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:19:22 -07:00
Kelly O'Hair
de24cb0a4d 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:18:40 -07:00
Kelly O'Hair
9be05f339d 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:18:19 -07:00
Kelly O'Hair
a06bb2ee0a 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:17:22 -07:00
Kelly O'Hair
86adbce1ec 6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell
2009-04-27 20:15:44 -07:00
Igor Veresov
db68fa7326 6819098: G1: reduce RSet scanning times
Added a feedback-driven exponential skipping for parallel RSet scanning.

Reviewed-by: tonyp, apetrusenko
2009-04-27 16:52:18 -07:00
Vladimir Kozlov
9e0929adba Merge 2009-04-27 12:55:28 -07:00
Vladimir Kozlov
a1533dafce 6834142: method->print_codes(): Error: ShouldNotReachHere()
Restore the call to Bytecodes::java_code() in BytecodePrinter::print_attributes().

Reviewed-by: jrose
2009-04-27 12:45:14 -07:00
Andrey Petrusenko
5213d97280 Merge 2009-04-27 12:33:57 -07:00
Mandy Chung
f7b87611c6 6829503: addShutdownHook fails if called after shutdown has commenced
Allow shutdown hook to be added during shutdown and handle properly if it fails to add

Reviewed-by: alanb, dholmes, martin
2009-04-27 12:08:41 -07:00
Peter Zhelezniakov
8b8c52ada8 6591875: Nimbus Swing Look and Feel
Reviewed-by: jasper, ohair
2009-04-25 21:34:45 +04:00
Peter Zhelezniakov
c738ebdc67 6591875: Nimbus Swing Look and Feel
Reviewed-by: jasper, ohair
2009-04-25 21:17:50 +04:00
Tom Rodriguez
8e16f6b5c4 Merge 2009-04-24 18:45:14 -07:00
Tom Rodriguez
60e1a19b44 6833573: C2 sparc: assert(c < 64 && (c & 1) == 0,"bad double float register")
Reviewed-by: twisti
2009-04-24 15:08:30 -07:00
Changpeng Fang
003ca0f848 6833951: Extra ":" Causes Testcase in CR 6589834 "Parse Exception: Invalid tag: summary:"
Remove the colon

Reviewed-by: never
2009-04-24 09:14:39 -07:00
Tim Bell
ce6f939956 Merge 2009-04-23 21:32:44 -07:00
Tim Bell
48643afa72 Merge 2009-04-23 21:31:39 -07:00
Tim Bell
494c3eb4f6 Merge 2009-04-23 21:30:46 -07:00
Tim Bell
a17987f7b4 Merge 2009-04-23 21:29:53 -07:00
Xiomara Jayasena
97e6e7e277 Added tag jdk7-b56 for changeset 845ccf65d4a7 2009-04-23 15:55:10 -07:00
Xiomara Jayasena
2906215abb Added tag jdk7-b56 for changeset 825f6628794a 2009-04-23 15:55:01 -07:00
Xiomara Jayasena
103983356d Added tag jdk7-b56 for changeset 28972659503d 2009-04-23 15:54:55 -07:00
Xiomara Jayasena
bff91cc1a4 Added tag jdk7-b56 for changeset 252c72d1f659 2009-04-23 15:54:53 -07:00
Xiomara Jayasena
57d7af3e23 Added tag jdk7-b56 for changeset 5bef15d9d54a 2009-04-23 15:54:48 -07:00
Xiomara Jayasena
6719f78363 Added tag jdk7-b56 for changeset d717c0dc996d 2009-04-23 15:54:45 -07:00
Xiomara Jayasena
cefc566e6e Added tag jdk7-b56 for changeset eafb72a35bee 2009-04-23 15:54:44 -07:00
Changpeng Fang
04fdef79fa 6589834: deoptimization problem with -XX:+DeoptimizeALot
Relocate the stack pointer adjustment to where uncommon_trap is actually inserted for new_array.

Reviewed-by: kvn, jrose
2009-04-23 14:04:24 -07:00
Antonios Printezis
c2578847e2 6829013: G1: set the default value of G1VerifyConcMarkPrintRechable to false
Turn off G1VerifyConcMarkPrintReachable by default to minimize the amount of verbose output we generate by default.

Reviewed-by: jmasa
2009-04-23 16:58:16 -04:00
Alan Bateman
b5ace034c3 6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
Reviewed-by: darcy, mcimadamore
2009-04-23 19:44:43 +01:00
Erik Trimble
e84d20271d 6833316: jprt.properties not setting values for 6u14 release flag
Fix jprt.properties to do 6u14 tests right

Reviewed-by: ohair
2009-04-22 19:30:54 -07:00
Vladimir Kozlov
273a47426e 6709742: find_base_for_derived's use of Ideal NULL is unsafe causing crashes during register allocation
Create a mach node corresponding to ideal node ConP #NULL specifically for derived pointers.

Reviewed-by: never
2009-04-22 17:03:18 -07:00
Xiaobin Lu
ee78b15d5a Merge 2009-04-22 11:47:26 -07:00
Christian Thalinger
b9f27b5eea Merge 2009-04-22 06:09:24 -07:00
John R Rose
34c1d72421 6655646: dynamic languages need dynamically linked call sites
Invokedynamic instruction (JSR 292 RI)

Reviewed-by: twisti, never
2009-04-21 23:21:04 -07:00
Tim Bell
cdcdf54d1e Merge 2009-04-21 21:26:21 -07:00
Erik Trimble
9e2e7197f6 Merge 2009-04-21 15:08:49 -07:00
Coleen Phillimore
2e43a0450f 6830069: UseLargePages is broken on Win64
Making VirtualAlloc/VirtualProtect two calls for PAGE_EXECUTE_READWRITE doesn't work for MEM_LARGE_PAGES.

Reviewed-by: xlu, kvn, jcoomes
2009-04-21 16:12:51 -04:00
Christian Thalinger
57d945fd3d 6822110: Add AddressLiteral class on SPARC
The Address class on SPARC currently handles both, addresses and address literals, what makes the Address class more complicated than it has to be.

Reviewed-by: never, kvn
2009-04-21 11:16:30 -07:00
Roman Kennke
a14c950998 6829678: StrokeShapeTest: createStrokedShape() behaves differently
Reviewed-by: igor, flar
2009-04-21 09:43:49 -07:00
Tim Bell
af422c1d2f Merge 2009-04-21 09:03:36 -07:00
Tim Bell
9331eed2d6 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
6672868: Package javax.xml.ws.wsaddressing not included in make/docs/CORE_PKGS.gmk

Reviewed-by: darcy
2009-04-21 08:46:25 -07:00
Anthony Petrov
176a41f92e 6802853: API: shaped & translucent windows
A public API for the feature forward-ported from 6u10.

Reviewed-by: yan
2009-04-21 11:35:52 +04:00
Tim Bell
e01ed73046 Merge 2009-04-20 22:51:20 -07:00
Tim Bell
1633b4781d 6738894: Merge jaxp fixes from 6 update train into OpenJDK 6 and 7
6573268: Four JCK-devtools-6a tests report OOM: Java Heap space since JDK7 b14

Reviewed-by: darcy
2009-04-20 22:50:16 -07:00
Martin Buchholz
c0b32f4e3c 6278014: java.util.logging.LogRecord.getThreadID() should provide real thread id
Make j.u.l. thread id a copy of Thread's id, for small values of thread id.

Reviewed-by: alanb
2009-04-20 21:57:01 -07:00
Martin Buchholz
4910f50ea2 6716076: test UTIL_REGRESSION/test/java/util/logging/LoggingDeadlock2.java failed with exit code 1
Reviewed-by: swamyv, mchung
2009-04-20 21:53:38 -07:00
Jeremy Manson
8d5b9cfad8 6830220: Logging issues due to regression from bug fix 6797480
Reviewed-by: swamyv
2009-04-20 21:23:47 -07:00
Tim Bell
2fa719cdb7 Merge 2009-04-20 15:25:02 -07:00
Tim Bell
71315ac3a3 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
6672868: Package javax.xml.ws.wsaddressing not included in make/docs/CORE_PKGS.gmk

Reviewed-by: darcy
2009-04-20 15:14:39 -07:00
Tom Rodriguez
fd05c28901 Merge 2009-04-20 14:48:03 -07:00
Jennifer Godinez
f662d4d726 6821495: test/java/awt/print/PrinterJob/PrtException.java fails
Reviewed-by: igor, prr
2009-04-20 12:31:36 -07:00
Andrew Haley
2af71865f9 6832141: Bug 100045 - Fix for 100028 breaks debug info for class files
Correct fallout from 100028 patch

Reviewed-by: ohair
2009-04-20 19:01:35 +01:00
Andrew Haley
a1ed403a44 6832141: Bug 100045 - Fix for 100028 breaks debug info for class files
Correct fallout from 100028 patch

Reviewed-by: ohair
2009-04-20 19:01:16 +01:00
Andrew Haley
25d08c3b85 6832141: Bug 100045 - Fix for 100028 breaks debug info for class files
Correct fallout from 100028 patch

Reviewed-by: ohair
2009-04-20 19:00:51 +01:00
Dmitry Cherepanov
fbea8d87f4 6825362: Avoid calling peer.setZOrder on Window instances
Reviewed-by: anthony
2009-04-20 19:18:41 +04:00
Dmitry Cherepanov
76fedc71ad 6770457: Using ToolTips causes inactive app window to exhibit active window behavior
Reviewed-by: art, ant
2009-04-20 17:05:34 +04:00
Dmitry Cherepanov
75d9b0f986 6633354: AppletPanel loads Swing classes
Reviewed-by: art, anthony
2009-04-20 14:41:24 -04:00
Alan Bateman
d4a0d0c66d 6831461: (sample) Copy -r fails with IllegalArgumentexception: 'maxDepth' is negative
Reviewed-by: chegar
2009-04-20 13:27:23 +01:00
Alan Bateman
cab29c9b7a 6830721: (fc) test/java/nio/channels/AsynchronousFileChannel/Basic.java intermittent failure
Reviewed-by: sherman
2009-04-20 09:30:50 +01:00
Tim Bell
e13875dd4e 6372405: Server thread hangs when fragments don't complete because of connection abort
5104239: Java: thread deadlock
6191561: JCK15: api/org_omg/PortableInterceptor/ClientRequestInfo/index.html#RIMethods sometime hang
6486322: org.omg.CORBA.ORB.init() thread safety issue
6420980: Security issue with the com.sun.corba.se.impl.orbutil.ORBUtility class
6465377: NullPointerException for RMI ORB in 1.5.0_08
6553303: Corba application fails w/ org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203 completed: No
6438259: Wrong repository ID generated by IDLJ

Reviewed-by: darcy
2009-04-20 00:12:19 -07:00
Tim Bell
f70e9b8dd9 Merge 2009-04-18 14:10:27 -07:00
Tim Bell
38d8fb8017 Merge 2009-04-18 14:09:39 -07:00
Tom Rodriguez
425fb8197e 6831604: missing null check in guarantee
Reviewed-by: kvn
2009-04-17 12:22:18 -07:00
Vladimir Kozlov
6615262737 6831323: Use v8plus as minimum required hardware for current Hotspot sources
Use -xarch=v8plus as default for 32-bits VM on sparc.

Reviewed-by: never, twisti
2009-04-17 09:38:32 -07:00
Abhijit Saha
d3af1f284c Merge 2009-04-17 09:21:27 -07:00
Andrew Haley
2b6dba6c95 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:56:31 +01:00
Andrew Haley
0d75be20c1 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:56:20 +01:00
Andrew Haley
27b2fa447a 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:56:06 +01:00
Andrew Haley
90d648356b 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:55:53 +01:00
Andrew Haley
ef21b09a71 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:50:12 +01:00
Andrew Haley
3dadf6bce7 6829575: 100028: Debug information is incomplete or missing
Enable debugging in many places

Reviewed-by: ohair
2009-04-17 15:37:20 +01:00
Anthony Petrov
4b321c2bfc 6829858: JInternalFrame is not redrawing heavyweight children properly
The Container.recursiveApplyCurrentShape() is now recursively called for all hw containers, even those having non-null layout

Reviewed-by: art, dcherepanov
2009-04-17 16:42:14 +04:00
Anthony Petrov
c0f20f9d47 6821948: Consider removing the constraints for bounds of untrusted top-level windows
The constrainBounds() methods are removed.

Reviewed-by: art, dcherepanov
2009-04-17 16:30:15 +04:00
Karl Helgason
b426a72177 6823446: Gervill SoftLowFrequencyOscillator fails when freq is set to 0 cent or 8.1758 Hz
Reviewed-by: amenkov
2009-04-17 16:28:02 +04:00
Karl Helgason
2f6783dce5 6823445: Gervill SoftChannel/ResetAllControllers jtreg test fails after portamento fix from last merge
Reviewed-by: amenkov
2009-04-17 16:20:50 +04:00
Anthony Petrov
e06ad08fd4 6826104: Getting a NullPointer exception when clicked on Application & Toolkit Modal dialog
The addition of window peers to the windows collection has been restored in XWindowPeer.

Reviewed-by: art, dcherepanov
2009-04-17 16:16:14 +04:00
Karl Helgason
b136abc344 6821030: Merge OpenJDK Gervill with upstream sources, Q1CY2009
Reviewed-by: darcy, amenkov
2009-04-17 16:13:43 +04:00
Alex Menkov
9a0763bf6b 6806019: 38 JCK api/javax_sound/midi/ tests fails starting from jdk7 b46
Reviewed-by: kalli
2009-04-17 15:15:20 +04:00
Alex Menkov
d15fceaa77 4895403: SPEC: documentation of javax.sound.sampled.spi.MixerProvider should be detailed
Reviewed-by: malenkov
2009-04-17 15:11:43 +04:00
Alex Menkov
8d4e786794 4672194: FloatControl should provide consistent policy for the floats
Reviewed-by: alexp
2009-04-17 15:10:05 +04:00
Alex Menkov
a758339886 5050147: RFE: Add More Useful Constructors to MidiMessage Subclasses
Reviewed-by: alexp
2009-04-17 15:02:46 +04:00
Artem Ananiev
fd76ca6d80 6829923: Test javax/swing/system/6799345/TestShutdown.java fails on X11 platforms
XAWT toolkit thread is correctly interrupted when AppContext is disposed

Reviewed-by: anthony, peterz
2009-04-17 12:46:24 +04:00
Alan Bateman
dd28a663e4 Merge 2009-04-17 09:38:24 +01:00
Yuri Nesterenko
4f420274a7 Merge 2009-04-16 23:14:12 -07:00
Abhijit Saha
885f8851c5 Merge 2009-04-16 22:47:29 -07:00
Tom Rodriguez
617835c850 6741757: minor ctw improvements
Reviewed-by: kvn
2009-04-16 21:25:29 -07:00
Abhijit Saha
32bc86d541 Merge 2009-04-16 21:08:04 -07:00
Xueming Shen
c435a0905d 4244499: ZipEntry() does not convert filenames from Unicode to platform
4532049: IllegalArgumentException in ZipInputStream while reading unicode file
5030283: Incorrect implementation of UTF-8 in zip package
4700978: ZipFile can't treat Japanese name in a zipfile properly
4980042: Cannot use Surrogates in zip file metadata like filenames
4820807: java.util.zip.ZipInputStream cannot extract files with Chinese chars in name

Add new constructors for zip classes to support non-UTF-8 encoded names/comments in ZIP file

Reviewed-by: alanb, martin
2009-04-16 21:00:42 -07:00
Xiomara Jayasena
c9560133fd Merge 2009-04-16 19:10:32 -07:00
Tom Rodriguez
88ac170f53 6828024: verification of fixed interval usage is too weak
Reviewed-by: kvn
2009-04-16 15:50:32 -07:00
Xiomara Jayasena
c45cade441 Added tag jdk7-b55 for changeset ff2e2ca5634e 2009-04-16 11:23:02 -07:00
Xiomara Jayasena
6451f9b113 Added tag jdk7-b55 for changeset 357e7d58ea2f 2009-04-16 11:22:52 -07:00
Xiomara Jayasena
d53e0f773f Added tag jdk7-b55 for changeset 720827f5391b 2009-04-16 11:22:46 -07:00
Xiomara Jayasena
8ad7837221 Added tag jdk7-b55 for changeset 0734512b1faf 2009-04-16 11:22:45 -07:00
Xiomara Jayasena
faaab0292b Added tag jdk7-b55 for changeset c7888e8ac47a 2009-04-16 11:22:40 -07:00
Xiomara Jayasena
09334a554e Added tag jdk7-b55 for changeset 45f0ffd05a04 2009-04-16 11:22:37 -07:00
Xiomara Jayasena
593402d1ad Added tag jdk7-b55 for changeset 0b27fe141322 2009-04-16 11:22:36 -07:00
Tom Rodriguez
970eb79fc4 6449385: JCK test dup2_x200106m1 fails with Segmentation Fault on x86
Reviewed-by: kvn
2009-04-16 10:40:42 -07:00
Chris Hegarty
26ae13fe80 4927640: Implementation of the sctp protocol
An implementation-specific API for the Stream Control Transmission Protocol

Reviewed-by: alanb, michaelm, jccollet
2009-04-16 17:42:00 +01:00
Erik Trimble
cdcc52dcab 6830815: jprt.config not setting proper compiler version for use in 6u14
Add the 6u14 option to the jprt.config file in workspace

Reviewed-by: ohair
2009-04-15 21:31:46 -07:00
Weijun Wang
3119cce77d 6830658: Changeset ec64fd74aa69 breaks the fastdebug build in NativeCreds.c
Reviewed-by: tbell
2009-04-16 11:16:40 +08:00
Tom Rodriguez
1097f94525 6684007: PrintAssembly plugin not available for linux or windows
Reviewed-by: rasbold, jrose, twisti
2009-04-15 09:53:54 -07:00
Clemens Eisserer
dce704d578 6827989: Use Unsafe.copyMemory for array->Unsafe copy operations in RenderBuffer
Reviewed-by: campbell, flar
2009-04-15 08:47:21 -07:00
Alan Bateman
26dc2b8949 6543863: (fc) FileLock.release can deadlock with FileChannel.close
6429910: (fc) FileChannel.lock() IOException: Bad file number, not AsynchronousCloseException
6814948: (fc) test/java/nio/channels/AsynchronousFileChannel/Lock.java failed intermittently
6822643: (fc) AsynchronousFileChannel.close does not invalidate FileLocks

Reviewed-by: sherman
2009-04-15 16:16:35 +01:00
Alan Bateman
9e2590b7bf 6795561: (bf) CharBuffer.subSequence() uses wrong capacity value for new buffer
Reviewed-by: sherman, iris
2009-04-15 14:53:34 +01:00
Mandy Chung
15dd62fcba 6818072: Load Ductus using Class.forName if exist instead of using the service loader
First attempt Class.forName to load Ductus class before using service loader

Reviewed-by: flar, prr
2009-04-14 17:43:45 -07:00
Tom Rodriguez
62717f091a Merge 2009-04-14 12:25:54 -07:00
Lana Steuck
1c53c596df Merge 2009-04-14 04:21:02 -07:00
Anthony Petrov
9c7b1e8b5b 6825342: Security warning may change Z-order of top-level
Added the SWP_NOOWNERZORDER flag when calling ::SetWindowPos()

Reviewed-by: art, dcherepanov
2009-04-14 14:17:31 +04:00
Lana Steuck
b290c5dc99 Merge 2009-04-14 00:05:07 -07:00
Lana Steuck
e7903bf295 Merge 2009-04-13 22:35:14 -07:00
Lana Steuck
9769fa9e3b Merge 2009-04-13 22:34:29 -07:00
Valerie Peng
bca01e0826 6829098: Regression test java/security/Security/ClassLoaderDeadlock/Deadlock2.java error - missing ";"
Added back the missing ";"

Reviewed-by: weijun
2009-04-13 18:20:51 -07:00
Lana Steuck
b482e41692 Merge 2009-04-13 15:33:50 -07:00
Denis Fokin
8ac601577f 6590857: Drag & Drop arbitrary file copy
Reviewed-by: uta
2009-04-13 21:42:44 +04:00
Dmitry Cherepanov
29e370d911 6829326: Getting java.lang.NullPointerException: null pData while opening a File,Print,Page Dialog in Win
Reviewed-by: art, yan
2009-04-13 15:22:12 +04:00
Martin Buchholz
e8f11acb07 6827153: Miscellaneous typos in javadoc
Reviewed-by: alanb
2009-04-12 20:21:43 -07:00
Tim Bell
bf7fc212cc Merge 2009-04-10 15:31:12 -07:00
Tim Bell
b5b691accb Merge 2009-04-10 15:30:37 -07:00
Changpeng Fang
08466ce0ca 6829021: tests for 6636138 use UseSuperword instead of UseSuperWord
Remove the wrong flag -XX:+UseSuperword to fix the Nightly failure

Reviewed-by: kvn, never
2009-04-10 15:01:14 -07:00
Abhijit Saha
f8fbfdf5bc Merge 2009-04-10 13:05:12 -07:00
Lana Steuck
92f020bb7c Merge 2009-04-09 20:34:56 -07:00
Weijun Wang
23d8c5ddc1 6587676: Krb5LoginModule failure if useTicketCache=true on Vista
Reviewed-by: valeriep
2009-04-10 11:21:31 +08:00
Yuka Kamiya
7a543510bd 6404304: RFE: Unicode 5.1 support
Reviewed-by: okutsu, naoto
2009-04-10 11:51:36 +09:00
Xiaobin Lu
87b1e69996 Merge 2009-04-09 13:59:45 -07:00
Lana Steuck
1965d90445 Merge 2009-04-09 13:13:47 -07:00
Lana Steuck
415053276d Merge 2009-04-09 13:12:58 -07:00
Xiomara Jayasena
029e1d422b Added tag jdk7-b54 for changeset 892e6a06285e 2009-04-09 10:37:39 -07:00
Xiomara Jayasena
ab095606fe Added tag jdk7-b54 for changeset 0e9e14e7f54a 2009-04-09 10:37:30 -07:00
Xiomara Jayasena
9f18b194b0 Added tag jdk7-b54 for changeset 629fcf301ed8 2009-04-09 10:37:24 -07:00
Xiomara Jayasena
1f7564a7d6 Added tag jdk7-b54 for changeset 31bec7a68275 2009-04-09 10:37:22 -07:00
Xiomara Jayasena
baa83308c5 Added tag jdk7-b54 for changeset c77d20908054 2009-04-09 10:37:18 -07:00
Xiomara Jayasena
929ed1911c Added tag jdk7-b54 for changeset 8f61b973b389 2009-04-09 10:37:15 -07:00
Xiomara Jayasena
1fb3cbf4e9 Added tag jdk7-b54 for changeset 9590951ad57b 2009-04-09 10:37:13 -07:00
Weijun Wang
2827ff39e5 6714845: Quotes in Kerberos configuration file are included in the values
Reviewed-by: xuelei
2009-04-09 15:32:55 +08:00
Lana Steuck
e19d0ec5d0 Merge 2009-04-08 15:40:56 -07:00
Erik Trimble
1f75d1c6dd 6828076: Fork HS15 to HS16 - renumber Major and build numbers of JVM
Update the Hotspot version number to HS16 B01 for HS16 fork

Reviewed-by: jcoomes
2009-04-08 14:55:38 -07:00
John R Rose
ce0c084720 6655638: dynamic languages need method handles
Initial implementation, with known omissions (x86/64, sparc, compiler optim., c-oops, C++ interp.)

Reviewed-by: kvn, twisti, never
2009-04-08 10:56:49 -07:00
Xueming Shen
0470f91e7f 6827921: ByteToCharBig5.java should use nio data tables instead of its own copy
To use the data tables from sun.nio.cs.ext.Big5

Reviewed-by: alanb
2009-04-08 10:40:56 -07:00
Xueming Shen
7e58d1b497 6827871: Cleanup leftover code in CharToByteJohab.java
Removed the leftover data tables

Reviewed-by: alanb
2009-04-08 09:21:06 -07:00
John R Rose
318da3f68c 6827505: sizing logic for vtable and itable stubs needs self-check
Asserts and comments to help maintain the correct sizing of certain stubs

Reviewed-by: kvn
2009-04-08 00:12:59 -07:00
Weijun Wang
67bb035b94 4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
Reviewed-by: xuelei
2009-04-08 13:54:34 +08:00
Vladimir Kozlov
ca3a3504be 6711117: Assertion in 64bit server vm (flat != TypePtr::BOTTOM,"cannot alias-analyze an untyped ptr")
Delay a memory node transformation if its control or address on IGVN worklist.

Reviewed-by: never
2009-04-07 19:04:24 -07:00
Xiomara Jayasena
8e36dcb9a5 Merge 2009-04-07 14:02:54 -07:00
Xiomara Jayasena
a0258fbcc8 Merge 2009-04-07 11:43:20 -07:00
Vladimir Kozlov
014e5cdefb 6826960: C2 Sparc: assert(bb->_nodes(_bb_end)->is_Proj(),"skipping projections after expected call")
Add the check when a Halt node is placed in a separate block.

Reviewed-by: twisti
2009-04-07 10:05:04 -07:00
Lana Steuck
39202ea815 Merge 2009-04-07 10:04:29 -07:00
Peter Zhelezniakov
406119889a 6740974: api/javax_swing/PopupFactory/index.html#Ctor[PopupFactory2002] fails with NPE
Reviewed-by: malenkov
2009-04-07 12:40:58 +04:00
Dmitry Cherepanov
193bce6e2e 6663040: Using com.sun.awt.AWTUtilities do not give warning while compilation
Reviewed-by: yan, anthony
2009-04-07 10:27:18 +04:00
Valerie Peng
a2a7ded4d4 6440846: (cl) Deadlock between AppClassLoader and ExtClassLoader
Fixed a deadlock between the two class loaders

Reviewed-by: alanb
2009-04-06 18:52:03 -07:00
Valerie Peng
c10f593c2c 4735126: (cl) ClassLoader.loadClass locks all instances in chain when delegating
Added support for parallel-capable class loaders

Reviewed-by: alanb
2009-04-06 18:46:20 -07:00
Xiaobin Lu
62fa852746 6699669: Hotspot server leaves synchronized block with monitor in bad state
Remove usage of _highest_lock field in Thread so that is_lock_owned won't depend on the correct update of that field.

Reviewed-by: never, dice, acorn
2009-04-06 15:47:39 -07:00
Tom Rodriguez
72afcb0285 6539464: Math.log() produces inconsistent results between successive runs
Reviewed-by: kvn
2009-04-06 11:53:17 -07:00
Alan Bateman
91db470ae6 Merge 2009-04-06 11:29:03 +01:00
Peter Zhelezniakov
2c63f90f19 6635110: GTK problem when testing Sun Studio IDE on snv_77 with jdk1.6 using Gnome window manager
GTKIconFactory icons should protect against null context passed in

Reviewed-by: rupashka
2009-04-06 13:06:24 +04:00
Alan Bateman
560560dc55 4890703: Support SDP (sol)
Reviewed-by: michaelm
2009-04-06 08:59:33 +01:00
Erik Trimble
3d480f960f Merge 2009-04-03 20:12:54 -07:00
Erik Trimble
5e68f20160 Merge 2009-04-03 19:54:45 -07:00
Tom Rodriguez
5f10e8e82e 6826261: class file dumping from SA is broken
Reviewed-by: kvn, jcoomes
2009-04-03 18:51:31 -07:00
Y. Srinivas Ramakrishna
e1b2c1c442 Merge 2009-04-03 15:59:19 -07:00
Alan Bateman
9676f044cb 6823609: (se) Selector.select hangs on Windows under load
Reviewed-by: sherman
2009-04-03 22:10:36 +01:00
Vladimir Kozlov
090346b4e8 6823453: DeoptimizeALot causes fastdebug server jvm to fail with assert(false,"unscheduable graph")
Use a HaltNode on the fall through path of the AllocateArrayNode to indicate that it is unreachable if the array length is negative.

Reviewed-by: never, jrose
2009-04-03 13:33:32 -07:00
Tim Bell
a7d6b2c707 Merge 2009-04-03 10:29:50 -07:00
Tim Bell
df35adf83b Merge 2009-04-03 10:29:13 -07:00
Xueming Shen
793be7342c Merge 2009-04-03 09:51:58 -07:00
Weijun Wang
b01525e89b 6825352: support self-issued certificate in keytool
Reviewed-by: xuelei
2009-04-03 11:36:19 +08:00
Erik Trimble
73696dd5a4 Merge 2009-04-02 17:37:46 -07:00
Erik Trimble
067a3d9ad6 6825815: Bump HS15 build number to 05 and update copyright date of HOTSPOT_VM_COPYRIGHT
Update the HS15 Build number to 05 and fix copyright date of HOTSPOT_VM_COPYRIGHT

Reviewed-by: jcoomes
2009-04-02 17:37:07 -07:00
Erik Trimble
503abb135a Merge 2009-04-02 17:01:00 -07:00
Xiomara Jayasena
6103649b6b Added tag jdk7-b53 for changeset e053a98a8120 2009-04-02 16:52:05 -07:00
Xiomara Jayasena
9d4aff2eaf Added tag jdk7-b53 for changeset 05e04a29c589 2009-04-02 16:51:55 -07:00
Xiomara Jayasena
223f8354ad Added tag jdk7-b53 for changeset b52ef22dd797 2009-04-02 16:51:48 -07:00
Xiomara Jayasena
b1371af3b7 Added tag jdk7-b53 for changeset d14d2d3caaf1 2009-04-02 16:51:46 -07:00
Xiomara Jayasena
f907f0a9d2 Added tag jdk7-b53 for changeset 94c3ff1a20d0 2009-04-02 16:51:41 -07:00
Xiomara Jayasena
a91d2cfe7a Added tag jdk7-b53 for changeset 66f056cc8fd4 2009-04-02 16:51:38 -07:00
Xiomara Jayasena
21e44848b0 Added tag jdk7-b53 for changeset 149237542285 2009-04-02 16:51:36 -07:00
Xueming Shen
21aa30606a 4681995: Add support for large (> 4GB) zip/jar files
The ZIP64 format support is added for > 4GB jar/zip files

Reviewed-by: alanb, martin
2009-04-02 15:35:46 -07:00
Karen Kinnear
d4f2196cd0 Merge 2009-04-02 18:17:03 -04:00
Kelly O'Hair
208dfa22cd 6825765: Further adjustments to regression tests run by jprt
Reviewed-by: tbell
2009-04-02 15:04:33 -07:00
Alan Bateman
78e9762656 6824477: (se) Selector.select fails with IOException: "Invalid argument" if maximum file descriptors is low
Reviewed-by: sherman
2009-04-02 19:47:24 +01:00
Karen Kinnear
1f5324fed4 6825642: nsk sajdi tests fail with NullPointerException
Reviewed-by: xlu, coleenp, kamg, swamyv
2009-04-02 14:26:42 -04:00
Tom Rodriguez
e36afee3bd Merge 2009-04-02 10:49:41 -07:00
Phil Race
8b6fca5d9f 6753173: No need to read all the TrueType 'post' table to get underline info
Reviewed-by: igor, jgodinez
2009-04-02 10:16:53 -07:00
Alan Bateman
f83fd900a9 6824141: test/java/rmi/activation/rmidViaInheritedChannel tests fail
Reviewed-by: peterjones
2009-04-02 16:31:44 +01:00
Andrey Petrusenko
a8f9284064 Merge 2009-04-02 05:22:02 -07:00
Alan Bateman
15bf5db9c7 6666739: (ref) ReferenceQueue.poll() doesn't scale well
6711667: (ref) Update SoftReference timestamp only if clock advances

Forward port from 6u14; originally fixed by Tom Rodriguez in earlier update

Reviewed-by: martin
2009-04-02 11:19:34 +01:00
Alan Bateman
d2cd251815 6824135: (ch) test/java/nio/channels/AsyncCloseAndInterrupt.java fails (lnx)
Reviewed-by: sherman
2009-04-02 11:13:56 +01:00
Erik Trimble
0244538b93 Merge 2009-04-01 22:31:26 -07:00
Kelly O'Hair
06a5796034 Merge 2009-04-01 18:45:25 -07:00
Kelly O'Hair
8ed0a99cb6 6825175: Remove or disable sanity check on binary plugs
Reviewed-by: xdono
2009-04-01 16:49:43 -07:00
Paul Hohensee
4be7c3c672 6819213: revive sun.boot.library.path
Support multiplex and mutable sun.boot.library.path

Reviewed-by: acorn, dcubed, xlu
2009-04-01 16:38:01 -04:00
Tom Rodriguez
4d34a77121 6823454: Oop-typed loadP yields invalid pointer (0x1) on SPECjbb2005 at OSRed method entry
Reviewed-by: kvn, jrose
2009-04-01 11:45:01 -07:00
Kelly O'Hair
36ce084168 Merge 2009-04-01 09:44:34 -07:00
Kelly O'Hair
028a93578f Merge 2009-04-01 09:10:01 -07:00
Kelly O'Hair
1e18bf2d6e 6824583: regtest TimeUnit/Basic.java fails intermittently on Windows - again
Reviewed-by: dholmes
2009-04-01 09:08:54 -07:00
Xiomara Jayasena
4c089452ee Merge 2009-04-01 08:58:42 -07:00
Xiomara Jayasena
5953ff9720 Merge 2009-04-01 08:58:18 -07:00
Xiomara Jayasena
6996b27f46 Merge 2009-04-01 08:58:07 -07:00
Xiomara Jayasena
af876f1345 Merge 2009-04-01 08:58:05 -07:00
Anthony Petrov
0a24bf67c2 6818312: com.sun.awt.SecurityWarning.getSize() always reports (0, 0) on X11
The fix got pushed with 6693253. However the test was omitted. Here it comes.

Reviewed-by: dcherepanov, art
2009-04-01 19:05:47 +04:00
Tim Bell
c81e6c29c1 6824595: OpenJDK fix breaks product build for jdk7
Reviewed-by: xdono, ohair
2009-04-01 04:44:30 -07:00
Mandy Chung
1870624c08 6819110: Lazily load Sun digest provider for jar verification
Lazily call Providers.getSunProvider() instead of at static initializer

Reviewed-by: mullan
2009-03-31 23:52:04 -07:00
Tom Rodriguez
f3946ad215 Merge 2009-03-31 19:20:34 -07:00
Kelly O'Hair
c9ce349372 6824012: Add jdk regression tests to default jprt jobs
A work in progress on adding to the jprt testing.

Reviewed-by: tbell
2009-03-31 16:14:14 -07:00
Kelly O'Hair
53b5f6ae6b 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
A work in progress on testing additions for JPRT system.

Reviewed-by: tbell
2009-03-31 16:12:56 -07:00
Kelly O'Hair
a4fccad415 6745361: Add -XX options to prevent stdout/stderr pollution using fastdebug/debug bootjdk
Reviewed-by: tbell
2009-03-31 16:11:09 -07:00
Kelly O'Hair
183aabe3b5 6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
Reviewed-by: tbell
2009-03-31 16:10:31 -07:00
Tim Bell
0a7ba6e27e 6819847: build is broken for OpenJDK with plugs
Reviewed-by: jjg, robilad, ohair
2009-03-31 15:27:40 -07:00
Tom Rodriguez
b857081608 6824463: deopt blob is testing wrong register on 64-bit x86
Reviewed-by: jrose, phh, kvn
2009-03-31 15:09:45 -07:00
Changpeng Fang
c0d62ad9e6 6761600: Use sse 4.2 in intrinsics
Use SSE 4.2 in intrinsics for String.{compareTo/equals/indexOf} and Arrays.equals.

Reviewed-by: kvn, never, jrose
2009-03-31 14:07:08 -07:00
Jonathan Gibbons
851190bb2e 6813059: replace use of JavaCompiler.errorCount with shouldContinue
Reviewed-by: mcimadamore
2009-03-31 11:16:15 -07:00
Jonathan Gibbons
681d216332 6817950: refactor ClassReader to improve attribute handling
Reviewed-by: mcimadamore
2009-03-31 11:07:55 -07:00
Vladimir Kozlov
aee9449305 Merge 2009-03-31 10:02:01 -07:00
Xiomara Jayasena
edd49c4cf2 Merge 2009-03-31 08:54:12 -07:00
Xiomara Jayasena
a2371fe1f8 Merge 2009-03-31 08:53:40 -07:00
Xiomara Jayasena
39aa31ca05 Merge 2009-03-31 08:53:16 -07:00
Andrew John Hughes
f38ce53536 6819601: Fix AWT JTReg tests which fail to compile
Fix compilation of tests.

Reviewed-by: anthony, son
2009-03-31 18:47:31 +04:00
Vladimir Kozlov
705188bb7b 6821700: tune VM flags for peak performance
Tune C2 flags default values for performance.

Reviewed-by: never, phh, iveresov, jmasa, ysr
2009-03-30 18:19:31 -07:00
Jonathan Gibbons
dcd2283896 6819246: improve support for decoding instructions in classfile library
Reviewed-by: ksrini
2009-03-30 15:08:09 -07:00
Alan Bateman
445c56f3ea Merge 2009-03-30 19:22:27 +01:00
Yuri Nesterenko
0c7428a720 6823589: Remake sizes.64-solaris-i386 with newly added fields
6782746: Keyboard hotkeys don't work in locales where non latin characters are used
6299348: Zero keycode returned in keyPressed and keyReleased for some keys in non-english layout - Win32
6316369: Provide a method to convert a character to VK_* Java keycode, if possible
6446568: KeyEvent lacks 3 virtual keys of Danish keyboards
6559449: Support for converting from char to KeyEvent VK_ keycode
6182651: Need to identify any key pressed/released with a unique code

Various by-products of 6680988 fix.

Reviewed-by: art
2009-03-30 16:33:39 +04:00
Karen Kinnear
d37d544754 Merge 2009-03-29 18:19:05 -04:00
Y. Srinivas Ramakrishna
137a679446 6819891: ParNew: Fix work queue overflow code to deal correctly with +UseCompressedOops
When using compressed oops, rather than chaining the overflowed grey objects' pre-images through their klass words, we use GC-worker thread-local overflow stacks.

Reviewed-by: jcoomes, jmasa
2009-03-28 15:47:29 -07:00
Erik Trimble
350ce4d28b 6823377: Bump HS15 build number to 04
Update the HS15 Build number to 04

Reviewed-by: jcoomes
2009-03-27 16:58:30 -07:00
Erik Trimble
e4f3d13dbb Merge 2009-03-27 16:54:56 -07:00
Tom Rodriguez
99aa7292a3 6822333: _call_stub_compiled_return address handling in SA is broken causing jstack to hang occasionally
Reviewed-by: kvn, twisti
2009-03-27 14:37:42 -07:00
Xiomara Jayasena
0f23916d8b Added tag jdk7-b52 for changeset a9071341dbea 2009-03-27 14:11:53 -07:00
Xiomara Jayasena
ace77b0dc3 Added tag jdk7-b52 for changeset ea5331b4a192 2009-03-27 14:11:45 -07:00
Xiomara Jayasena
d8cd1fc432 Added tag jdk7-b52 for changeset 56b454d324bb 2009-03-27 14:11:40 -07:00
Xiomara Jayasena
93a90129b2 Added tag jdk7-b52 for changeset 37c56ec4ec7d 2009-03-27 14:11:39 -07:00
Xiomara Jayasena
422ea850e0 Added tag jdk7-b52 for changeset 0d989c04422c 2009-03-27 14:11:35 -07:00
Xiomara Jayasena
a83e0c0925 Added tag jdk7-b52 for changeset 8608524e334e 2009-03-27 14:11:32 -07:00
Xiomara Jayasena
9bac626c1a Added tag jdk7-b52 for changeset 90eb5f83241a 2009-03-27 14:11:31 -07:00
Karen Kinnear
2a7822f94f Merge 2009-03-27 14:35:44 -04:00
Poonam Bajaj
6d21b1e4cd 6822407: heapOopSize lookup is incorrect in Serviceability Agent
HeapOopSize symbol should be declared as constant in vmStructs and should not be looked up in readVMIntConstants().

Reviewed-by: never, swamyv, coleenp
2009-03-27 10:29:54 -07:00
Alan Bateman
de8096cf48 6772303: (se) IOException: Invalid argument" thrown on a call to Selector.select(value) with -d64
Reviewed-by: sherman
2009-03-27 16:04:05 +00:00
Alan Bateman
f59df4d489 6693490: (se) select throws "File exists" IOException under load (lnx)
Reviewed-by: sherman
2009-03-27 15:24:37 +00:00
Yuri Nesterenko
51ef95c396 6680988: KeyEvent is still missing VK values for many keyboards
2 new methods and some fields added to KeyEvent, plus hash of constants introduced

Reviewed-by: art
2009-03-27 12:01:24 +03:00
Ivan P Krylov
595ff704c0 6812297: update project creation for Visual Studio 2005-2008
Add 2 news classes to create VC8 and VC9 projects

Reviewed-by: apetrusenko, xlu
2009-03-27 01:35:39 -05:00
Weijun Wang
739414c177 6802846: jarsigner needs enhanced cert validation(options)
Reviewed-by: xuelei
2009-03-27 11:05:45 +08:00
Doug Lea
ec207ef682 6822903: Reliability and documentation improvements for ReentrantReadWriteLock
Make firstReader a Thread, not a long

Reviewed-by: martin
2009-03-26 17:39:42 -07:00
Kelly O'Hair
2ce9a96c01 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos

Reviewed-by: tbell
2009-03-26 16:52:00 -07:00
Kelly O'Hair
69c8b43f09 6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos
Reviewed-by: tbell
2009-03-26 16:48:53 -07:00
Kelly O'Hair
7bb1e5eae1 6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos
Reviewed-by: tbell
2009-03-26 16:48:29 -07:00
Kelly O'Hair
ab419e86a9 6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos
Reviewed-by: tbell
2009-03-26 16:48:03 -07:00
Kelly O'Hair
9d17772469 6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos

Reviewed-by: tbell
2009-03-26 16:47:41 -07:00
Kelly O'Hair
eba9038e41 6822913: Consolidate make/jprt.config files, let JPRT manage this file make it optional in repos
Reviewed-by: tbell
2009-03-26 16:46:55 -07:00
Vladimir Kozlov
68cf08d2c3 6810845: Performance regression in mpegaudio on x64
Used the outer loop frequency in frequencies checks in RA.

Reviewed-by: never, twisti
2009-03-26 15:04:55 -07:00
Tom Rodriguez
3b786f8edc Merge 2009-03-26 14:39:39 -07:00
Tom Rodriguez
134debb0ba 6822204: volatile fences should prefer lock:addl to actual mfence instructions
Reviewed-by: kvn, phh
2009-03-26 14:31:45 -07:00
Karen Kinnear
ae0f3167d3 Merge 2009-03-26 16:00:51 -04:00
Doug Lea
b63d6d68d9 6801020: Concurrent Semaphore release may cause some require thread not signaled
Introduce PROPAGATE waitStatus

Reviewed-by: martin
2009-03-26 11:59:07 -07:00
Igor Veresov
74e0691df5 6822263: G1: JVMTI heap iteration fails
Make object_iterate() traverse the perm gen

Reviewed-by: apetrusenko, tonyp
2009-03-26 08:51:32 -07:00
Anthony Petrov
a1fd30eb7a 6693253: Security Warning appearance requires enhancements
6779717: A Window does not show applet security warning icon on X platforms
6785058: Parent dn't get the focus after dialog is closed if security warning is applied

Forward-port from 6u10-6u14

Reviewed-by: art, dcherepanov
2009-03-26 14:38:46 +03:00
Pavel Porvatov
93751b6e8c 6798062: Memory Leak on using getFiles of FileSystemView
Reviewed-by: peterz, malenkov
2009-03-26 11:04:47 +03:00
Andrey Petrusenko
cf2ae8d98d 6543938: G1: remove the concept of popularity
Reviewed-by: iveresov, tonyp
2009-03-25 13:10:54 -07:00
Mandy Chung
5d6fffa036 6819122: DefaultProxySelector should lazily initialize the Pattern object and the NonProxyInfo objects
Move two static NonProxyInfo fields into NonProxyInfo class and instantiate Pattern object when needed

Reviewed-by: jccollet
2009-03-25 12:24:30 -07:00
Coleen Phillimore
cec3a034d1 6541756: Reduce executable C-heap
Add executable parameters to reserve_memory and commit_memory to reduce executable memory to only the Code Heap.

Reviewed-by: xlu, kvn, acorn
2009-03-25 14:19:20 -04:00
Karen Kinnear
101468324d 6603316: Improve instrumentation for classes loaded at startup
Reviewed-by: xlu, mchung
2009-03-25 13:09:28 -04:00
Antonios Printezis
cb822b7e10 Merge 2009-03-25 10:36:08 -04:00
Anthony Petrov
be5021d224 6714678: IDE (Netbeans, Eclipse, JDeveloper) Debugger hangs process on Linux
Added the system property sun.awt.disablegrab

Reviewed-by: art, dcherepanov
2009-03-25 13:37:08 +03:00
Maurizio Cimadamore
584c02dfa8 6400189: raw types and inference
Fixed resolution problem with raw overriding (CCC)

Reviewed-by: jjg
2009-03-25 10:29:28 +00:00
Maurizio Cimadamore
d0892edd69 6816548: Uninitialized register when performing casting + auto(un)boxing
Constant value of final variable is lost during lowering

Reviewed-by: jjg
2009-03-25 10:28:52 +00:00
Maurizio Cimadamore
8321605121 6182950: methods clash algorithm should not depend on return type
Fixed code that checks for duplicate method declarations

Reviewed-by: jjg
2009-03-25 10:28:36 +00:00
Doug Lea
01a36018d3 6800572: Removing elements from views of NavigableMap implementations does not always work correctly
Replace use of new TreeSet with new KeySet

Reviewed-by: martin
2009-03-24 19:42:23 -07:00
Lana Steuck
8888335104 Merge 2009-03-24 19:12:02 -07:00
Paul Hohensee
ffff71c1cf Merge 2009-03-24 19:05:23 -07:00
Paul Hohensee
5231fcdc40 6810653: Change String cache class used by Hotspot from String to StringValue
Change create_vm() to load and initialize StringValue rather than String.

Reviewed-by: kvn
2009-03-24 21:56:53 -04:00
Tom Rodriguez
a5396e1107 6820510: assertion failure with unloaded class in subnode.cpp
Reviewed-by: kvn
2009-03-24 15:09:52 -07:00
Roman Kennke
1a0a9da570 6809233: Modal dialog blocks calling thread after it is hidden and disposed
Send WakingRunnable to toolkit to prevent early cleanup.

Reviewed-by: art, son
2009-03-24 21:57:50 +01:00
Changpeng Fang
fface2e4ca 6636138: UseSuperWord enabled failure
Fixed SuperWord scheduling of memory operations.

Reviewed-by: kvn, never
2009-03-24 12:19:47 -07:00
Phil Race
b2f54efed2 6821504: typo in lcmsio.c
Reviewed-by: jgodinez
2009-03-24 10:53:04 -07:00
Phil Race
312ee333ac 6821031: Upgrade OpenJDK's LittleCMS version to 1.18
Reviewed-by: bae, igor
2009-03-24 09:14:02 -07:00
Alan Bateman
6af949fe24 6621689: (dc spec) DatagramChannel.receive when channel is not bound is not specified
Reviewed-by: sherman
2009-03-24 14:10:38 +00:00
Andreas Frischknecth
4654daefa2 6819689: File.lastModified can return bogus value for remote file accessed as it is being deleted [win]
Reviewed-by: sherman
2009-03-24 14:08:37 +00:00
Alan Bateman
a2b46bd320 6807702: Integer.valueOf cache should be configurable
Reviewed-by: darcy
2009-03-24 14:05:44 +00:00
Alan Bateman
7d94fdb066 6819886: System.getProperty("os.name") reports Vista on Windows 7
Reviewed-by: sherman
2009-03-24 14:03:46 +00:00
Tim Bell
d0799cc37d Merge 2009-03-23 17:58:32 -07:00
Tim Bell
8f3723561b Merge 2009-03-23 17:57:43 -07:00
Andrew John Hughes
7c23bf3736 6695776: corba jscheme jar files in repository could be built from source
Forward port of changes from the 6-open train.

Reviewed-by: darcy, ohair, tbell
2009-03-23 17:43:53 -07:00
Andrew John Hughes
283deccd89 6695776: corba jscheme jar files in repository could be built from source
Forward port of changes from the 6-open train.

Reviewed-by: darcy, ohair, tbell
2009-03-23 17:43:15 -07:00
Tom Rodriguez
1cafadfd3e 6805522: Server VM fails with assertion (block1->start() != block2->start(),"successors have unique bcis")
Reviewed-by: kvn
2009-03-23 13:58:58 -07:00
Phil Race
4db0a48b10 6745225: Memory leak while drawing Attributed String
Reviewed-by: jgodinez, dougfelt
2009-03-23 10:40:54 -07:00
Xueming Shen
df71af8d55 Merge 2009-03-23 09:34:11 -07:00
Xueming Shen
3f0b988cfc 6636323: Optimize handling of builtin charsets
6636319: Encoders should implement isLegalReplacement(byte[] repl)

Optimized new String(byte[], cs/csn) and String.getBytes(cs/csn) for speed and memory consumption in singlebyte case.

Reviewed-by: alanb
2009-03-23 09:19:23 -07:00
Karen Kinnear
472349069b Merge 2009-03-23 10:42:20 -04:00
Dmitry Cherepanov
cd71edadc5 6730447: Support for high resolution mouse wheel is still incomplete. AWT panel needs to be supported
Reviewed-by: art, dav
2009-03-23 09:47:39 -04:00
Peter Zhelezniakov
1a1db06a37 4783068: Components with HTML text should gray out the text when disabled
Views fixed to use different colors when container is disabled

Reviewed-by: gsm, rupashka
2009-03-23 16:41:47 +03:00
Peter Zhelezniakov
4ce28ac8a0 6653395: Default LAF is set to CrossPlatformLookAndFeel not SystemLookAndFeel
Swing now checks AppContext properties to determine default LAF name. This is needed for plugin to be able to set default LAF w/o loading Swing classes.

Reviewed-by: alexp, loneid
2009-03-23 14:09:32 +03:00
Weijun Wang
b1d6f69a58 6820606: keytool can generate serialno more randomly
Reviewed-by: xuelei
2009-03-23 17:05:48 +08:00
Dmitry Cherepanov
542f88fae5 6516404: regression: Choice vertical scrollbar is not seen when the item in the choice is increased more than
Reviewed-by: art, dav
2009-03-23 11:59:55 +03:00
Antonios Printezis
d5e5e5a3d1 6820321: G1: Error: guarantee(check_nums(total, n, parts), "all seq lengths should match")
Small fixes to sort out some verbosegc-related incorrectness and a failure

Reviewed-by: apetrusenko
2009-03-21 22:53:04 -04:00
Tim Bell
e969cae170 Merge 2009-03-21 13:53:11 -07:00
Tim Bell
ffa70f7fdd Merge 2009-03-21 13:52:13 -07:00
John R Rose
cfb08c72ba 6814659: separable cleanups and subroutines for 6655638
Preparatory but separable changes for method handles

Reviewed-by: kvn, never
2009-03-20 23:19:36 -07:00
Coleen Phillimore
c8da21faa9 6805748: Assertion "don't reset to 0 -- could be mistaken for never-executed" in CompilationPolicy
Resetting the invocation counter for a method invocation event was setting count to zero for CompileThreshold=1, making it look like a never executed method.

Reviewed-by: phh, kamg, acorn, never
2009-03-20 22:08:48 -04:00
Xueming Shen
94bd6b212a Merge 2009-03-20 17:40:52 -07:00
Xueming Shen
df65a88edb 6817475: named-capturing group name started with digit causes PSE exception
Need accept the digit as the first char of the group name

Reviewed-by: alanb
2009-03-20 16:22:59 -07:00
Bhavesh Patel
34d8fbb5e2 6820360: Fix for definition list tags nesting adds an extra list tag for package summary page
Reviewed-by: jjg
2009-03-20 15:50:50 -07:00
Alexey Ushakov
7f2828e070 6733501: Apply IcedTea little cms patches
Reviewed-by: bae, prr
2009-03-20 20:05:22 +03:00
Karen Kinnear
fba4182589 6819853: VM does not detect JDK which supports parallel class loaders
Reviewed-by: coleenp, pbk, xlu, alanb
2009-03-20 11:23:24 -04:00
Dmitry Cherepanov
dc5ad18362 6774258: api/java_awt/Component/index.html#PaintUpdate fails randomly
Reviewed-by: art
2009-03-20 08:41:43 -04:00
Bhavesh Patel
fd5bc72005 6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
Reviewed-by: jjg
2009-03-19 19:00:54 -07:00
Xiomara Jayasena
f714e2735c Added tag jdk7-b51 for changeset 95e3c21b2919 2009-03-19 13:25:44 -07:00
Xiomara Jayasena
a78838a019 Added tag jdk7-b51 for changeset 7f8562969499 2009-03-19 13:25:35 -07:00
Xiomara Jayasena
62b683190f Added tag jdk7-b51 for changeset a727a0158548 2009-03-19 13:25:29 -07:00
Xiomara Jayasena
b742371799 Added tag jdk7-b51 for changeset c00902c9cfbf 2009-03-19 13:25:27 -07:00
Xiomara Jayasena
7f88fc4697 Added tag jdk7-b51 for changeset c5c3e5f4accc 2009-03-19 13:25:23 -07:00
Xiomara Jayasena
ad903b11ed Added tag jdk7-b51 for changeset 222ac40efb53 2009-03-19 13:25:19 -07:00
Xiomara Jayasena
6e7e0b172c Added tag jdk7-b51 for changeset 82d167c95656 2009-03-19 13:25:18 -07:00
Vladimir Kozlov
41463d1d3a Merge 2009-03-19 09:13:24 -07:00
Weijun Wang
827d425560 6819272: keytool -importcert should read the whole input
Reviewed-by: xuelei
2009-03-19 11:17:06 +08:00
Mandy Chung
e85a4d8536 6817246: Redundant call to set InetAddressCachePolicy to FOREVER if not set during initialization
Remove InetAddressCachePolicy.setIfNotSet call from System.setSecurityManager0

Reviewed-by: alanb, jccollet
2009-03-18 17:37:39 -07:00
Karen Kinnear
25de21d620 4766230: Hotspot vtable inconsistencies cause core dumps. 6579515. 6582242
Reviewed-by: kamg, coleenp
2009-03-18 17:20:57 -04:00
Vladimir Kozlov
5e66955173 6772368: REGRESSION:tomcat crashed twice with JDK 7
Call make_block_at() with the original handler limits.

Reviewed-by: never
2009-03-18 13:25:02 -07:00
Daniel Fuchs
a2e046f672 Merge 2009-03-18 18:55:10 +01:00
Antonios Printezis
f8c3115e4e Merge 2009-03-18 11:37:48 -04:00
Kelly O'Hair
4091200de7 Merge 2009-03-17 13:45:01 -07:00
Kelly O'Hair
0b7966e54a 6818565: Regression with fix 6816311: COMPILER_VERSION -> REQUIRED_COMPILER_VERSION
Reviewed-by: tbell
2009-03-17 13:44:08 -07:00
Tim Bell
a787d51eea 6814587: Legal notice repair needed in jdk/src/share/classes/java/nio
6814590: Legal notice repair needed in jdk/test/java/awt/Frame/FrameSize/TestFrameSize.java
6814591: Legal notice repair needed in jdk/test/javax/script/Test3.java

Reviewed-by: alanb, xdono
2009-03-17 13:20:56 -07:00
Tim Bell
61485906a3 6814592: Legal notice repair needed in langtools/test/tools/javap/T4884240.java
Reviewed-by: jjg
2009-03-17 11:28:24 -07:00
Pavel Porvatov
30beae5a8c 6738668: JFileChooser cannot be created under SecurityManager
Reviewed-by: peterz
2009-03-17 16:06:14 +03:00
Xue-Lei Andrew Fan
6a44e920f6 6383095: CRL revoked certificate failures masked by OCSP failures
Remove the mask if certificate revoked

Reviewed-by: mullan
2009-03-17 11:54:13 +08:00
Igor Veresov
736e8a2d4b 6815683: G1: SEGV during marking
We should mark the regions that continue humongous regions as live if the first region is live.

Reviewed-by: tonyp
2009-03-16 17:48:01 -07:00
Xiomara Jayasena
5d0f0bfb8b Merge 2009-03-16 16:18:28 -07:00
Xiomara Jayasena
ba0443d684 Merge 2009-03-16 16:18:10 -07:00
Vladimir Kozlov
f210928e73 6816308: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
Allow Hotspot builds with latest Windows SDK 6.1 on 64bit Windows 2003

Reviewed-by: ohair, tbell, jcoomes
2009-03-16 15:06:33 -07:00
Hiroshi Yamauchi
8e6208656a 6812600: The miter line join decoration isn't rendered properly
Reviewed-by: avu, flar
2009-03-16 11:46:26 -07:00
Kelly O'Hair
20f06ceb09 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
These changes create a preference for the newer 6.1 SDK on Windows.

Reviewed-by: tbell
2009-03-16 11:24:06 -07:00
Antonios Printezis
217739210d 6816154: G1: introduce flags to enable/disable RSet updating and scanning
Introduces two flags, -XX:-/+G1EnableParallelRSetUpdating and -XX:-/+G1EnableParallelRSetScanning, to turn on/off the "band aid" fix that serializes RSet updating / scanning during GCs.

Reviewed-by: iveresov
2009-03-16 10:52:44 -04:00
Igor Veresov
82619cc8da 6817419: G1: Enable extensive verification for humongous regions
Enabled full verification for humongous regions. Also made sure that the VerifyAfterGC works with deferred updates and G1HRRSFlushLogBuffersOnVerify.

Reviewed-by: tonyp
2009-03-16 08:01:32 -07:00
Karen Kinnear
f9f538c7fd Merge 2009-03-16 08:50:53 -04:00
Antonios Printezis
ecdb99412d 6604422: G1: re-use half-promoted regions
6728271: G1: Cleanup G1CollectedHeap::get_gc_alloc_regions()

It allows the last half-full region to be allocated to during a GC to be reused during the next GC.

Reviewed-by: apetrusenko, jcoomes
2009-03-15 22:03:38 -04:00
Poonam Bajaj
9dff23337b 6812971: SA: re-attaching to process fails
After attaching, de-attaching SA from a process, the second time attach() call fails. This happens because in VM.initialize(), Universe does not get re-initialized before it is accessed.

Reviewed-by: swamyv
2009-03-15 18:11:46 -07:00
John R Rose
b8dbe8d8f6 6813212: factor duplicated assembly code for general subclass check (for 6655638)
Code in interp_masm, stubGenerator, c1_LIRAssembler, and AD files moved into MacroAssembler.

Reviewed-by: kvn
2009-03-13 18:39:22 -07:00
Y. Srinivas Ramakrishna
21b3d4aea0 Merge 2009-03-13 17:06:44 -07:00
Tim Bell
2bd1e0578b Merge 2009-03-13 15:26:23 -07:00
Y. Srinivas Ramakrishna
a45005f646 6808322: ParNew, CMS, G1: ParGCAllocBuffer overflow
Correct the overflow check in ParGCAllocBuffer::allocate(); simplify ParGCAllocBuffer::undo_allocation().

Reviewed-by: apetrusenko, jcoomes, jmasa, minqi, phh, tonyp
2009-03-13 13:56:01 -07:00
Antonios Printezis
05a81fae18 Merge 2009-03-13 16:10:21 -04:00
Christian Thalinger
de67e52949 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
BitCount() should use POPC on SPARC processors where POPC is implemented directly in hardware.

Reviewed-by: kvn, never
2009-03-13 11:35:17 -07:00
Peter Zhelezniakov
e6ea9147f9 6815767: Bad parameter when calling another method in the class SynthTabbedPaneUI
Reviewed-by: alexp, rupashka
2009-03-13 19:25:17 +03:00
Dmitry Cherepanov
cc57a283fb 6805897: Gap present between the choice and its drop down list in Jdk 7 build for a non resizable frame
Reviewed-by: art, anthony
2009-03-13 18:07:13 +03:00
Daniel Fuchs
aa0baf128e Merge 2009-03-13 14:25:48 +01:00
Xue-Lei Andrew Fan
95ef28ff0d 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
Checking validity and ocsp-nocheck extension.

Reviewed-by: mullan, vinnie
2009-03-13 12:59:25 +08:00
Weijun Wang
d6f2afc28f 6550221: jaas, jgss and smartcardio javadoc files do not contain Copyrights
Reviewed-by: ohair
2009-03-13 09:21:13 +08:00
Weijun Wang
78ae650f8f 6815182: GSSAPI/SPNEGO does not work with server using MIT Kerberos library
Reviewed-by: valeriep
2009-03-13 09:20:56 +08:00
Erik Trimble
8debef1a64 6816970: Bump HS15 build number to 03
Update the HS15 Build number to 03

Reviewed-by: jcoomes
2009-03-12 18:17:25 -07:00
Erik Trimble
8d6035660e Merge 2009-03-12 18:16:36 -07:00
Igor Veresov
1e875ce562 6816433: Test G1 and ParOld in JPRT
Reviewed-by: jmasa, never, ysr
2009-03-12 14:01:36 -07:00
Phil Race
5f9073cac0 6727719: Performance of TextLayout.getBounds()
Reviewed-by: jgodinez, dougfelt
2009-03-12 12:01:49 -07:00
Vladimir Kozlov
69f9ddee90 6791178: Specialize for zero as the compressed oop vm heap base
Use zero based compressed oops if java heap is below 32gb and unscaled compressed oops if java heap is below 4gb.

Reviewed-by: never, twisti, jcoomes, coleenp
2009-03-12 10:37:46 -07:00
Mandy Chung
2f06b83dfc 6813240: Remove dead code in sun.misc.FormattedFloatingDecimal class
Remove unused methods from FormattedFloatingDecimal that were originally copied from FloatingDecimal

Reviewed-by: darcy
2009-03-12 10:32:58 -07:00
Mandy Chung
0a64902056 6810254: Lazily instantiate the shared secret access objects
Register the shutdown hooks only when needed and remove JavaIODeleteOnExitAccess

Reviewed-by: alanb
2009-03-12 10:27:22 -07:00
Antonios Printezis
e794fff22c Merge 2009-03-12 11:34:44 -04:00
Daniel Fuchs
e466180135 6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
Reviewed-by: mchung, ohair
2009-03-12 15:36:14 +01:00
Pavel Porvatov
93c4a7033c 6491795: COM should be initialized for Shell API calls in ShellFolder2.cpp
Reviewed-by: peterz, loneid
2009-03-12 14:00:26 +03:00
Kelly O'Hair
ad9390102d 6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
Reviewed-by: tbell
2009-03-11 17:31:56 -07:00
Kelly O'Hair
83f34e5507 6790292: BOOTDIR of jdk6 u12 will not work with jdk7 builds
Reviewed-by: tbell
2009-03-11 14:38:02 -07:00
Christian Thalinger
66cecec230 6812587: Use auxv to determine SPARC hardware features on Solaris
A similar function to getisax(2) should be used to determine all possible instruction set extensions.

Reviewed-by: never, kvn
2009-03-11 14:16:13 -07:00
Anton Tarasov
97942f9872 6815946: regression: failed to build MToolkit
Reviewed-by: anthony
2009-03-11 16:11:31 +03:00
Vinnie Ryan
006e84fc77 6737315: LDAP serialized data vulnerability
Reviewed-by: alanb
2009-03-10 18:43:00 +00:00
Vladimir Kozlov
7a871160ec Merge 2009-03-10 08:52:16 -07:00
Anton Tarasov
56f4a68e6b 6806217: implement synthetic focus model for MS Windows
Reviewed-by: art, dcherepanov
2009-03-10 18:33:29 +03:00
Daniel Fuchs
4ca96d3f88 Merge 2009-03-10 14:29:47 +01:00
Daniel Fuchs
f17489b0d4 Merge 2009-03-10 12:55:40 +01:00
Daniel Fuchs
0de7d29a95 Merge 2009-03-10 12:47:27 +01:00
Daniel Fuchs
28e94fa2a3 Merge 2009-03-10 12:36:55 +01:00
Daniel Fuchs
dd8a3b1a34 Merge 2009-03-10 12:28:00 +01:00
Michael McMahon
a0ec52da33 6630639: lightweight HttpServer leaks file descriptors on no-data connections
Not cleaning up no-data connections properly

Reviewed-by: chegar
2009-03-10 03:18:22 -07:00
Andrey Petrusenko
13c13c7289 6760309: G1: update remembered sets during Full GCs
Reviewed-by: iveresov, tonyp
2009-03-10 00:47:05 -07:00
Tim Bell
e005d5df51 Merge 2009-03-09 23:53:41 -07:00
Tim Bell
79bc5884e7 Merge 2009-03-09 23:37:17 -07:00
Tim Bell
308015e275 Merge 2009-03-09 23:36:43 -07:00
Daniel Fuchs
576a962dcb 6721651: Security problem with out-of-the-box management
Reviewed-by: emcmanus, lmalvent
2009-03-09 23:50:11 +01:00
Rama Pulavarthi
f9e73b6fb3 6536193: Fix the flaw in UTF8XmlOutput
Reviewed-by: tbell
2009-03-09 15:32:10 -07:00
Daniel Fuchs
fbcaea5fc1 6610896: JMX Monitor handles thread groups incorrectly
Reviewed-by: emcmanus
2009-03-09 22:49:21 +01:00
Daniel Fuchs
b047886b2f 6610888: Potential use of cleared of incorrect acc in JMX Monitor
Reviewed-by: emcmanus
2009-03-09 22:34:08 +01:00
Daniel Fuchs
2f5bb727a1 6691246: Thread context class loader can be set using JMX remote ClientNotifForwarded
Reviewed-by: emcmanus
2009-03-09 22:17:52 +01:00
Daniel Fuchs
605e712ecd 6656633: getNotificationInfo methods static mutable
Reviewed-by: emcmanus, jfdenise
2009-03-09 21:49:56 +01:00
Xiomara Jayasena
2978ffb9f9 Merge 2009-03-09 13:34:19 -07:00
Xiomara Jayasena
fbcb7f3c1d Merge 2009-03-09 13:34:14 -07:00
Xiomara Jayasena
f402821a9d Merge 2009-03-09 13:34:04 -07:00
Xiomara Jayasena
4fb6b66cf1 Merge 2009-03-09 13:34:02 -07:00
Xiomara Jayasena
29a36f3f0e Merge 2009-03-09 13:34:00 -07:00
Xiomara Jayasena
e7e3ff02a8 Merge 2009-03-09 13:33:56 -07:00
Xiomara Jayasena
8a6b48743d Merge 2009-03-09 13:33:55 -07:00
Xiomara Jayasena
56fcf6c052 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:29:06 -07:00
Xiomara Jayasena
f038343dc2 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:29:01 -07:00
Xiomara Jayasena
380fa9ec0f 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:55 -07:00
Xiomara Jayasena
27f75e71c5 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:54 -07:00
Xiomara Jayasena
2be2e027b0 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:46 -07:00
Xiomara Jayasena
78f8162678 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:38 -07:00
Xiomara Jayasena
45d1edf5dc 6814575: Update copyright year
Update copyright for files that have been modified in 2009, up to 03/09

Reviewed-by: katleman, tbell, ohair
2009-03-09 13:28:37 -07:00
Xiomara Jayasena
fe2dde0f1a Merge 2009-03-09 11:43:45 -07:00
Xiomara Jayasena
76f6f19925 Merge 2009-03-09 11:43:30 -07:00
Xiomara Jayasena
2cf8e1ac80 Merge 2009-03-09 11:43:24 -07:00
Antonios Printezis
faf22e51ad Merge 2009-03-09 11:32:57 -04:00
Sean Mullan
d3a7a9549d Merge 2009-03-09 09:56:58 -04:00
Sean Mullan
d541bcf943 6787130: java.policy file contains stale link to http://java.sun.com/notes
Reviewed-by: weijun
2009-03-09 09:46:43 -04:00
Christian Thalinger
89cea91c48 6797305: Add LoadUB and LoadUI opcode class
Add a LoadUB (unsigned byte) and LoadUI (unsigned int) opcode class so we have these load optimizations in the first place and do not need to handle them in the matcher.

Reviewed-by: never, kvn
2009-03-09 03:17:11 -07:00
Antonios Printezis
e4e765e34e 6814467: G1: small fixes related to concurrent marking verboseness
A few small fixes to remove some inconsistencies in the concurrent mark-related verbose GC output.

Reviewed-by: jmasa
2009-03-07 11:07:37 -05:00
Antonios Printezis
8893530f3a 6812428: G1: Error: assert(ret || obj_in_cs(obj),"sanity")
The length of the fast cset test vector is decided at the beginning of a GC, but more regions can be added during the GC. The simple fix is to set the length of the fast cset test vector to the max.

Reviewed-by: iveresov
2009-03-07 11:07:37 -05:00
Antonios Printezis
e7d899910b 6810698: G1: two small bugs in the sparse remembered sets
The _expanded flag of the sparse RSets is not reset and this can leave a RSet in an inconsistent state if it is expanded more than once. Also, we should be iterating over the _cur, instead of the _next, sparse table

Reviewed-by: apetrusenko, iveresov
2009-03-07 11:07:36 -05:00
John R Rose
26d192003f 6812831: factor duplicated assembly code for megamorphic invokeinterface (for 6655638)
Code in vtableStubs and templateTable moved into MacroAssembler.

Reviewed-by: kvn
2009-03-06 21:36:50 -08:00
Igor Veresov
416d70bf91 6720309: G1: don't synchronously update RSet during evacuation pauses
6720334: G1: don't update RSets of collection set regions during an evacuation pause

Introduced a deferred update mechanism for delaying the rset updates during the collection pause

Reviewed-by: apetrusenko, tonyp
2009-03-06 13:50:14 -08:00
Tim Bell
9d3e087075 Merge 2009-03-06 10:53:48 -08:00
Tim Bell
8d2e7d667d Merge 2009-03-06 10:52:36 -08:00
Tim Bell
dc061cb0ce Merge 2009-03-06 10:52:02 -08:00
Andrew Brygin
6c11535cdd 6804997: JWS GIF Decoding Heap Corruption [V-r687oxuocp]
Reviewed-by: prr
2009-03-06 12:40:38 +03:00
Karen Kinnear
a23cbf5b96 Merge 2009-03-05 22:07:29 -05:00
Valerie Peng
7f34411b42 Merge 2009-03-05 11:44:40 -08:00
Jennifer Godinez
c9de141417 6735296: Regression: Common print dialog does not show the correct page orientation
Reviewed-by: tdv, prr
2009-03-05 10:56:06 -08:00
Xiomara Jayasena
4ae52d7dc1 Added tag jdk7-b50 for changeset 7faffd237305 2009-03-05 09:49:26 -08:00
Xiomara Jayasena
4e539172f6 Added tag jdk7-b50 for changeset 6075b2a504ac 2009-03-05 09:49:16 -08:00
Xiomara Jayasena
421eed2e07 Added tag jdk7-b50 for changeset 4dd69fd1b1f9 2009-03-05 09:49:09 -08:00
Xiomara Jayasena
cc6fbb6a7f Added tag jdk7-b50 for changeset 9c9bf2f9d3f3 2009-03-05 09:49:08 -08:00
Xiomara Jayasena
4e52be63fe Added tag jdk7-b50 for changeset 90cbd9088155 2009-03-05 09:49:03 -08:00
Xiomara Jayasena
d05dcd3c10 Added tag jdk7-b50 for changeset 4f3bb7d32ea0 2009-03-05 09:49:00 -08:00
Xiomara Jayasena
aef18fc5a7 Added tag jdk7-b50 for changeset c7a5f07b79b2 2009-03-05 09:48:58 -08:00
Maurizio Cimadamore
a46fd793cc 6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
Create new combo type/symbol visitor printer used by all diagnostic formatters

Reviewed-by: jjg
2009-03-05 17:25:37 +00:00
Maurizio Cimadamore
938af6ca9f 6807255: LineNumberTable wrong if enhanced-for-loops are used
End position of iterable for-each loop was not set properly

Reviewed-by: jjg
2009-03-05 17:25:13 +00:00
Maurizio Cimadamore
5ff31e060f 6804733: javac generates spourious diagnostics for ill-formed type-variable bounds
Fixed algorithm for checking cycles in typevar declarations

Reviewed-by: jjg
2009-03-05 17:24:40 +00:00
Maurizio Cimadamore
7b461338a0 6467183: javac fails to raise unchecked warning on cast of parameterized generic subclass
Cleanup code for generating unchecked cast warnings

Reviewed-by: jjg
2009-03-05 17:24:08 +00:00
Andrew Brygin
d033b16582 6804998: JRE GIF Decoding Heap Corruption [V-y6g5jlm8e1]
Reviewed-by: prr
2009-03-05 19:36:51 +03:00
Weijun Wang
5f12c03c56 6813402: keytool cannot -printcert entries without extensions
Reviewed-by: xuelei
2009-03-05 14:49:55 +08:00
Lana Steuck
be8bd14e3c Merge 2009-03-04 10:57:24 -08:00
John R Rose
07321dec65 6812678: macro assembler needs delayed binding of a few constants (for 6655638)
Minor assembler enhancements preparing for method handles

Reviewed-by: kvn
2009-03-04 09:58:39 -08:00
Xueming Shen
a2b97ae3ec 6812879: Excess code line in ArrayList method
Removed the line of "oldData" which is no longer used.

Reviewed-by: martin
2009-03-04 09:26:41 -08:00
Artem Ananiev
e63a1bf460 6784816: Remove AWT tree lock from Container methods: getComponent, getComponents, getComponentCount
Reviewed-by: anthony, dav
2009-03-04 18:10:48 +03:00
Chris Hegarty
bfa69d72f5 6737323: Typo in javadoc for SocketPermission
Remove redundant line form class description

Reviewed-by: jccollet
2009-03-04 13:36:33 +00:00
Chris Hegarty
9caca0a089 6775145: ClassLoaderUtil.releaseLoader calls System.out.println ("classLoader = " + classLoader)
Remove System.out debugging statements

Reviewed-by: michaelm
2009-03-04 13:28:16 +00:00
Dmitry Cherepanov
8a7cd86a28 6809227: poor performance on Panel.Add() method in jdk6
Reviewed-by: art, anthony
2009-03-04 13:05:56 +03:00
Weijun Wang
793a7d8187 6705872: SecureRandom number init is taking too long on a java.io.tmpdir with a large number of files
Reviewed-by: xuelei, alanb
2009-03-04 15:09:14 +08:00
Valerie Peng
ddd8b068ab 6812738: SSL stress test with GF leads to 32 bit max process size in less than 5 minutes with PCKS11 provider
Removed finalize() and add more error handling to native code

Reviewed-by: vinnie
2009-03-03 19:50:59 -08:00
Mandy Chung
37885fe5f8 6799230: Lazily load java.lang.annotation.Annotation class
Remove the static EMPTY_ANNOTATION_ARRAY field; add AnnotationParser.toArray method

Reviewed-by: darcy
2009-03-03 19:26:43 -08:00
Vladimir Kozlov
3e2ae68252 6812721: Block's frequency should not be NaN
Set MIN_BLOCK_FREQUENCY block's frequency when calculated block's frequency is NaN

Reviewed-by: never
2009-03-03 18:25:57 -08:00
Phil Race
de4c8e0eb5 2163516: Font.createFont can be persuaded to leak temporary files
Reviewed-by: igor
2009-03-03 16:10:37 -08:00
Xiomara Jayasena
cd69c60cc0 Merge 2009-03-03 15:21:28 -08:00
John Coomes
bc706440bd 6810474: par compact - crash in summary_phase with very full heap
Reviewed-by: tonyp
2009-03-03 14:23:18 -08:00
Y. Srinivas Ramakrishna
ce3f3161da 6824570: ParNew: Fix memory leak introduced in 6819891
Allocate worker-local overflow stacks, introduced in 6819891, along with ParNewGeneration, rather than with the per-scavenge ParScanThreadState.

Reviewed-by: jmasa
2009-04-02 15:57:41 -07:00
Vladimir Kozlov
4b15cdadd3 Merge 2009-03-03 10:34:22 -08:00
Anthony Petrov
7a593ea895 6811674: Container.setComponentZOrder throws NPE
Reviewed-by: art, dcherepanov
2009-03-03 13:54:47 +03:00
Y. Srinivas Ramakrishna
72bfacbd95 6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
Call newly created CollectedHeap::dump_{pre,post}_full_gc before and after every stop-world full collection cycle on GenCollectedHeap and ParallelScavengeHeap. (Support for G1CollectedHeap forthcoming under CR 6810861.) Small modifications to existing heap dumping and class histogram implementation, especially to allow multiple on-the-fly histos/dumps by the VM thread during a single safepoint.

Reviewed-by: jmasa, alanb, mchung
2009-03-02 16:37:04 -08:00
Daniel D. Daugherty
8c0f3ead78 Merge 2009-03-02 16:56:51 -07:00
Tim Bell
f4e320bfb9 Merge 2009-03-02 15:11:29 -08:00
Tim Bell
700b2220a9 Merge 2009-03-02 15:10:55 -08:00
Tim Bell
dc04ee39aa Merge 2009-03-02 15:10:17 -08:00
Daniel D. Daugherty
8aa430beb0 Merge 2009-03-02 14:43:36 -07:00
Daniel D. Daugherty
8aebf28301 6567360: 3/4 SIGBUS in jvmti RawMonitor magic check for unaligned bad monitor pointer
Change JvmtiEnvBase::is_valid() and JvmtiRawMonitor::is_valid() to fetch the _magic fields via Bytes::get_native_u[248]().

Reviewed-by: coleenp, swamyv
2009-03-02 14:05:07 -07:00
Daniel D. Daugherty
da3f81559f 6805864: 4/3 Problem with jvmti->redefineClasses: some methods don't get redefined
Remove incorrect optimization in klassItable::adjust_method_entries(). Add RedefineClasses() tracing support for obsolete method entry.

Reviewed-by: acorn, swamyv
2009-03-02 14:03:03 -07:00
Daniel D. Daugherty
56fe18e375 6800721: 3/4 JavaThread::jvmti_thread_state() and JvmtiThreadState::state_for() robustness
Check for NULL return values from jvmti_thread_state() and state_for() and return a JVM TI error code as appropriate.

Reviewed-by: coleenp, swamyv
2009-03-02 14:00:23 -07:00
Daniel D. Daugherty
74a99e1e82 6700114: 3/4 Assertion (_thread->get_interp_only_mode() == 1,"leaving interp only when mode not one")
Don't create JvmtiThreadState for an exiting JavaThread.

Reviewed-by: coleenp, swamyv
2009-03-02 13:57:17 -07:00
Xue-Lei Andrew Fan
ff67e1ba9a 6549506: Specification of Permission.toString() method contradicts with JDK implementation
Update the spec, and add double quotes around component.

Reviewed-by: weijun
2009-03-02 23:17:53 +08:00
Tom Rodriguez
48d4a43c2a 6811384: MacroAssembler::serialize_memory may touch next page on amd64
Reviewed-by: kvn, phh, twisti
2009-03-01 20:49:46 -08:00
Bhavesh Patel
5020864887 6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
Reviewed-by: jjg
2009-02-27 18:57:17 -08:00
Mandy Chung
5f4195e462 6809504: Remove enctype="text/xml" from the offline registration page
Remove enctype="text/xml" from register.html and other localized versions

Reviewed-by: ksrini
2009-02-27 16:34:19 -08:00
Xiomara Jayasena
a272f0d3a8 Merge 2009-02-27 15:55:58 -08:00
Y. Srinivas Ramakrishna
dd4aaeadd4 Merge 2009-02-27 15:30:47 -08:00
Xiomara Jayasena
409201ce7b Merge 2009-02-27 15:13:41 -08:00
Xiomara Jayasena
dd661ad390 Merge 2009-02-27 15:13:00 -08:00
Xiomara Jayasena
848f2e320b Merge 2009-02-27 15:12:52 -08:00
Mandy Chung
3650c6531d 6799689: Make sun.misc.FloatingDecimal.hexFloatPattern static field initialized lazily
Lazily initialize the hexFloatPattern static field

Reviewed-by: darcy
2009-02-27 13:43:48 -08:00
Christian Thalinger
05d1de7727 6810672: Comment typos
I have collected some typos I have found while looking at the code.

Reviewed-by: kvn, never
2009-02-27 13:27:09 -08:00
Vladimir Kozlov
67a5668b16 6811267: Fix for 6809798 broke linux build
Fix method's declaration.

Reviewed-by: phh, twisti
2009-02-27 08:34:19 -08:00
Lillian Angel
d6cdfde9d9 6778669: Patch from Red Hat -- fixes compilation errors
Some fixes which are required to build on recent GCCs.

Reviewed-by: never, kvn
2009-02-27 03:35:40 -08:00
Jonathan Gibbons
fb317642d0 6810915: Sun proprietary warnings in JDK build
Reviewed-by: ohair
2009-02-26 18:51:57 -08:00
Jonathan Gibbons
8ecfee604a 6810915: Sun proprietary warnings in JDK build
Reviewed-by: ohair
2009-02-26 18:32:46 -08:00
Jonathan Gibbons
c50a9c66cc 6809563: corba build in JDK uses invalid bootclasspath for javah
Reviewed-by: ohair
2009-02-26 18:28:21 -08:00
Tom Rodriguez
114da9bcfc 6810855: KILL vs. TEMP ordering restrictions are too strong
Reviewed-by: kvn
2009-02-26 16:57:21 -08:00
Mandy Chung
4e657281da 6801467: Defer get the launcher resource bundle until it's needed
Lazily initialize the launcher resource bundle

Reviewed-by: ksrini, darcy
2009-02-26 14:36:51 -08:00
Vladimir Kozlov
9b31d58b98 6809798: SafePointScalarObject node placed into incorrect block during GCM
Replace the control edge of a pinned node before scheduling.

Reviewed-by: never
2009-02-26 14:26:02 -08:00
Andrei Pangin
31eeaafbcf Merge 2009-02-26 14:25:55 -08:00
Clemens Eisserer
4fd14806a4 6791612: OGLBat tests are failed in jdk 7 b42
Reviewed-by: tdv
2009-02-26 13:38:38 -08:00
Pavel Porvatov
95a3c4a81f 6794831: Infinite loop while painting ticks on Slider with maximum=MAX_INT
Reviewed-by: malenkov
2009-02-26 11:44:43 +03:00
Erik Trimble
44091d390c Merge 2009-02-25 22:55:54 -08:00
Tom Rodriguez
f7098831dd 6807963: need tool to make sense of LogCompilaton output
Reviewed-by: kvn
2009-02-25 14:36:27 -08:00
Tom Rodriguez
a82243d887 6805427: adlc compiler may generate incorrect machnode emission code
Reviewed-by: kvn, twisti
2009-02-25 10:53:14 -08:00
Kevin Walls
781e5085de Merge 2009-02-25 14:32:01 +00:00
Jon Masamitsu
6b78cf8b99 Merge 2009-02-24 22:51:00 -08:00
Jon Masamitsu
b051a23591 6806226: Signed integer overflow in growable array code causes JVM crash
Workaround the overflow by doing the intermediate calculations in an unsigned variable.

Reviewed-by: ysr, jcoomes
2009-02-24 22:12:24 -08:00
Joe Darcy
178049faf3 6498938: Faulty comparison of TypeMirror objects in getElementsAnnotatedWith implementation
Reviewed-by: jjg
2009-02-24 17:48:53 -08:00
Joe Darcy
0b44eecef2 6501749: 6501749 Filer should state connection between created files and root elements
Reviewed-by: jjg
2009-02-24 17:16:18 -08:00
Jennifer Godinez
34f01f340e 6750383: 2D_PrintingTiger\PrintDocOrientationTest fails, wrong orientated images are printed
Reviewed-by: campbell, prr
2009-02-24 14:32:17 -08:00
Doug Lea
ca6e1aecc3 6803402: Race condition in AbstractQueuedSynchronizer
Read fields in reverse initialization order

Reviewed-by: martin
2009-02-24 14:01:45 -08:00
Antonios Printezis
f883e6fde8 6804746: G1: guarantee(variance() > -1.0,"variance should be >= 0") (due to evacuation failure)
Under certain circumstances (evacuation failure) the pause time is not communicated to the policy and, as a result, the pause time field is not initialized properly.

Reviewed-by: jmasa
2009-02-24 15:50:23 -05:00
Kevin Walls
53cf69e562 6809463: Missing license header in test LargeZipFile.java
Reviewed-by: alanb
2009-02-24 19:03:58 +00:00
Vladimir Kozlov
decdeea77d Merge 2009-02-24 09:53:20 -08:00
Peter Zhelezniakov
07338e17b5 6804221: Three tests for JTabbedPane produce VM crash on rhel3
Reviewed-by: stayer, campbell
2009-02-24 19:17:51 +03:00
Vladimir Kozlov
b07ac51bf3 6791572: assert("duplicating node that's already been matched")
Mark inputs for an address expression as shared if there are other uses besides address expressions.

Reviewed-by: never
2009-02-23 16:03:19 -08:00
Christian Thalinger
0723dab28b 6808589: Merge vm_version_x86_{32,64}.{cpp,hpp}
There is very much duplicated code in vm_version_x86_{32,64}.{cpp,hpp}.  Refactoring these would help maintainability.

Reviewed-by: kvn, never
2009-02-23 12:02:30 -08:00
Lana Steuck
2ba8da1975 Merge 2009-02-23 11:16:04 -08:00
Andrei Pangin
6acc244444 Merge 2009-02-22 17:21:13 -08:00
Andrei Pangin
85a47f34c6 Merge 2009-02-22 17:11:56 -08:00
Lana Steuck
ddc1549079 Merge 2009-02-22 12:26:39 -08:00
Y. Srinivas Ramakrishna
7efb6ac73a Merge 2009-02-20 11:12:26 -08:00
Anthony Petrov
f9a987bf43 6804747: Ensure consistent graphicsConfig member across components hierarchy
Reviewed-by: art, dcherepanov
2009-02-20 17:34:16 +03:00
Andrew Brygin
22f94de7e6 6804996: JWS PNG Decoding Integer Overflow [V-flrhat2ln8]
Reviewed-by: prr
2009-02-20 13:48:32 +03:00
Vladimir Kozlov
dc3008a513 6802499: EA: assert(false,"unknown node on this path")
Add missing checks for SCMemProj node in Escape analysis code.

Reviewed-by: never
2009-02-19 17:38:53 -08:00
Dmitry Cherepanov
a1117d31b6 6806224: PIT : Getting java.lang.NullPointerException while opening Filedialog
Reviewed-by: art, dav
2009-02-19 14:10:19 +03:00
Ivan P Krylov
6aec7d2ea9 6806046: Hotspot build error when compiled from Visual Studio
Define HOTSPOT_LIB_ARCH in the preprocessor flags of the generated projects

Reviewed-by: kamg, xlu
2009-02-19 04:54:22 -05:00
Kumar Srinivasan
dcbd65a1c3 6792554: Java JAR Pack200 header checks are insufficent
Added several checks to ensure that the values read from the headers are consistent

Reviewed-by: jrose
2009-02-18 14:14:03 -08:00
Vladimir Kozlov
73e8e582ba 6807084: AutoBox elimination is broken with compressed oops
Add checks for DecodeN nodes into AutoBox elimination code.

Reviewed-by: never
2009-02-18 13:53:42 -08:00
Jon Masamitsu
f1847266b7 6786346: intermittent Internal Error (src/share/vm/memory/cardTableModRefBS.cpp:226)
Two assertions were incorrectly composed.

Reviewed-by: tonyp
2009-02-17 15:35:58 -08:00
Dmitry Cherepanov
c59552fc2d 6723941: Crash in sun.awt.windows.WToolkit.eventLoop()
Reviewed-by: art, ant
2009-02-17 14:44:58 +03:00
Dmitry Cherepanov
e05fd5d6f5 6792023: Print suspends on Windows 2000 Pro since 6u12 b01
Reviewed-by: art, anthony
2009-02-17 14:30:52 +03:00
Dmitry Cherepanov
0d79cc7529 6769607: PIT : Modal frame hangs for a while for few seconds in 6u12 b01 pit build
Reviewed-by: art, anthony
2009-02-17 14:27:03 +03:00
Artem Ananiev
022fb387d9 6806035: Fix for 6804680 is incomplete
Reviewed-by: yan
2009-02-17 10:42:12 +03:00
Andrei Pangin
b4e9e47b74 Merge 2009-02-15 20:09:02 -08:00
Dmitry Cherepanov
ce1993bf8e 6724890: Deadlock between AWT-EventQueue-1 and AWT-XAWT threads during IDE start
Reviewed-by: art, ant
2009-02-12 18:24:35 +03:00
Artem Ananiev
3ca96fa445 6804680: Solaris AMD64 build fails after the fix for 6633275/7
Addition to the fix for 6633275

Reviewed-by: yan
2009-02-12 17:27:39 +03:00
Artem Ananiev
b8af3d5019 6799345: JFC demos threw exception in the Java Console when applets are closed
Reviewed-by: alexp, peterz
2009-02-12 14:19:06 +03:00
Artem Ananiev
e67e7cb5a7 6633275: Need to support shaped/translucent windows
Forward-port from 6u14, no public API is introduced

Reviewed-by: anthony, dcherepanov
2009-02-11 17:07:06 +03:00
John Coomes
b3e23ac700 Merge 2009-02-09 13:47:26 -08:00
Andrew Brygin
d83e26cba4 6800846: REGRESSION: Printing quality degraded with Java 6 compared to 5.0
Reviewed-by: igor, prr
2009-02-06 20:49:53 +03:00
Peter Zhelezniakov
a21476939e 6801769: 6588003 should be backed out from jdk7
Reviewed-by: alexp
2009-02-05 19:16:13 +03:00
Sergey Malenkov
8f96eb9cea 6669869: Beans.isDesignTime() and other queries should be per-AppContext
Reviewed-by: peterz, rupashka
2009-02-05 17:00:57 +03:00
Sergey Malenkov
837ece487d 4769844: classes in java.beans that are serializable but don't define serialVersionUID
Reviewed-by: peterz, rupashka
2009-02-05 14:48:10 +03:00
Peter Zhelezniakov
06d5f1e07f 6588003: LayoutQueue shares mutable implementation across AppContexts
DefaultQueue property is made per-AppContext

Reviewed-by: alexp
2009-02-04 18:48:24 +03:00
Andrew Brygin
b56f073148 6799583: LogManager shutdown hook may cause a memory leak
Reviewed-by: igor, swamyv
2009-02-04 14:06:18 +03:00
Kelly O'Hair
2fa7dc18d7 6799141: Build with --hash-style=both so that binaries can work on SuSE 10
Reviewed-by: tbell
2009-01-31 17:31:21 -08:00
Kelly O'Hair
09010fe0a7 6799141: Build with --hash-style=both so that binaries can work on SuSE 10
Reviewed-by: tbell
2009-01-31 17:19:42 -08:00
Kelly O'Hair
614df1958c 6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
Reviewed-by: tbell
2009-01-31 15:26:34 -08:00
Andrew Brygin
454a7c0732 6791502: IIOException "Invalid icc profile" on jpeg after update from JDK5 to JDK6
Reviewed-by: igor, prr
2009-01-30 22:30:32 +03:00
Lana Steuck
0d1c16da0e Merge 2009-01-29 18:33:52 -08:00
Andrew Brygin
2a2bbe2879 6631559: Registration of ImageIO plugins should not cause loading of jpeg.dlli and cmm.dll
Reviewed-by: igor, prr
2009-01-29 13:19:34 +03:00
Red Hat
55076b2558 6793344: BasicStroke's first element dash pattern is not a dash
Reviewed-by: igor, flar
2009-01-28 09:38:55 -08:00
Andrew Brygin
2726f2a362 6793818: JpegImageReader is too greedy creating color profiles
Reviewed-by: igor, prr
2009-01-23 21:14:31 +03:00
Andrew Brygin
8c2a336349 6795544: GIFImageWriter does not write the subImage of BufferedImage to a file correctly
Reviewed-by: igor, prr
2009-01-23 17:43:29 +03:00
Andrew Brygin
47a5b98c7f 6788096: ImageIO SreamCloser causes memory leak in FX applets
Reviewed-by: igor, prr
2009-01-15 13:55:30 +03:00
Martin von Gagern
57a1271b06 6782079: PNG: reading metadata may cause OOM on truncated images
Reviewed-by: igor, prr
2009-01-13 18:38:44 +03:00
Martin von Gagern
bf4d190698 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
Reviewed-by: igor, prr
2009-01-13 16:55:12 +03:00
Phil Race
729f2789f0 6752622: java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux
Reviewed-by: igor, yan
2009-01-12 16:02:47 -08:00
Phil Race
a0930ff4d4 6785424: SecurityException locating physical fonts on Windows Terminal Server
Reviewed-by: campbell, jgodinez
2009-01-06 13:52:03 -08:00
Phil Race
c357cbe4e0 6632886: Font.createFont can be persuaded to leak temporary files
6522586: Enforce limits on Font creation
6652929: Font.createFont(int,File) trusts File.getPath

Reviewed-by: igor
2009-01-05 11:28:43 -08:00
Weijun Wang
e33cec202f 6717680: LdapCtx does not close the connection if initialization fails
Reviewed-by: vinnie, xuelei
2008-12-30 10:42:45 +08:00
Phil Race
14b56dc3a0 6652463: MediaSize constructors allow to redefine the mapping of standard MediaSizeName values
Reviewed-by: igor, jgodinez
2008-12-24 15:48:59 -08:00
Phil Race
6f0de04c87 6752638: java.awt.GraphicsEnvironment.preferLocaleFonts() throws NPE on Linux
6755034: Legal notice repair: jdk/src/solaris/classes/sun/font/FcFontConfiguration.java

Reviewed-by: bae, igor
2008-12-24 09:57:48 -08:00
Phil Race
fa5248c9db 6728838: Native memory leak in StrikeCache.java
Reviewed-by: bae, igor
2008-12-24 09:53:52 -08:00
Phil Race
5b1de891b3 6708137: Remove obsolete fontconfig.98.properties from JDK 7
Reviewed-by: jgodinez, naoto
2008-12-18 11:25:09 -08:00
Igor Nekrestyanov
8848b3ab63 6761791: Crash in the FontManager code due to use of JNIEnv saved by another thread
Reviewed-by: bae, prr
2008-12-17 22:00:37 +03:00
Martin von Gagern
6f7b6c816a 5106550: PNG writer merge standard metadata fails for TextEntry sans #IMPLIED attributes
Reviewed-by: igor, prr
2008-12-12 17:38:14 +03:00
Andrew Brygin
b44236abdf 6766136: corrupted gif image may cause crash in java splashscreen library
Reviewed-by: prr, art
2008-12-03 13:34:50 +03:00
Kumar Srinivasan
92992b2e76 6755943: Java JAR Pack200 Decompression should enforce stricter header checks
Fixes a core dump when fed with a faulty pack file and related malicious take over

Reviewed-by: jrose
2008-10-17 09:43:30 -07:00
Alan Bateman
01bf987244 6721753: File.createTempFile produces guessable file names
Reviewed-by: sherman
2008-10-09 21:12:56 +01:00
Andrew Brygin
3a902871ef 6726779: ConvolveOp on USHORT raster can cause the JVM crash
Reviewed-by: igor, prr
2008-10-02 20:37:43 +04:00
Masayoshi Okutsu
3729356740 6734167: Calendar.readObject allows elevation of privileges
Reviewed-by: peytoia
2008-10-02 16:49:33 +09:00
Kumar Srinivasan
3a7a9cc557 6733959: Insufficient checks for "Main-Class" manifest entry in JAR files
Fixes a buffer overrun problem with a very long Main-Class attribute.

Reviewed-by: darcy
2008-09-04 09:43:32 -07:00
Weijun Wang
6aab63dd37 6588160: jaas krb5 client leaks OS-level UDP sockets (all platforms)
Reviewed-by: jccollet, chegar
2008-10-01 10:01:45 +08:00
Bradford Wetmore
87a408a846 6497740: Limit the size of RSA public keys
Reviewed-by: andreas, valeriep, vinnie
2008-08-22 18:48:00 -07:00
6012 changed files with 753601 additions and 207307 deletions

14
.hgtags
View File

@@ -24,3 +24,17 @@ caf58ffa084568990cbb3441f9ae188e36b31770 jdk7-b42
0c4657194eec95c08ba478aee9cfc3c295e41657 jdk7-b47
1bf51a4c2627c2f0e0cbcc2cf0421bdb37f1f2b2 jdk7-b48
6b84b04a80afe23262377c60913eebfc898f14c4 jdk7-b49
5da0e6b9f4f18ef483c977337214b12ee0e1fc8f jdk7-b50
a25c5ec5e40e07733d1ff9898a0abe36159288ff jdk7-b51
7a90e89e36d103038f8667f6a7daae34ecfa1ad8 jdk7-b52
d52186ee770dac57950536cd00ccbfdef360b04c jdk7-b53
15096652c4d48dfb9fc0b2cb135304db94c65ba0 jdk7-b54
c8b275d62d6b0a980c510e839b70292245863e85 jdk7-b55
a8134c4ee2cf451cf9b5e1609f39d83ecd53acc5 jdk7-b56
b44f05654c26fcd1f995e712992f9b07ffd7c0c6 jdk7-b57
d60a9ce3c3eabf28f5d50ae839d18be04a551bc2 jdk7-b58
c33e7d38c9210741dbc285507403a4b20bd802a0 jdk7-b59
5a10e4d0b14d7beac53a7b2213ae6864afe1fd3e jdk7-b60
dbb955b1ee59b876dd1f133952b557b48b1d7732 jdk7-b61
6107cbff3130c747d243c25a7874cd59db5744a8 jdk7-b62
dfd8506f74c3731bb169ce93c72612d78ee0413b jdk7-b63

View File

@@ -24,3 +24,17 @@ e8a2a4d187773a62f3309b0fa265c13425bc2258 jdk7-b46
d7744e86dedc21a8ecf6bdb73eb191b8eaf5b0da jdk7-b47
4ae9f4bfdb98f65bd957e3fe72471b320150b38e jdk7-b48
aee93a8992d2389121eb610c00a86196f3e2b9b0 jdk7-b49
5111e13e44e542fe945b47ab154546daec36737d jdk7-b50
0f0189d55ce4a1f7840da7582ac7d970b3b7ab15 jdk7-b51
4264c2fe66493e57c411045a1b61377796641e45 jdk7-b52
c235f4a8559d196879c56af80159f67ee5d0e720 jdk7-b53
2ef382b1bbd58a68e668391c6145a4b2066c5b96 jdk7-b54
aea0ace7a1e43619800931d42bbf69c579361c2d jdk7-b55
ba12117a5e6c918578d6b2a8c693232a33289024 jdk7-b56
ffd09e767dfa6d21466183a400f72cf62d53297f jdk7-b57
59b497130f82ec809c245ffb5e521e3a5fabf8af jdk7-b58
030142474602b4a067662fffc0c8e541de5a78df jdk7-b59
39565502682c7085369bd09e51640919dc741097 jdk7-b60
472c21584cfd7e9c0229ad6a100366a5c03d2976 jdk7-b61
c7ed15ab92ce36a09d264a5e34025884b2d7607f jdk7-b62
57f7e028c7ad1806500ae89eb3f4cd9a51b10e18 jdk7-b63

View File

@@ -1,5 +1,5 @@
#
# Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1995-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -68,9 +68,11 @@
</li>
<li><a href="#zip">Zip and Unzip</a> </li>
<li><a href="#freetype">FreeType2 Fonts</a> </li>
<li><a href="#jibx">JIBX Libraries</a> </li>
<li>Linux and Solaris:
<ul>
<li><a href="#cups">CUPS Include files</a> </li>
<li><a href="#xrender">XRender Include files</a></li>
</ul>
</li>
<li>Linux only:
@@ -585,6 +587,11 @@
Install or upgrade the <a href="#freetype">FreeType development
package</a>.
</li>
<li>
Install the
<a href="#jibx">JIBX Libraries</a>, set
<tt><a href="#ALT_JIBX_LIBS_PATH">ALT_JIBX_LIBS_PATH</a></tt>.
</li>
<li>
Install
<a href="#ant">Ant</a>,
@@ -650,6 +657,14 @@
<a href="#cups">CUPS Include files</a>, set
<tt><a href="#ALT_CUPS_HEADERS_PATH">ALT_CUPS_HEADERS_PATH</a></tt>.
</li>
<li>
Install the <a href="#xrender">XRender Include files</a>.
</li>
<li>
Install the
<a href="#jibx">JIBX Libraries</a>, set
<tt><a href="#ALT_JIBX_LIBS_PATH">ALT_JIBX_LIBS_PATH</a></tt>.
</li>
<li>
Install
<a href="#ant">Ant</a>,
@@ -745,6 +760,11 @@
Install
<a href="#dxsdk">Microsoft DirectX SDK</a>.
</li>
<li>
Install the
<a href="#jibx">JIBX Libraries</a>, set
<tt><a href="#ALT_JIBX_LIBS_PATH">ALT_JIBX_LIBS_PATH</a></tt>.
</li>
<li>
Install
<a href="#ant">Ant</a>,
@@ -874,6 +894,27 @@
fine for most JDK developers.
</blockquote>
<!-- ------------------------------------------------------ -->
<h4><a name="jibx">JIBX</a></h4>
<blockquote>
JIBX libraries version 1.1.5 is required for building the OpenJDK.
Namely, the following JAR files from the JIBX distribution package
are required:
<ul>
<li>bcel.jar
<li>jibx-bind.jar
<li>jibx-run.jar
<li>xpp3.jar
</ul>
<p>
You can download the package from the
<a href="http://jibx.sourceforge.net" target="_blank">JIBX site</a>.
<p>
You will need to set the
<tt><a href="#ALT_JIBX_LIBS_PATH">ALT_JIBX_LIBS_PATH</a></tt>
environment variable to refer to place where the JAR files,
above, are located.
</blockquote>
<!-- ------------------------------------------------------ -->
<h4><a name="compilers">Compilers</a></h4>
<blockquote>
<strong><a name="gcc">Linux gcc/binutils</a></strong>
@@ -995,6 +1036,27 @@
CUPS Header files.
</blockquote>
<!-- ------------------------------------------------------ -->
<h4><a name="xrender">XRender Extension Headers (Solaris &amp; Linux)</a></h4>
<blockquote>
<p>
<strong>Solaris:</strong>
XRender header files are required for building the
OpenJDK on Solaris.
The XRender header file is included with the other X11 header files
in the package <strong>SFWxwinc</strong> on new enough versions of
Solaris and will be installed in
<tt>/usr/X11/include/X11/extensions/Xrender.h</tt>
</p><p>
<strong>Linux:</strong>
XRender header files are required for building the
OpenJDK on Linux.
The Linux header files are usually available from a "Xrender"
development package, it's recommended that you try and use
the package provided by the particular distribution of Linux that
you are using.
</p>
</blockquote>
<!-- ------------------------------------------------------ -->
<h4><a name="freetype">FreeType 2</a></h4>
<blockquote>
Version 2.3 or newer of FreeType is required for building the OpenJDK.
@@ -1425,6 +1487,12 @@
The default will refer to
<tt>jdk/src/share/lib/security/cacerts</tt>.
</dd>
<dt><tt><a name="ALT_JIBX_LIBS_PATH">ALT_JIBX_LIBS_PATH</a></tt></dt>
<dd>
The location of the <a href="#jibx">JIBX libraries</a> file.
The default value is
<tt>$(ALT_SLASH_JAVA)/devtools/share/jibx/lib</tt>.
</dd>
<dt><a name="ALT_CUPS_HEADERS_PATH"><tt>ALT_CUPS_HEADERS_PATH</tt></a> </dt>
<dd>
The location of the CUPS header files.

View File

@@ -24,3 +24,17 @@ ccd6a16502e0650d91d85c4b86be05cbcd461a87 jdk7-b42
167ad0164301f318b069a947e1c9c07ed667748a jdk7-b47
0be222241fd405e48915647facfaa176621b39b9 jdk7-b48
d70978bc64bc7a04be7797ab0dcd9b7b1b3a6bff jdk7-b49
0edbd0074b02b42b2b83cc47cb391d4869b7a8ec jdk7-b50
3eb8f1047a7402a9a79937d1c39560e931e91da2 jdk7-b51
bec82237d694f9802b820fa11bbb4f7fa9bf8e77 jdk7-b52
3c4d73194f6f89f040ae3b2d257335dfa8a1b2b5 jdk7-b53
8130ac858d6789d5853d23044ba4a992afda574a jdk7-b54
7a869f16ba83060c34b77620406cfa89d1cd7084 jdk7-b55
553a664b807bb3a3c93f3b5a3c20ff0a90e08371 jdk7-b56
972c6157fae57850694675da82fd58a17930db0a jdk7-b57
2e3b8edab3ef55406494d3dd562e06882e6fc15e jdk7-b58
7e6b2b55c00cc523b468272353ada3979adbbf16 jdk7-b59
f1e1cccbd13aa96d2d8bd872782ff764010bc22c jdk7-b60
e906b16a12a9a63b615898afa5d9673cbd1c5ab8 jdk7-b61
65b66117dbd70a493e9644aeb4033cf95a4e3c99 jdk7-b62
d20e45cd539f20405ff843652069cfd7550c5ab3 jdk7-b63

View File

@@ -106,14 +106,17 @@ endif
SOURCE_LEVEL = 5
BOOTSTRAP_TARGET_LEVEL = 5
TARGET_LEVEL = 6
ifdef TARGET_CLASS_VERSION
TARGET_LEVEL = $(TARGET_CLASS_VERSION)
else
TARGET_LEVEL = 6
endif
ifndef TARGET_JAVA
TARGET_JAVA = java
endif
NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
SELF = $(lastword $(MAKEFILE_LIST))
# for jdk, we generate the following:

View File

@@ -1,14 +0,0 @@
README:
This file should be located at the top of the corba Mercurial repository.
See http://openjdk.java.net/ for more information about the OpenJDK.
See ../README-builds.html for complete details on build machine requirements.
Simple Build Instructions:
cd make && gnumake
The files that will be imported into the jdk build will be in the "dist"
directory.

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -80,11 +80,11 @@ ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc
POA.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/POA.mc
UTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Util.mc
MC_GENERATE_CLASS = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-class
MC_GENERATE_LOG_RB = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-resource
MC_GENERATE_CLASS = make-class
MC_GENERATE_LOG_RB = make-resource
JSCHEME_GENERATE_CLASS = $(BOOT_JAVA_CMD) jscheme.REPL $(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) jscheme.REPL $(MC_GENERATE_LOG_RB)
JSCHEME_GENERATE_CLASS = $(BOOT_JAVA_CMD) com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_LOG_RB)
#

View File

@@ -1,5 +1,5 @@
#
# Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -365,10 +365,10 @@ ifndef COPYRIGHT_YEAR
COPYRIGHT_YEAR = 2007
endif
RC_FLAGS += -d "J2SE_BUILD_ID=$(FULL_VERSION)" \
-d "J2SE_COMPANY=$(COMPANY_NAME)" \
-d "J2SE_COMPONENT=$(PRODUCT_NAME) Platform SE binary" \
-d "J2SE_VER=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(J2SE_UPDATE_VER).$(COOKED_BUILD_NUMBER)" \
-d "J2SE_COPYRIGHT=Copyright \xA9 $(COPYRIGHT_YEAR)" \
-d "J2SE_NAME=$(PRODUCT_NAME) Platform SE $(JDK_MINOR_VERSION) $(J2SE_UPDATE_META_TAG)" \
-d "J2SE_FVER=$(JDK_VERSION)"
RC_FLAGS += -d "JDK_BUILD_ID=$(FULL_VERSION)" \
-d "JDK_COMPANY=$(COMPANY_NAME)" \
-d "JDK_COMPONENT=$(PRODUCT_NAME) Platform SE binary" \
-d "JDK_VER=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER)" \
-d "JDK_COPYRIGHT=Copyright \xA9 $(COPYRIGHT_YEAR)" \
-d "JDK_NAME=$(PRODUCT_NAME) Platform SE $(JDK_MINOR_VERSION) $(JDK_UPDATE_META_TAG)" \
-d "JDK_FVER=$(JDK_VERSION)"

View File

@@ -158,9 +158,9 @@ ifndef LOCAL_RESOURCE_FILE
endif
@$(ECHO) Created $@
RC_FLAGS += /D "J2SE_FNAME=$(LIBRARY).dll" \
/D "J2SE_INTERNAL_NAME=$(LIBRARY)" \
/D "J2SE_FTYPE=0x2L"
RC_FLAGS += /D "JDK_FNAME=$(LIBRARY).dll" \
/D "JDK_INTERNAL_NAME=$(LIBRARY)" \
/D "JDK_FTYPE=0x2L"
$(OBJDIR)/$(LIBRARY).res: $(VERSIONINFO_RESOURCE)
ifndef LOCAL_RESOURCE_FILE

View File

@@ -191,14 +191,18 @@ $(JAVA_SOURCE_LIST) : source_list_prime resources $(FILES_class)
# Make sure all newer sources are compiled (in a batch)
classes : $(CLASSES_INIT) .delete.classlist .compile.classlist
# Use this javac option to force it to favor the sourcepath file classes
# rather than any bootclasspath classes.
JAVAC_PREFER_SOURCE = -Xprefer:source
.compile.classlist : $(JAVA_SOURCE_LIST)
@$(MKDIR) -p $(CLASSDESTDIR)
@if [ `$(CAT) $(JAVA_SOURCE_LIST) | $(WC) -l` -ge 1 ] ; then \
$(ECHO) "# Java sources to be compiled: (listed in file $(JAVA_SOURCE_LIST))"; \
$(CAT) $(JAVA_SOURCE_LIST); \
$(ECHO) "# Running javac:"; \
$(ECHO) $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
$(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
$(ECHO) $(JAVAC_CMD) $(JAVAC_PREFER_SOURCE) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
$(JAVAC_CMD) $(JAVAC_PREFER_SOURCE) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
fi
@$(java-vm-cleanup)

View File

@@ -73,23 +73,18 @@ ifeq ($(PLATFORM), linux)
ifneq ("$(findstring sparc,$(ARCH))", "")
# sparc or sparcv9
REQUIRED_CC_VER = 4.0
REQUIRED_GCC_VER = 4.0.*
else
ifeq ($(ARCH_DATA_MODEL), 32)
# i586
REQUIRED_CC_VER = 3.2
REQUIRED_GCC_VER = 3.2.1*
REQUIRED_GCC_VER_INT = 3.2.1-7a
else
ifeq ($(ARCH), amd64)
# amd64
REQUIRED_CC_VER = 3.2
REQUIRED_GCC_VER = 3.2.*
endif
ifeq ($(ARCH), ia64)
# ia64
REQUIRED_CC_VER = 3.2
REQUIRED_GCC_VER = 2.9[56789].*
endif
endif
endif
@@ -109,13 +104,6 @@ ifeq ($(PLATFORM), solaris)
# Option used to create a shared library
SHARED_LIBRARY_FLAG = -G
# But gcc is still needed no matter what on 32bit
ifeq ($(ARCH_DATA_MODEL), 32)
REQUIRED_GCC_VER = 2.95
GCC =$(GCC_COMPILER_PATH)gcc
_GCC_VER :=$(shell $(GCC) -dumpversion 2>&1 )
GCC_VER :=$(call GetVersion,"$(_GCC_VER)")
endif
endif

View File

@@ -1,5 +1,5 @@
#
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -128,9 +128,19 @@ ifeq ($(PLATFORM), windows)
endif
endif
endif
# This will cause problems if ALT_COMPILER_PATH is defined to ""
# which is a directive to use the PATH.
REBASE = $(COMPILER_PATH)../REBASE
ifeq ($(CC_MAJORVER), 15)
# This should be: CC_VER=15.00.21022.8 LINK_VER=9.00.21022.8
REQUIRED_CC_VER = 15.00.21022.8
REQUIRED_LINK_VER = 9.00.21022.8
COMPILER_NAME=Windows SDK 6.1 Visual Studio 9
COMPILER_VERSION=VS2008
RC = $(MSSDK61)/bin/x64/rc
REBASE = $(MSSDK61/bin/x64/rebase
else
# This will cause problems if ALT_COMPILER_PATH is defined to ""
# which is a directive to use the PATH.
REBASE = $(COMPILER_PATH)../REBASE
endif
ifndef COMPILER_PATH
COMPILER_PATH := $(error COMPILER_PATH cannot be empty here)
endif

View File

@@ -1,5 +1,5 @@
#
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -39,13 +39,6 @@ ifeq ($(PLATFORM), solaris)
LINT = $(COMPILER_PATH)lint
# Option used to create a shared library
SHARED_LIBRARY_FLAG = -G
# But gcc is still needed no matter what on 32bit
ifeq ($(ARCH_DATA_MODEL), 32)
REQUIRED_GCC_VER = 2.95
GCC =$(GCC_COMPILER_PATH)gcc
_GCC_VER :=$(shell $(GCC) -dumpversion 2>&1 )
GCC_VER :=$(call GetVersion,"$(_GCC_VER)")
endif
endif
# Sun Studio Compiler settings specific to Linux

View File

@@ -104,6 +104,9 @@ ifeq ($(COMPILER_WARNINGS_FATAL), true)
JAVACFLAGS += -Werror
endif
NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
JAVACFLAGS += $(NO_PROPRIETARY_API_WARNINGS)
# Add the source level (currently all source is 1.5, should this be 1.6?)
LANGUAGE_VERSION = -source 1.5
JAVACFLAGS += $(LANGUAGE_VERSION)
@@ -117,7 +120,7 @@ JAVACFLAGS += -classpath $(BOOTDIR)/lib/tools.jar
JAVACFLAGS += $(OTHER_JAVACFLAGS)
# Needed for javah
JAVAHFLAGS += -bootclasspath $(CLASSBINDIR)
JAVAHFLAGS += -classpath $(CLASSBINDIR)
# Langtools
ifdef LANGTOOLS_DIST

View File

@@ -1,5 +1,5 @@
#
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -282,13 +282,27 @@ endif
# Compilers for 64bit are from SDK
ifeq ($(ARCH_DATA_MODEL), 64)
ifneq ($(_ms_sdk),)
xMSSDK61 :="C:/Program Files/Microsoft SDKs/Windows/v6.1/"
MSSDK61 :=$(call FullPath,$(xMSSDK61))
xVS2008 :="C:/Program Files (x86)/Microsoft Visual Studio 9.0/"
_vs2008 :=$(call FullPath,$(xVS2008))
ifneq ($(_vs2008),)
ifeq ($(ARCH), ia64)
_compiler_bin :=$(_ms_sdk)/Bin/Win64
_compiler_bin :=$(_vs2008)/VC/Bin/x86_ia64
endif
ifeq ($(ARCH), amd64)
_compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
_redist_sdk :=$(_ms_sdk)/redist/win64/AMD64
_compiler_bin :=$(_vs2008)/VC/Bin/$(ARCH)
_redist_sdk :=$(MSSDK61)/VC/redist
endif
else
ifneq ($(_ms_sdk),)
ifeq ($(ARCH), ia64)
_compiler_bin :=$(_ms_sdk)/Bin/Win64
endif
ifeq ($(ARCH), amd64)
_compiler_bin :=$(_ms_sdk)/Bin/Win64/x86/$(ARCH)
_redist_sdk :=$(_ms_sdk)/redist/win64/AMD64
endif
endif
endif
endif

View File

@@ -1,5 +1,5 @@
#
# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -288,11 +288,22 @@ ifeq ($(PLATFORM), windows)
TEMP_DISK=C:/temp
# GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always
# return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead.
PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
PROC_ARCH:=$(subst x86,X86,$(PROC_ARCH))
PROC_ARCH:=$(subst x64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst intel64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst Intel64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst INTEL64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst em64t,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst EM64T,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst amd64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst AMD64,X64,$(PROC_ARCH))
PROC_ARCH:=$(subst ia64,IA64,$(PROC_ARCH))
ifndef ARCH_DATA_MODEL
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
ifeq ($(PROC_ARCH),IA64)
ARCH_DATA_MODEL=64
else
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
ifeq ($(PROC_ARCH),X64)
ARCH_DATA_MODEL=64
else
ARCH_DATA_MODEL=32
@@ -313,10 +324,12 @@ ifeq ($(PLATFORM), windows)
# + set ARCH to ia64 or amd64, or
REQUIRED_WINDOWS_NAME=Windows Server 2003
REQUIRED_WINDOWS_VERSION=5 2 Service Pack 1
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)), AMD64)
ifeq ($(PROC_ARCH),X64)
ARCH=amd64
else
ARCH=ia64
ifeq ($(PROC_ARCH),IA64)
ARCH=ia64
endif
endif
LIBARCH=$(ARCH)
# Value of Java os.arch property

View File

@@ -1,5 +1,5 @@
#
# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -1,330 +0,0 @@
#!echo "This is not a shell script"
#############################################################################
#
# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#############################################################################
#
# JPRT shell configuration for building.
#
# Input environment variables:
# ALT_BOOTDIR
# ALT_SLASH_JAVA
# ALT_JDK_IMPORT_PATH
# Windows Only:
# PATH
# VS71COMNTOOLS
# PROCESSOR_IDENTIFIER
# ROOTDIR
#
# Output variable settings:
# make Full path to GNU make
# compiler_path Path to compiler bin directory
# compiler_name Unique name of this compiler
#
# Output environment variables:
# PATH
# ALT_COMPILER_PATH
# Windows Only:
# ALT_MSDEVTOOLS_PATH
# ALT_DEVTOOLS_PATH (To avoid the C:/UTILS default)
# LIB
# INCLUDE
#
# After JDK6, most settings will be found via ALT_SLASH_JAVA or
# by way of other system environment variables. If this was JDK5
# or an older JDK, you might need to export more ALT_* variables.
#
# On Windows AMD64, if MSSDK is not set, assumes Platform SDK is installed at:
# C:/Program Files/Microsoft Platform SDK
#
#############################################################################
#############################################################################
# Error
error() # message
{
echo "ERROR: $1"
exit 6
}
# Directory must exist
dirMustExist() # dir name
{
if [ ! -d "$1" ] ; then
error "Directory for $2 does not exist: $1"
fi
}
# File must exist
fileMustExist() # dir name
{
if [ ! -f "$1" ] ; then
error "File for $2 does not exist: $1"
fi
}
#############################################################################
# Should be set by JPRT as the 3 basic inputs
bootdir="${ALT_BOOTDIR}"
slashjava="${ALT_SLASH_JAVA}"
jdk_import="${ALT_JDK_IMPORT_PATH}"
# The /java/devtools items
jdk_devtools="${slashjava}/devtools"
share="${jdk_devtools}/share"
# The 3 bin directories in common to all platforms
sharebin="${share}/bin"
# Check input
dirMustExist "${bootdir}" ALT_BOOTDIR
dirMustExist "${slashjava}" ALT_SLASH_JAVA
dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
osname=`uname -s`
if [ "${osname}" = SunOS ] ; then
# SOLARIS: Sparc or X86
osarch=`uname -p`
if [ "${osarch}" = sparc ] ; then
solaris_arch=sparc
else
solaris_arch=i386
fi
# Get the compilers into path (make sure it matches ALT setting)
if [ "${JPRT_SOLARIS_COMPILER_NAME}" != "" ] ; then
compiler_name=${JPRT_SOLARIS_COMPILER_NAME}
else
compiler_name=SS12
fi
compiler_path=${jdk_devtools}/${solaris_arch}/SUNWspro/${compiler_name}/bin
ALT_COMPILER_PATH="${compiler_path}"
export ALT_COMPILER_PATH
dirMustExist "${compiler_path}" ALT_COMPILER_PATH
path4sdk=${compiler_path}:${sharebin}
# Add basic solaris system paths
path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
# Get the previous JDK to be used to bootstrap the build
path4sdk=${bootdir}/bin:${path4sdk}
# Find GNU make
make=/usr/sfw/bin/gmake
if [ ! -f ${make} ] ; then
make=/opt/sfw/bin/gmake
if [ ! -f ${make} ] ; then
make=${jdk_devtools}/${solaris_arch}/bin/gnumake
fi
fi
fileMustExist "${make}" make
# File creation mask
umask 002
elif [ "${osname}" = Linux ] ; then
# LINUX: X86, AMD64
osarch=`uname -m`
if [ "${osarch}" = i686 ] ; then
linux_arch=i586
elif [ "${osarch}" = x86_64 ] ; then
linux_arch=amd64
fi
# Get the compilers into path (make sure it matches ALT setting)
compiler_path=/usr/bin
compiler_name=usr_bin
ALT_COMPILER_PATH="${compiler_path}"
export ALT_COMPILER_PATH
dirMustExist "${compiler_path}" ALT_COMPILER_PATH
path4sdk=${compiler_path}:${sharebin}
# Add basic paths
path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin
# Get the previous JDK to be used to bootstrap the build
path4sdk=${bootdir}/bin:${path4sdk}
# Find GNU make
make=/usr/bin/make
fileMustExist "${make}" make
umask 002
else
# Windows: Differs on CYGWIN vs. MKS, and the compiler available.
# Also, blanks in pathnames gives GNU make headaches, so anything placed
# in any ALT_* variable should be the short windows dosname.
# WINDOWS: Install and use MKS or CYGWIN (should have already been done)
# Assumption here is that you are in a shell window via MKS or cygwin.
# MKS install should have defined the environment variable ROOTDIR.
# We also need to figure out which one we have: X86, AMD64
if [ "`echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64`" != "" ] ; then
windows_arch=amd64
else
windows_arch=i586
fi
# We need to determine if we are running a CYGWIN shell or an MKS shell
# (if uname isn't available, then it will be unix_toolset=unknown)
unix_toolset=unknown
if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
# We kind of assume ROOTDIR is where MKS is and it's ok
unix_toolset=MKS
mkshome=`dosname -s "${ROOTDIR}"`
# Utility to convert to short pathnames without spaces
dosname="${mkshome}/mksnt/dosname -s"
# Most unix utilities are in the mksnt directory of ROOTDIR
unixcommand_path="${mkshome}/mksnt"
path4sdk="${sharebin};${unixcommand_path}"
dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
devtools_path="${jdk_devtools}/win32/bin"
path4sdk="${devtools_path};${path4sdk}"
# Normally this need not be set, but on Windows it's default is C:/UTILS
ALT_DEVTOOLS_PATH="${devtools_path}"
export ALT_DEVTOOLS_PATH
dirMustExist "${devtools_path}" ALT_DEVTOOLS_PATH
# Find GNU make
make="${devtools_path}/gnumake.exe"
fileMustExist "${make}" make
elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
# For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
unix_toolset=CYGWIN
# Utility to convert to short pathnames without spaces
dosname="/usr/bin/cygpath -a -m -s"
# Most unix utilities are in the /usr/bin
unixcommand_path="/usr/bin"
path4sdk="${sharebin};${unixcommand_path}"
dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
# Find GNU make
make="${unixcommand_path}/make.exe"
fileMustExist "${make}" make
else
echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
fi
# WINDOWS: Compiler setup (nasty part)
# NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
# NOTE: CYGWIN has a link.exe too, make sure the compilers are first
if [ "${windows_arch}" = i586 ] ; then
# 32bit Windows compiler settings
# VisualStudio .NET 2003 VC++ 7.1 (VS71COMNTOOLS should be defined)
vs_root=`${dosname} "${VS71COMNTOOLS}/../.."`
# Fill in PATH, LIB, and INCLUDE (unset all others to make sure)
msdev_root="${vs_root}/Common7/Tools"
msdevtools_path="${msdev_root}/bin"
vc7_root="${vs_root}/Vc7"
compiler_path="${vc7_root}/bin"
compiler_name=VS2003
platform_sdk="${vc7_root}/PlatformSDK"
# LIB and INCLUDE must use ; as a separator
include4sdk="${vc7_root}/atlmfc/include"
include4sdk="${include4sdk};${vc7_root}/include"
include4sdk="${include4sdk};${platform_sdk}/include/prerelease"
include4sdk="${include4sdk};${platform_sdk}/include"
include4sdk="${include4sdk};${vs_root}/SDK/v1.1/include"
lib4sdk="${vc7_root}/atlmfc/lib"
lib4sdk="${lib4sdk};${vc7_root}/lib"
lib4sdk="${lib4sdk};${platform_sdk}/lib/prerelease"
lib4sdk="${lib4sdk};${platform_sdk}/lib"
lib4sdk="${lib4sdk};${vs_root}/SDK/v1.1/lib"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk="${vs_root}/Common7/Tools/bin;${path4sdk}"
path4sdk="${vs_root}/SDK/v1.1/bin;${path4sdk}"
path4sdk="${vs_root}/Common7/Tools;${path4sdk}"
path4sdk="${vs_root}/Common7/Tools/bin/prerelease;${path4sdk}"
path4sdk="${vs_root}/Common7/IDE;${path4sdk}"
path4sdk="${compiler_path};${path4sdk}"
elif [ "${windows_arch}" = amd64 ] ; then
# AMD64 64bit Windows compiler settings
if [ "${MSSDK}" != "" ] ; then
platform_sdk="${MSSDK}"
else
platform_sdk=`${dosname} "C:/Program Files/Microsoft Platform SDK/"`
fi
compiler_path="${platform_sdk}/Bin/win64/x86/AMD64"
compiler_name=VS2005_PSDK
msdevtools_path="${platform_sdk}/Bin"
# LIB and INCLUDE must use ; as a separator
include4sdk="${platform_sdk}/Include"
include4sdk="${include4sdk};${platform_sdk}/Include/crt/sys"
include4sdk="${include4sdk};${platform_sdk}/Include/mfc"
include4sdk="${include4sdk};${platform_sdk}/Include/atl"
include4sdk="${include4sdk};${platform_sdk}/Include/crt"
lib4sdk="${platform_sdk}/Lib/AMD64"
lib4sdk="${lib4sdk};${platform_sdk}/Lib/AMD64/atlmfc"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk="${platform_sdk}/bin;${path4sdk}"
path4sdk="${compiler_path};${path4sdk}"
fi
# Export LIB and INCLUDE
unset lib
unset Lib
LIB="${lib4sdk}"
export LIB
unset include
unset Include
INCLUDE="${include4sdk}"
export INCLUDE
# Set the ALT variable
ALT_COMPILER_PATH=`${dosname} "${compiler_path}"`
export ALT_COMPILER_PATH
dirMustExist "${compiler_path}" ALT_COMPILER_PATH
ALT_MSDEVTOOLS_PATH=`${dosname} "${msdevtools_path}"`
export ALT_MSDEVTOOLS_PATH
dirMustExist "${msdevtools_path}" ALT_MSDEVTOOLS_PATH
# WINDOWS: Get the previous JDK to be used to bootstrap the build
path4sdk="${bootdir}/bin;${path4sdk}"
# Turn all \\ into /, remove duplicates and trailing /
slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
# For windows, it's hard to know where the system is, so we just add this
# to PATH.
path4sdk="${slash_path};${PATH}"
# Convert path4sdk to cygwin style
if [ "${unix_toolset}" = CYGWIN ] ; then
path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
fi
fi
# Export PATH setting
PATH="${path4sdk}"
export PATH
# Things we need to unset
unset LD_LIBRARY_PATH
unset LD_LIBRARY_PATH_32
unset LD_LIBRARY_PATH_64
unset JAVA_HOME

View File

@@ -32,8 +32,8 @@ solaris_sparc_5.10,\
solaris_sparcv9_5.10,\
solaris_i586_5.10,\
solaris_x64_5.10,\
linux_i586,\
linux_x64,\
linux_i586_2.6,\
linux_x64_2.6,\
windows_i586,\
windows_x64

View File

@@ -1,5 +1,5 @@
#
# Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it

View File

@@ -32,6 +32,12 @@ PACKAGE = com.sun.tools.corba.se.idl
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
# This program must contain a manifest that defines the execution level
# needed to follow standard Vista User Access Control Guidelines
# This must be set before Program.gmk is included
#
BUILD_MANIFEST=true
#
# Files
#

View File

@@ -1,5 +1,5 @@
#
# Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -75,15 +75,14 @@ ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc
POA.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/POA.mc
UTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Util.mc
MC_GENERATE_CLASS = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-class
MC_GENERATE_LOG_RB = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-resource
MC_GENERATE_CLASS = make-class
MC_GENERATE_LOG_RB = make-resource
JSCHEME_LIB_DIRECTORY=$(SRC_DIR)/com/sun/tools/corba/se/logutil/lib
JSCHEME_CLASSPATH=$(JSCHEME_LIB_DIRECTORY)/jscheme.jar$(CLASSPATH_SEPARATOR)$(JSCHEME_LIB_DIRECTORY)/jschemelogutil.jar
JSCHEME_GENERATE_CLASS = $(BOOT_JAVA_CMD) \
-cp "$(JSCHEME_CLASSPATH)" jscheme.REPL $(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) \
-cp "$(JSCHEME_CLASSPATH)" jscheme.REPL $(MC_GENERATE_LOG_RB)
MC_CLASSPATH=$(BUILDTOOLJARDIR)/MC.jar
MCJ_GENERATE_CLASS = $(BOOT_JAVA_CMD) \
-cp "$(MC_CLASSPATH)" com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_CLASS)
MCJ_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) \
-cp "$(MC_CLASSPATH)" com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_LOG_RB)
#
@@ -104,28 +103,28 @@ $(LOG_GENDIRECTORY):
$(MKDIR) -p $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ActivationSystemException.java : $(ACTIVATION.MC)
$(JSCHEME_GENERATE_CLASS) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/IORSystemException.java : $(IOR.MC)
$(JSCHEME_GENERATE_CLASS) $(IOR.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(IOR.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java : $(INTERCEPTORS.MC)
$(JSCHEME_GENERATE_CLASS) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/NamingSystemException.java : $(NAMING.MC)
$(JSCHEME_GENERATE_CLASS) $(NAMING.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(NAMING.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/OMGSystemException.java : $(OMG.MC)
$(JSCHEME_GENERATE_CLASS) $(OMG.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(OMG.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java : $(ORBUTIL.MC)
$(JSCHEME_GENERATE_CLASS) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/POASystemException.java : $(POA.MC)
$(JSCHEME_GENERATE_CLASS) $(POA.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(POA.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/UtilSystemException.java : $(UTIL.MC)
$(JSCHEME_GENERATE_CLASS) $(UTIL.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_CLASS) $(UTIL.MC) $(LOG_GENDIRECTORY)
logresource.generate: $(LOG_GENDIRECTORY)/LogStrings.properties
@@ -142,28 +141,28 @@ $(LOG_GENDIRECTORY)/LogStrings.properties: \
$(CAT) $(LOG_GENDIRECTORY)/*.resource > $(LOG_GENDIRECTORY)/LogStrings.properties
$(LOG_GENDIRECTORY)/ActivationSystemException.resource : $(ACTIVATION.MC)
$(JSCHEME_GENERATE_LOG_RB) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/IORSystemException.resource : $(IOR.MC)
$(JSCHEME_GENERATE_LOG_RB) $(IOR.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(IOR.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource : $(INTERCEPTORS.MC)
$(JSCHEME_GENERATE_LOG_RB) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/NamingSystemException.resource : $(NAMING.MC)
$(JSCHEME_GENERATE_LOG_RB) $(NAMING.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(NAMING.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/OMGSystemException.resource : $(OMG.MC)
$(JSCHEME_GENERATE_LOG_RB) $(OMG.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(OMG.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource : $(ORBUTIL.MC)
$(JSCHEME_GENERATE_LOG_RB) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/POASystemException.resource : $(POA.MC)
$(JSCHEME_GENERATE_LOG_RB) $(POA.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(POA.MC) $(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/UtilSystemException.resource : $(UTIL.MC)
$(JSCHEME_GENERATE_LOG_RB) $(UTIL.MC) $(LOG_GENDIRECTORY)
$(MCJ_GENERATE_LOG_RB) $(UTIL.MC) $(LOG_GENDIRECTORY)
#

View File

@@ -1,5 +1,5 @@
#
# Copyright 1998-2005 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@ include $(BUILDDIR)/common/Defs.gmk
SUBDIRS = \
strip_properties \
idlj \
logutil \
all build clean clobber::
$(SUBDIRS-loop)

View File

@@ -0,0 +1,43 @@
#
# Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# Makefile for building the idlj tool
#
BUILDDIR = ../..
PACKAGE = com.sun.tools.corba.se.logutil
PRODUCT = tools
PROGRAM = MC
include $(BUILDDIR)/common/Defs.gmk
BUILDTOOL_SOURCE_ROOT = $(SHARE_SRC)/classes
BUILDTOOL_MAIN = $(PKGDIR)/MC.java
#
# Build tool jar rules.
#
include $(BUILDDIR)/common/BuildToolJar.gmk

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2003 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@ public class BufferManagerReadStream
// We should convert endOfStream to a final static dummy end node
private boolean endOfStream = true;
private BufferQueue fragmentQueue = new BufferQueue();
private long FRAGMENT_TIMEOUT = 60000;
// REVISIT - This should go in BufferManagerRead. But, since
// BufferManagerRead is an interface. BufferManagerRead
@@ -111,9 +112,16 @@ public class BufferManagerReadStream
throw wrapper.endOfStream() ;
}
boolean interrupted = false;
try {
fragmentQueue.wait();
} catch (InterruptedException e) {}
fragmentQueue.wait(FRAGMENT_TIMEOUT);
} catch (InterruptedException e) {
interrupted = true;
}
if (!interrupted && fragmentQueue.size() == 0) {
throw wrapper.bufferReadManagerTimeout();
}
if (receivedCancel) {
throw new RequestCanceledException(cancelReqId);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -153,22 +153,22 @@ public class ObjectStreamClass implements java.io.Serializable {
desc = new ObjectStreamClass(cl, superdesc,
serializable, externalizable);
}
// Must always call init. See bug 4488137. This code was
// incorrectly changed to return immediately on a non-null
// cache result. That allowed threads to gain access to
// unintialized instances.
//
// History: Note, the following init() call was originally within
// the synchronization block, as it currently is now. Later, the
// init() call was moved outside the synchronization block, and
// the init() method used a private member variable lock, to
// avoid performance problems. See bug 4165204. But that lead to
// a deadlock situation, see bug 5104239. Hence, the init() method
// has now been moved back into the synchronization block. The
// right approach to solving these problems would be to rewrite
// this class, based on the latest java.io.ObjectStreamClass.
desc.init();
}
// Must always call init. See bug 4488137. This code was
// incorrectly changed to return immediately on a non-null
// cache result. That allowed threads to gain access to
// unintialized instances.
//
// All threads must sync on the member variable lock
// and check the initialization state.
//
// Another possibility is to continue to synchronize on the
// descriptorFor array, but that leads to poor performance
// (see bug 4165204 "ObjectStreamClass can hold global lock
// for a very long time").
desc.init();
return desc;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -76,6 +76,7 @@ public class POAFactory implements ObjectAdapterFactory
private ORB orb ;
private POASystemException wrapper ;
private OMGSystemException omgWrapper ;
private boolean isShuttingDown = false;
public POASystemException getWrapper()
{
@@ -166,6 +167,7 @@ public class POAFactory implements ObjectAdapterFactory
// pm.deactivate removes itself from poaManagers!
Iterator managers = null ;
synchronized (this) {
isShuttingDown = true ;
managers = (new HashSet(poaManagers)).iterator();
}
@@ -208,9 +210,15 @@ public class POAFactory implements ObjectAdapterFactory
ClosureFactory.makeFuture( rpClosure ) ) ;
}
public synchronized POA getRootPOA()
{
if (rootPOA == null) {
// See if we are trying to getRootPOA while shutting down the ORB.
if (isShuttingDown) {
throw omgWrapper.noObjectAdaptor( ) ;
}
try {
Object obj = orb.resolve_initial_references(
ORBConstants.ROOT_POA_NAME ) ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2006 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -185,7 +185,6 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
private java.lang.Object runObj = new java.lang.Object();
private java.lang.Object shutdownObj = new java.lang.Object();
private java.lang.Object waitForCompletionObj = new java.lang.Object();
private static final byte STATUS_OPERATING = 1;
private static final byte STATUS_SHUTTING_DOWN = 2;
private static final byte STATUS_SHUTDOWN = 3;
@@ -194,7 +193,6 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
// XXX Should we move invocation tracking to the first level server dispatcher?
private java.lang.Object invocationObj = new java.lang.Object();
private int numInvocations = 0;
// thread local variable to store a boolean to detect deadlock in
// ORB.shutdown(true).
@@ -1245,37 +1243,48 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
public void shutdown(boolean wait_for_completion)
{
synchronized (this) {
checkShutdownState();
// to wait for completion, we would deadlock, so throw a standard
// OMG exception.
if (wait_for_completion && ((Boolean)isProcessingInvocation.get()).booleanValue()) {
throw omgWrapper.shutdownWaitForCompletionDeadlock() ;
}
// Avoid more than one thread performing shutdown at a time.
synchronized (shutdownObj) {
checkShutdownState();
// This is to avoid deadlock
if (wait_for_completion &&
isProcessingInvocation.get() == Boolean.TRUE) {
throw omgWrapper.shutdownWaitForCompletionDeadlock() ;
}
boolean doShutdown = false ;
status = STATUS_SHUTTING_DOWN;
// XXX access to requestDispatcherRegistry should be protected
// by the ORBImpl instance monitor, but is not here in the
// shutdownServants call.
shutdownServants(wait_for_completion);
if (wait_for_completion) {
synchronized ( waitForCompletionObj ) {
while (numInvocations > 0) {
try {
waitForCompletionObj.wait();
} catch (InterruptedException ex) {}
}
synchronized (this) {
checkShutdownState() ;
if (status == STATUS_SHUTTING_DOWN) {
if (!wait_for_completion)
// If we are already shutting down and don't want
// to wait, nothing to do: return.
return ;
} else {
// The ORB status was STATUS_OPERATING, so start the shutdown.
status = STATUS_SHUTTING_DOWN ;
doShutdown = true ;
}
}
// At this point, status is SHUTTING_DOWN.
// All shutdown calls with wait_for_completion == true must synchronize
// here. Only the first call will be made with doShutdown == true.
synchronized (shutdownObj) {
if (doShutdown) {
// shutdownServants will set all POAManagers into the
// INACTIVE state, causing request to be rejected.
// If wait_for_completion is true, this will not return until
// all invocations have completed.
shutdownServants(wait_for_completion);
synchronized (runObj) {
runObj.notifyAll();
}
synchronized (this) {
status = STATUS_SHUTDOWN;
}
}
synchronized ( runObj ) {
runObj.notifyAll();
}
status = STATUS_SHUTDOWN;
}
}
@@ -1314,23 +1323,13 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
{
synchronized (invocationObj) {
isProcessingInvocation.set(Boolean.TRUE);
numInvocations++;
}
}
public void finishedDispatch()
{
synchronized (invocationObj) {
numInvocations--;
isProcessingInvocation.set(Boolean.FALSE);
if (numInvocations == 0) {
synchronized (waitForCompletionObj) {
waitForCompletionObj.notifyAll();
}
} else if (numInvocations < 0) {
throw wrapper.numInvocationsAlreadyZero(
CompletionStatus.COMPLETED_YES ) ;
}
}
}
@@ -1341,12 +1340,24 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
*/
public synchronized void destroy()
{
if (status == STATUS_OPERATING) {
boolean shutdownFirst = false ;
synchronized (this) {
shutdownFirst = (status == STATUS_OPERATING) ;
}
if (shutdownFirst) {
shutdown(true);
}
getCorbaTransportManager().close();
getPIHandler().destroyInterceptors() ;
status = STATUS_DESTROYED;
synchronized (this) {
if (status < STATUS_DESTROYED) {
getCorbaTransportManager().close();
getPIHandler().destroyInterceptors() ;
status = STATUS_DESTROYED;
}
}
}
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -135,7 +135,7 @@ import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo;
public class ORBSingleton extends ORB
{
// This is used to support read_Object.
private static ORB fullORB;
private ORB fullORB;
private static PresentationManager.StubFactoryFactory staticStubFactoryFactory =
PresentationDefaults.getStaticStubFactoryFactory() ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -806,25 +806,6 @@ public final class ORBUtility {
return result ;
}
public static void setDaemon(Thread thread)
{
// Catch exceptions since setDaemon can cause a
// security exception to be thrown under netscape
// in the Applet mode
final Thread finalThread = thread;
try {
AccessController.doPrivileged(new PrivilegedAction() {
public java.lang.Object run() {
finalThread.setDaemon(true);
return null;
}
});
} catch (Exception e) {
// REVISIT: Object to get static method. Ignore it.
dprint(new Object(), "setDaemon: Exception: " + e);
}
}
public static String operationNameAndRequestId(CorbaMessageMediator m)
{
return "op/" + m.getOperationName() + " id/" + m.getRequestId();

View File

@@ -202,6 +202,10 @@ public class IDLNameTranslatorImpl implements IDLNameTranslator {
private IDLNameTranslatorImpl(Class[] interfaces)
{
SecurityManager s = System.getSecurityManager();
if (s != null) {
s.checkPermission(new DynamicAccessPermission("access"));
}
try {
IDLTypesUtil idlTypesUtil = new IDLTypesUtil();
for (int ctr=0; ctr<interfaces.length; ctr++)

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1998-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -53,7 +53,8 @@ import com.sun.corba.se.spi.orb.ORB;
import com.sun.corba.se.spi.resolver.Resolver;
import com.sun.corba.se.impl.encoding.EncapsInputStream;
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
import com.sun.corba.se.impl.logging.ORBUtilSystemException;
import com.sun.corba.se.impl.logging.OMGSystemException;
import com.sun.corba.se.impl.naming.namingutil.INSURLHandler;
import com.sun.corba.se.impl.naming.namingutil.IIOPEndpointInfo;
import com.sun.corba.se.impl.naming.namingutil.INSURL;
@@ -76,6 +77,7 @@ public class INSURLOperationImpl implements Operation
{
ORB orb;
ORBUtilSystemException wrapper ;
OMGSystemException omgWrapper ;
Resolver bootstrapResolver ;
// Root Naming Context for default resolution of names.
@@ -90,6 +92,8 @@ public class INSURLOperationImpl implements Operation
this.orb = orb ;
wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.ORB_RESOLVER ) ;
omgWrapper = OMGSystemException.get( orb,
CORBALogDomains.ORB_RESOLVER ) ;
this.bootstrapResolver = bootstrapResolver ;
}
@@ -126,6 +130,8 @@ public class INSURLOperationImpl implements Operation
return getIORFromString( str ) ;
else {
INSURL insURL = insURLHandler.parseURL( str ) ;
if (insURL == null)
throw omgWrapper.soBadSchemeName() ;
return resolveINSURL( insURL ) ;
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1057,7 +1057,9 @@ public class SocketOrChannelConnectionImpl
// IIOPOutputStream will cleanup the connection info when it
// sees this exception.
throw wrapper.writeErrorSend(e1) ;
SystemException exc = wrapper.writeErrorSend(e1);
purgeCalls(exc, false, true);
throw exc;
}
}

View File

@@ -1,6 +1,6 @@
;
; Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
; Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
; DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
;
; This code is free software; you can redistribute it and/or modify it
@@ -144,6 +144,8 @@
15 WARNING "Read of full message failed : bytes requested = {0} bytes read = {1} max wait time = {2} total time spent waiting = {3}")
(CREATE_LISTENER_FAILED
16 SEVERE "Unable to create listener thread on the specified port: {0}")
(BUFFER_READ_MANAGER_TIMEOUT
17 WARNING "Timeout while reading data in buffer manager")
)
(DATA_CONVERSION
(BAD_STRINGIFIED_IOR_LEN 1 WARNING "A character did not map to the transmission code set")

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1999-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -2086,8 +2086,8 @@ class Parser
if (token.type == Token.LeftBrace) {
repIDStack.push(((IDLID)repIDStack.peek ()).clone ()) ;
((IDLID)repIDStack.peek ()).appendToName (name);
structEntry = makeStructEntry( name, entry, false ) ;
((IDLID)repIDStack.peek ()).appendToName (name);
prep.openScope (structEntry);
match (Token.LeftBrace) ;
member (structEntry) ;
@@ -2174,8 +2174,8 @@ class Parser
if (token.type == Token.Switch) {
repIDStack.push (((IDLID)repIDStack.peek ()).clone ());
((IDLID)repIDStack.peek ()).appendToName (name);
unionEntry = makeUnionEntry( name, entry, false ) ;
((IDLID)repIDStack.peek ()).appendToName (name);
match (Token.Switch);
match (Token.LeftParen);
unionEntry.type (switchTypeSpec (unionEntry));
@@ -2641,8 +2641,8 @@ class Parser
private void exceptDcl (SymtabEntry entry) throws IOException, ParseException
{
match (Token.Exception);
ExceptionEntry exceptEntry = stFactory.exceptionEntry (entry, (IDLID)repIDStack.peek ());
repIDStack.push (((IDLID)repIDStack.peek ()).clone ());
ExceptionEntry exceptEntry = stFactory.exceptionEntry (entry, (IDLID)repIDStack.peek ());
((IDLID)repIDStack.peek ()).appendToName (token.name);
exceptEntry.sourceFile (scanner.fileEntry ());
// Comment must immediately precede "exception" keyword

View File

@@ -1,11 +1,35 @@
/*
* Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* COMPONENT_NAME: idl.parser
*
*
* ORIGINS: 27
*
* THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
* 5639-D57, (C) COPYRIGHT International Business Machines Corp., 1997, 1998
*
*
*/
CORBA IDL

View File

@@ -1,11 +1,35 @@
/*
* Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* COMPONENT_NAME: idl.parser
*
*
* ORIGINS: 27
*
* THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
* 5639-D57, (C) COPYRIGHT International Business Machines Corp., 1997, 1998
*
*
*/
CORBA IDL

View File

@@ -1,14 +1,38 @@
/*
* COMPONENT_NAME: idl.parser
*
* ORIGINS: 27
* Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
* 5639-D57, (C) COPYRIGHT International Business Machines Corp., 1997, 1998
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
CORBA 2.3 IDL
/*
* COMPONENT_NAME: idl.parser
*
* ORIGINS: 27
*
* 5639-D57, (C) COPYRIGHT International Business Machines Corp., 1997, 1998
*
*/
CORBA 2.3 IDL
---------------
(1) <specification> <definition><specification'>
@@ -83,7 +107,7 @@ CORBA 2.3 IDL
(16) <vad> e
<export> <vad>
(17) <value_dcl> <value_header> "{" <value_element> <ve> "}"
(17) <ve> e
@@ -91,9 +115,9 @@ CORBA 2.3 IDL
(18) <value_header> "custom" "valuetype" <id> <value_inheritance_spec>
"valuetype" <id> <value_inheritance_spec>
"custom" "valuetype" <id>
"valuetype" <id>
"custom" "valuetype" <id>
"valuetype" <id>
(19) <value_inheritance_spec> <opt_inherits> <opt_supports>
(19) <opt_inherits> e
@@ -107,7 +131,7 @@ CORBA 2.3 IDL
"supports" <interface_name> <interface_name_list>
(19) <interface_name_list> e
"," <interface_name> <interface_name_list>
"," <interface_name> <interface_name_list>
(20) <value_name> <scoped_name>
@@ -121,7 +145,7 @@ CORBA 2.3 IDL
(23) <init_dcl> "factory" <id> "(" ")"
"factory" <id> "(" <init_param_dcls> ")"
(24) <init_param_dcls> <init_param_decl>
(24) <init_param_dcls> <init_param_decl>
<init_param_decl> "," <init_param_dcls>
(25) <init_param_dcl> <init_param_attribute> <param_type_spec> <simple_declarator>
@@ -349,7 +373,7 @@ CORBA 2.3 IDL
(87) <op_dcl''> e
<context_expr>
<raises_expr>
<raises_expr>
<raises_expr> <context_expr>
(88) <op_attribute> "oneway"
@@ -386,7 +410,7 @@ CORBA 2.3 IDL
<wide_string_type>
<scoped_name>
(96) <fixed_pt_type> "fixed" "<" <positive_int_const> "," <positive_int_const> ">"
(96) <fixed_pt_type> "fixed" "<" <positive_int_const> "," <positive_int_const> ">"
(97) <fixed_pt_const_type> "fixed"

View File

@@ -1,11 +1,35 @@
/*
* Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* COMPONENT_NAME: idl.parser
*
*
* ORIGINS: 27
*
* THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
* 5639-D57, (C) COPYRIGHT International Business Machines Corp., 1997, 1998
*
*
*/
(1) <specification> <imports> <definition> <specification'> // CORBA3
@@ -98,7 +122,7 @@
(16) <vad> e
<export> <vad>
(17) <value_dcl> <value_header> "{" <value_element> <ve> "}"
(17) <ve> e
@@ -106,9 +130,9 @@
(18) <value_header> "custom" "valuetype" <id> <value_inheritance_spec>
"valuetype" <id> <value_inheritance_spec>
"custom" "valuetype" <id>
"valuetype" <id>
"custom" "valuetype" <id>
"valuetype" <id>
(19) <value_inheritance_spec> <opt_inherits> <opt_supports>
(19) <opt_inherits> e
@@ -122,7 +146,7 @@
"supports" <interface_name> <interface_name_list>
(19) <interface_name_list> e
"," <interface_name> <interface_name_list>
"," <interface_name> <interface_name_list>
(20) <value_name> <scoped_name>
@@ -136,7 +160,7 @@
(23) <init_dcl> "factory" <id> "(" ")"
"factory" <id> "(" <init_param_dcls> ")"
(24) <init_param_dcls> <init_param_dcl>
(24) <init_param_dcls> <init_param_dcl>
<init_param_dcl> "," <init_param_dcls>
(25) <init_param_dcl> <init_param_attribute> <param_type_spec> <simple_declarator>
@@ -351,7 +375,7 @@
(85) <readonly_attr_spec> <readonly_attr_header> <readonly_attr_declarator> // CORBA3
(85) <readonly_attr_header> "readonly" "attribute" <param_type_spec> // CORBA3
(85) <readonly_attr_declarator> <simple_declarator> <get_excep_expr> // CORBA3
<simple_declarator> <sds> // CORBA3
@@ -389,7 +413,7 @@
(87) <op_dcl''> e
<context_expr>
<raises_expr>
<raises_expr>
<raises_expr> <context_expr>
(88) <op_attribute> "oneway"
@@ -426,7 +450,7 @@
<wide_string_type>
<scoped_name>
(96) <fixed_pt_type> "fixed" "<" <positive_int_const> "," <positive_int_const> ">"
(96) <fixed_pt_type> "fixed" "<" <positive_int_const> "," <positive_int_const> ">"
(97) <fixed_pt_const_type> "fixed"
@@ -450,7 +474,7 @@
(204) <snames> e
"," <scoped_name> <snames>
(205) <component_inheritance_spec> ":" <scoped_name>
(206) <component_body> <component_export> <ces>
@@ -458,8 +482,8 @@
(206) <ces> e
<component_export> <ces>
(207) <component_export> <provides_dcl> ";"
<uses_dcl> ";"
(207) <component_export> <provides_dcl> ";"
<uses_dcl> ";"
<emits_dcl> ";"
<publishes_dcl> ";"
<consumes_dcl> ";"

View File

@@ -1,3 +1,28 @@
#
# Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.parser
#

View File

@@ -1,3 +1,28 @@
#
# Copyright 1999-2005 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.parser
#

View File

@@ -1,3 +1,28 @@
#
# Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.parser
#

View File

@@ -1,3 +1,28 @@
#
# Copyright 1999-2004 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.toJava
#

View File

@@ -1,3 +1,28 @@
#
# Copyright 2001-2005 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.toJava
#

View File

@@ -1,3 +1,28 @@
#
# Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# COMPONENT_NAME: idl.toJava
#

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,6 @@ import java.io.Writer ;
import java.io.OutputStream ;
import java.io.BufferedWriter ;
import java.io.OutputStreamWriter ;
import jsint.Pair ;
import java.util.StringTokenizer ;
public class IndentingPrintWriter extends PrintWriter {
@@ -38,22 +37,20 @@ public class IndentingPrintWriter extends PrintWriter {
private int indentWidth = 4 ;
private String indentString = "" ;
public void printMsg( String msg, Pair data )
public void printMsg( String msg, Object... data )
{
// System.out.println( "printMsg called with msg=" + msg + " data=" + data ) ;
StringTokenizer st = new StringTokenizer( msg, "@", true ) ;
StringBuffer result = new StringBuffer() ;
Object head = data.first ;
Pair tail = (Pair)data.rest ;
String token = null ;
int pos = 0;
while (st.hasMoreTokens()) {
token = st.nextToken() ;
if (token.equals("@")) {
if (head != null) {
result.append( head ) ;
head = tail.first ;
tail = (Pair)tail.rest ;
if (pos < data.length) {
result.append( data[pos] );
++pos;
} else {
throw new Error( "List too short for message" ) ;
}

View File

@@ -0,0 +1,211 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package com.sun.tools.corba.se.logutil;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.Queue;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Input {
/**
* The name of the package this class will inhabit.
*/
private String packageName;
/**
* The name of the generated class.
*/
private String className;
/**
* The name of the group of exceptions handled by the class.
*/
private String groupName;
/**
* The group of exceptions.
*/
private Queue<InputException> exceptions;
/**
* Represents the current state of parsing the input.
*/
private enum State
{
OUTER,
IN_CLASS,
IN_EXCEPTION_LIST
};
/**
* Regular expression to match each code line.
*/
private static final Pattern EXCEPTION_INFO_REGEX =
Pattern.compile("(\\w+)\\s*(\\d+)\\s*(\\w+)");
/**
* Parses the specified file to create a new {@link Input}
* object.
*
* @param filename the file to parse.
* @throws FileNotFoundException if the file can't be found.
* @throws IOException if an I/O error occurs.
*/
public Input(final String filename)
throws FileNotFoundException, IOException {
BufferedReader r =
new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
State state = State.OUTER;
InputException current = null;
exceptions = new LinkedList<InputException>();
String line;
while ((line = r.readLine()) != null) {
// Skip ; comments
if (line.startsWith(";"))
continue;
int index = line.indexOf("(");
if (index == -1)
continue;
switch (state) {
case OUTER:
state = State.IN_CLASS;
String[] classInfo = line.substring(index).split(" ");
packageName = classInfo[0].substring(2, classInfo[0].length() - 1);
className = classInfo[1].substring(1, classInfo[1].length() - 1);
groupName = classInfo[2];
break;
case IN_CLASS:
state = State.IN_EXCEPTION_LIST;
break;
case IN_EXCEPTION_LIST:
boolean inQuote = false;
boolean inCode = false;
boolean end = false;
int start = index + 1;
Queue<String> lines = new LinkedList<String>();
for (int a = start; a < line.length(); ++a) {
if (line.charAt(a) == '(' && !inCode && !inQuote) {
if (current == null)
current =
new InputException(line.substring(start, a).trim());
start = a + 1;
inCode = true;
}
if (line.charAt(a) == '"')
inQuote = !inQuote;
if (line.charAt(a) == ')' && !inQuote) {
if (inCode) {
lines.offer(line.substring(start, a));
inCode = false;
} else
end = true;
}
if (!end && a == line.length() - 1)
line += r.readLine();
}
for (String l : lines) {
int stringStart = l.indexOf("\"") + 1;
int stringEnd = l.indexOf("\"", stringStart);
Matcher matcher = EXCEPTION_INFO_REGEX.matcher(l.substring(0, stringStart));
if (matcher.find())
current.add(new InputCode(matcher.group(1),
Integer.parseInt(matcher.group(2)),
matcher.group(3),
l.substring(stringStart, stringEnd)));
}
exceptions.offer(current);
current = null;
break;
}
}
}
/**
* Returns the name of this group of exceptions.
*
* @return the name of this group of exceptions.
*/
public String getGroupName()
{
return groupName;
}
/**
* Returns the name of the package this class will go in.
*
* @return the name of the package.
*/
public String getPackageName()
{
return packageName;
}
/**
* Returns the name of the generated class.
*
* @return the name of the class.
*/
public String getClassName()
{
return className;
}
/**
* Returns the exceptions contained in this class.
*
* @return the exceptions.
*/
public Queue<InputException> getExceptions() {
return exceptions;
}
/**
* Returns a textual representation of this input.
*
* @return a textual representation.
*/
public String toString() {
return getClass().getName() +
"[packageName=" + packageName +
",className=" + className +
",groupName=" + groupName +
",exceptions=" + exceptions +
"]";
}
}

View File

@@ -0,0 +1,116 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package com.sun.tools.corba.se.logutil;
public class InputCode {
/**
* The name of this code.
*/
private final String name;
/**
* The code.
*/
private final int code;
/**
* The log level for this code.
*/
private final String logLevel;
/**
* The error message for this code.
*/
private final String message;
/**
* Creates a new error code with the specified name, code,
* log level and error message.
*
* @param name the name of the new code.
* @param code the code itself.
* @param logLevel the level of severity of this error.
* @param message the error message for this code.
*/
public InputCode(final String name, final int code,
final String logLevel, final String message) {
this.name = name;
this.code = code;
this.logLevel = logLevel;
this.message = message;
}
/**
* Returns the name of this code.
*
* @return the name of the code.
*/
public String getName() {
return name;
}
/**
* Returns the code.
*
* @return the code.
*/
public int getCode() {
return code;
}
/**
* Returns the severity of this code.
*
* @return the log level severity of the code.
*/
public String getLogLevel() {
return logLevel;
}
/**
* Returns the error message for this code.
*
* @return the error message for this code.
*/
public String getMessage() {
return message;
}
/**
* Returns a textual representation of this code.
*
* @return a textual representation.
*/
public String toString() {
return getClass().getName() +
"[name=" + name +
",code=" + code +
",logLevel=" + logLevel +
",message=" + message +
"]";
}
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package com.sun.tools.corba.se.logutil;
import java.util.LinkedList;
import java.util.Queue;
public class InputException {
/**
* The name of this exception.
*/
private final String name;
/**
* The codes associated with this exception.
*/
private final Queue<InputCode> codes;
/**
* Constructs a new {@link InputException} with the
* specified name.
*
* @param name the name of the new exception;
*/
public InputException(final String name) {
this.name = name;
codes = new LinkedList<InputCode>();
}
/**
* Adds a new code to this exception.
*
* @param c the code to add.
*/
public void add(InputCode c)
{
codes.offer(c);
}
/**
* Returns the name of this exception.
*
* @return the exception's name.
*/
public String getName() {
return name;
}
/**
* Returns the codes associated with this exception.
*
* @return the exception's codes.
*/
public Queue<InputCode> getCodes() {
return codes;
}
/**
* Returns a textual representation of this exception.
*
* @return a textual representation.
*/
public String toString() {
return getClass().getName()
+ "[name=" + name
+ ",codes=" + codes
+ "]";
}
}

View File

@@ -0,0 +1,559 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package com.sun.tools.corba.se.logutil;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.Formatter;
import java.util.List;
import java.util.Queue;
public class MC {
private static final String VERSION = "1.0";
private static final List<String> SUN_EXCEPTION_GROUPS = Arrays.asList(new String[]
{ "SUNBASE", "ORBUTIL", "ACTIVATION", "NAMING", "INTERCEPTORS", "POA", "IOR", "UTIL" });
private static final List<String> EXCEPTIONS = Arrays.asList(new String[]
{ "UNKNOWN", "BAD_PARAM", "NO_MEMORY", "IMP_LIMIT", "COMM_FAILURE", "INV_OBJREF", "NO_PERMISSION",
"INTERNAL", "MARSHAL", "INITIALIZE", "NO_IMPLEMENT", "BAD_TYPECODE", "BAD_OPERATION", "NO_RESOURCES",
"NO_RESPONSE", "PERSIST_STORE", "BAD_INV_ORDER", "TRANSIENT", "FREE_MEM", "INV_IDENT", "INV_FLAG",
"INTF_REPOS", "BAD_CONTEXT", "OBJ_ADAPTER", "DATA_CONVERSION", "OBJECT_NOT_EXIST", "TRANSACTION_REQUIRED",
"TRANSACTION_ROLLEDBACK", "INVALID_TRANSACTION", "INV_POLICY", "CODESET_INCOMPATIBLE", "REBIND",
"TIMEOUT", "TRANSACTION_UNAVAILABLE", "BAD_QOS", "INVALID_ACTIVITY", "ACTIVITY_COMPLETED",
"ACTIVITY_REQUIRED" });
/**
* Read the minor codes from the input file and
* write out a resource file.
*
* @param inFile the file to read the codes from.
* @param outDir the directory to write the resource file to.
* @throws FileNotFoundException if the input file can not be found.
* @throws IOException if an I/O error occurs.
*/
private void makeResource(String inFile, String outDir)
throws FileNotFoundException, IOException {
writeResource(outDir, new Input(inFile));
}
/**
* Create a new Java source file using the specified Scheme input file,
* and writing the result to the given output directory.
*
* @param inFile the file to read the data from.
* @param outDir the directory to write the Java class to.
* @throws FileNotFoundException if the input file can not be found.
* @throws IOException if an I/O error occurs.
*/
private void makeClass(String inFile, String outDir)
throws FileNotFoundException, IOException {
writeClass(inFile, outDir, new Input(inFile));
}
/**
* Writes out a Java source file using the data from the given
* {@link Input} object. The result is written to {@code outDir}.
* The name of the input file is just used in the header of the
* resulting source file.
*
* @param inFile the name of the file the data was read from.
* @param outDir the directory to write the Java class to.
* @param input the parsed input data.
* @throws FileNotFoundException if the output file can't be written.
*/
private void writeClass(String inFile, String outDir, Input input)
throws FileNotFoundException {
String packageName = input.getPackageName();
String className = input.getClassName();
String groupName = input.getGroupName();
Queue<InputException> exceptions = input.getExceptions();
FileOutputStream file = new FileOutputStream(outDir + File.separator + className + ".java");
IndentingPrintWriter pw = new IndentingPrintWriter(file);
writeClassHeader(inFile, groupName, pw);
pw.printMsg("package @ ;", packageName);
pw.println();
pw.println("import java.util.logging.Logger ;");
pw.println("import java.util.logging.Level ;");
pw.println();
pw.println("import org.omg.CORBA.OMGVMCID ;");
pw.println( "import com.sun.corba.se.impl.util.SUNVMCID ;");
pw.println( "import org.omg.CORBA.CompletionStatus ;");
pw.println( "import org.omg.CORBA.SystemException ;");
pw.println();
pw.println( "import com.sun.corba.se.spi.orb.ORB ;");
pw.println();
pw.println( "import com.sun.corba.se.spi.logging.LogWrapperFactory;");
pw.println();
pw.println( "import com.sun.corba.se.spi.logging.LogWrapperBase;");
pw.println();
writeImports(exceptions, pw);
pw.println();
pw.indent();
pw.printMsg("public class @ extends LogWrapperBase {", className);
pw.println();
pw.printMsg("public @( Logger logger )", className);
pw.indent();
pw.println( "{");
pw.undent();
pw.println( "super( logger ) ;");
pw.println( "}");
pw.println();
pw.flush();
writeFactoryMethod(className, groupName, pw);
writeExceptions(groupName, exceptions, className, pw);
pw.undent();
pw.println( );
pw.println( "}");
pw.flush();
pw.close();
}
/**
* Writes out the header of a Java source file.
*
* @param inFile the input file the file was generated from.
* @param groupName the group of exceptions the Java source file is for.
* @param pw the print writer used to write the output.
*/
private void writeClassHeader(String inFile, String groupName,
IndentingPrintWriter pw) {
if (groupName.equals("OMG"))
pw.println("// Log wrapper class for standard exceptions");
else
pw.printMsg("// Log wrapper class for Sun private system exceptions in group @",
groupName);
pw.println("//");
pw.printMsg("// Generated by MC.java version @, DO NOT EDIT BY HAND!", VERSION);
pw.printMsg("// Generated from input file @ on @", inFile, new Date());
pw.println();
}
/**
* Write out the import list for the exceptions.
*
* @param groups the exceptions that were parsed.
* @param pw the {@link IndentingPrintWriter} for writing to the file.
*/
private void writeImports(Queue<InputException> exceptions,
IndentingPrintWriter pw) {
if (exceptions == null)
return;
for (InputException e : exceptions)
pw.println("import org.omg.CORBA." + e.getName() + " ;");
}
/**
* Write out the factory method for this group of exceptions.
*
* @param className the name of the generated class.
* @param groupName the name of this group of exceptions.
* @param pw the {@link IndentingPrintWriter} for writing to the file.
*/
private void writeFactoryMethod(String className, String groupName,
IndentingPrintWriter pw) {
pw.indent();
pw.println( "private static LogWrapperFactory factory = new LogWrapperFactory() {");
pw.println( "public LogWrapperBase create( Logger logger )" );
pw.indent();
pw.println( "{");
pw.undent();
pw.printMsg("return new @( logger ) ;", className);
pw.undent();
pw.println( "}" );
pw.println( "} ;" );
pw.println();
pw.printMsg("public static @ get( ORB orb, String logDomain )", className);
pw.indent();
pw.println( "{");
pw.indent();
pw.printMsg( "@ wrapper = ", className);
pw.indent();
pw.printMsg( "(@) orb.getLogWrapper( logDomain, ", className);
pw.undent();
pw.undent();
pw.printMsg( "\"@\", factory ) ;", groupName);
pw.undent();
pw.println( "return wrapper ;" );
pw.println( "} " );
pw.println();
pw.printMsg( "public static @ get( String logDomain )", className);
pw.indent();
pw.println( "{");
pw.indent();
pw.printMsg( "@ wrapper = ", className);
pw.indent();
pw.printMsg( "(@) ORB.staticGetLogWrapper( logDomain, ", className);
pw.undent();
pw.undent();
pw.printMsg( "\"@\", factory ) ;", groupName);
pw.undent();
pw.println( "return wrapper ;" );
pw.println( "} " );
pw.println();
}
/**
* Writes out the exceptions themselves.
*
* @param groupName the name of this group of exceptions.
* @param exceptions the exceptions to write out.
* @param className the name of the generated class.
* @param pw the {@link IndentingPrintWriter} for writing to the file.
*/
private void writeExceptions(String groupName, Queue<InputException> exceptions,
String className, IndentingPrintWriter pw) {
for (InputException e : exceptions) {
pw.println("///////////////////////////////////////////////////////////");
pw.printMsg("// @", e.getName());
pw.println("///////////////////////////////////////////////////////////");
pw.println();
for (InputCode c : e.getCodes())
writeMethods(groupName, e.getName(), c.getName(), c.getCode(),
c.getLogLevel(), className, StringUtil.countArgs(c.getMessage()), pw);
pw.flush();
}
}
/**
* Writes out the methods for a particular error.
*
* @param groupName the name of this group of exceptions.
* @param exceptionName the name of this particular exception.
* @param errorName the name of this particular error.
* @param code the minor code for this particular error.
* @param ident the name of the error in mixed-case identifier form.
* @param level the level at which to place log messages.
* @param className the name of the class for this group of exceptions.
* @param numParams the number of parameters the detail message takes.
* @param pw the print writer for writing to the file.
*/
private void writeMethods(String groupName, String exceptionName, String errorName,
int code, String level, String className, int numParams,
IndentingPrintWriter pw) {
String ident = StringUtil.toMixedCase(errorName);
pw.printMsg("public static final int @ = @ ;", errorName, getBase(groupName, code));
pw.println();
pw.flush();
writeMethodStatusCause(groupName, exceptionName, errorName, ident, level,
numParams, className, pw);
pw.println();
pw.flush();
writeMethodStatus(exceptionName, ident, numParams, pw);
pw.println();
pw.flush();
writeMethodCause(exceptionName, ident, numParams, pw);
pw.println();
pw.flush();
writeMethodNoArgs(exceptionName, ident, numParams, pw);
pw.println();
pw.flush();
}
/**
* Writes out a method for an error that takes a
* {@link org.omg.CORBA.CompletionStatus} and a cause.
*
* @param groupName the name of this group of exceptions.
* @param exceptionName the name of this particular exception.
* @param errorName the name of this particular error.
* @param ident the name of the error in mixed-case identifier form.
* @param logLevel the level at which to place log messages.
* @param numParams the number of parameters the detail message takes.
* @param className the name of the class for this group of exceptions.
* @param pw the print writer for writing to the file.
*/
private void writeMethodStatusCause(String groupName, String exceptionName,
String errorName, String ident,
String logLevel, int numParams,
String className, IndentingPrintWriter pw) {
pw.indent();
pw.printMsg( "public @ @( CompletionStatus cs, Throwable t@) {", exceptionName,
ident, makeDeclArgs(true, numParams));
pw.printMsg( "@ exc = new @( @, cs ) ;", exceptionName, exceptionName, errorName);
pw.indent();
pw.println( "if (t != null)" );
pw.undent();
pw.println( "exc.initCause( t ) ;" );
pw.println();
pw.indent();
pw.printMsg( "if (logger.isLoggable( Level.@ )) {", logLevel);
if (numParams > 0) {
pw.printMsg( "Object[] parameters = new Object[@] ;", numParams);
for (int a = 0; a < numParams; ++a)
pw.printMsg("parameters[@] = arg@ ;", a, a);
} else
pw.println( "Object[] parameters = null ;");
pw.indent();
pw.printMsg( "doLog( Level.@, \"@.@\",", logLevel, groupName, ident);
pw.undent();
pw.undent();
pw.printMsg( "parameters, @.class, exc ) ;", className);
pw.println( "}");
pw.println();
pw.undent();
pw.println( "return exc ;");
pw.println( "}");
}
/**
* Writes out a method for an error that takes a
* {@link org.omg.CORBA.CompletionStatus}.
*
* @param exceptionName the name of this particular exception.
* @param ident the name of the error in mixed-case identifier form.
* @param numParams the number of parameters the detail message takes.
* @param pw the print writer for writing to the file.
*/
private void writeMethodStatus(String exceptionName, String ident,
int numParams, IndentingPrintWriter pw) {
pw.indent();
pw.printMsg("public @ @( CompletionStatus cs@) {", exceptionName,
ident, makeDeclArgs(true, numParams));
pw.undent();
pw.printMsg("return @( cs, null@ ) ;", ident, makeCallArgs(true, numParams));
pw.println("}");
}
/**
* Writes out a method for an error that takes a cause.
*
* @param exceptionName the name of this particular exception.
* @param ident the name of the error in mixed-case identifier form.
* @param numParams the number of parameters the detail message takes.
* @param pw the print writer for writing to the file.
*/
private void writeMethodCause(String exceptionName, String ident,
int numParams, IndentingPrintWriter pw) {
pw.indent();
pw.printMsg("public @ @( Throwable t@) {", exceptionName, ident,
makeDeclArgs(true, numParams));
pw.undent();
pw.printMsg("return @( CompletionStatus.COMPLETED_NO, t@ ) ;", ident,
makeCallArgs(true, numParams));
pw.println("}");
}
/**
* Writes out a method for an error that takes no arguments.
*
* @param exceptionName the name of this particular exception.
* @param ident the name of the error in mixed-case identifier form.
* @param numParams the number of parameters the detail message takes.
* @param pw the print writer for writing to the file.
*/
private void writeMethodNoArgs(String exceptionName, String ident,
int numParams, IndentingPrintWriter pw) {
pw.indent();
pw.printMsg("public @ @( @) {", exceptionName, ident,
makeDeclArgs(false, numParams));
pw.undent();
pw.printMsg("return @( CompletionStatus.COMPLETED_NO, null@ ) ;",
ident, makeCallArgs(true, numParams));
pw.println("}");
}
/**
* Returns a list of comma-separated arguments with type declarations.
*
* @param leadingComma true if the list should start with a comma.
* @param numArgs the number of arguments to generate.
* @return the generated string.
*/
private String makeDeclArgs(boolean leadingComma, int numArgs) {
return makeArgString("Object arg", leadingComma, numArgs);
}
/**
* Returns a list of comma-separated arguments without type declarations.
*
* @param leadingComma true if the list should start with a comma.
* @param numArgs the number of arguments to generate.
* @return the generated string.
*/
private String makeCallArgs(boolean leadingComma, int numArgs) {
return makeArgString("arg", leadingComma, numArgs);
}
/**
* Returns a list of comma-separated arguments.
*
* @param prefixString the string with which to prefix each argument.
* @param leadingComma true if the list should start with a comma.
* @param numArgs the number of arguments to generate.
* @return the generated string.
*/
private String makeArgString(String prefixString, boolean leadingComma,
int numArgs) {
if (numArgs == 0)
return " ";
if (numArgs == 1) {
if (leadingComma)
return ", " + prefixString + (numArgs - 1);
else
return " " + prefixString + (numArgs - 1);
}
return makeArgString(prefixString, leadingComma, numArgs - 1) +
", " + prefixString + (numArgs - 1);
}
/**
* Returns the {@link String} containing the calculation of the
* error code.
*
* @param groupName the group of exception to which the code belongs.
* @param code the minor code number representing the exception within the group.
* @return the unique error code.
*/
private String getBase(String groupName, int code) {
if (groupName.equals("OMG"))
return "OMGVMCID.value + " + code;
else
return "SUNVMCID.value + " + (code + getSunBaseNumber(groupName));
}
/**
* Returns the base number for Sun-specific exceptions.
*
* @return the base number.
*/
private int getSunBaseNumber(String groupName) {
return 200 * SUN_EXCEPTION_GROUPS.indexOf(groupName);
}
/**
* Writes out a resource file using the data from the given
* {@link Input} object. The result is written to {@code outDir}.
*
* @param outDir the directory to write the Java class to.
* @param input the parsed input data.
* @throws FileNotFoundException if the output file can't be written.
*/
private void writeResource(String outDir, Input input)
throws FileNotFoundException {
FileOutputStream file = new FileOutputStream(outDir + File.separator +
input.getClassName() + ".resource");
IndentingPrintWriter pw = new IndentingPrintWriter(file);
String groupName = input.getGroupName();
for (InputException e : input.getExceptions()) {
String exName = e.getName();
for (InputCode c : e.getCodes()) {
String ident = StringUtil.toMixedCase(c.getName());
pw.printMsg("@.@=\"@: (@) @\"", groupName, ident,
getMessageID(groupName, exName, c.getCode()), exName, c.getMessage());
}
pw.flush();
}
pw.close();
}
/**
* Returns the message ID corresponding to the given group name,
* exception name and error code.
*
* @param groupName the name of the group of exceptions.
* @param exception the name of the particular exception.
* @param code an error code from the given exception.
* @return the message ID.
*/
private String getMessageID(String groupName, String exceptionName, int code) {
if (groupName.equals("OMG"))
return getStandardMessageID(exceptionName, code);
else
return getSunMessageID(groupName, exceptionName, code);
}
/**
* Returns the standard (OMG) message ID corresponding to the given
* exception name and error code.
*
* @param exceptionName the name of the particular exception.
* @param code an error code from the given exception.
* @return the message ID.
*/
private String getStandardMessageID(String exceptionName, int code) {
return new Formatter().format("IOP%s0%04d", getExceptionID(exceptionName),
code).toString();
}
/**
* Returns the Sun message ID corresponding to the given group name,
* exception name and error code.
*
* @param groupName the name of the group of exceptions.
* @param exceptionName the name of the particular exception.
* @param code an error code from the given exception.
* @return the message ID.
*/
private String getSunMessageID(String groupName, String exceptionName, int code) {
return new Formatter().format("IOP%s1%04d", getExceptionID(exceptionName),
getSunBaseNumber(groupName) + code).toString();
}
/**
* Returns the exception ID corresponding to the given exception name.
*
* @param exceptionName the name of the particular exception.
* @return the message ID.
*/
private String getExceptionID(String exceptionName) {
return new Formatter().format("%03d", EXCEPTIONS.indexOf(exceptionName)).toString();
}
/**
* Entry point for running the generator from the command
* line. Users can specify either "make-class" or "make-resource"
* as the first argument to generate the specified type of file.
*
* @param args the command-line arguments.
* @throws FileNotFoundException if the input file can not be found.
* @throws IOException if an I/O error occurs.
*/
public static void main(String[] args)
throws FileNotFoundException, IOException
{
if (args.length < 3)
{
System.err.println("(make-class|make-resource) <input file> <output dir>");
System.exit(-1);
}
if (args[0].equals("make-class"))
new MC().makeClass(args[1], args[2]);
else if (args[0].equals("make-resource"))
new MC().makeResource(args[1], args[2]);
else
System.err.println("Invalid command: " + args[0]);
}
}

View File

@@ -1,2 +0,0 @@
#! /bin/sh
java -cp lib/jscheme.jar:lib/util.jar jscheme.REPL mc.scm -main main $@

View File

@@ -1,662 +0,0 @@
; Scheme program to produce CORBA standard exceptions class
; requires Jscheme Java extensions
; Makes use of some custom Java classes also
(import "com.sun.tools.corba.se.logutil.IndentingPrintWriter" )
(import "com.sun.tools.corba.se.logutil.StringUtil" )
(import "java.io.FileOutputStream")
(define version-string "1.3")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Utility functions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; reload this file (convenience definition)
(define (reload) (load "mc.scm"))
; Simple little function to report an error
(define (error msg)
(throw (Error. msg)))
; some debug support
(define debug #f)
(define (dprint msg)
(if debug
(.println System.out$ msg)))
; Replace dprint with noprint to avoid seeing messages when debug is #t
(define (noprint msg) ())
; Helper function present so that a scheme method taking strings as args
; can be easily run from a command line.
; arg: vector containing argument strings. Element 0 is the function name
; to execute
(define (main arg)
(let*
(
(arg-list (vector->list arg))
(function-symbol (string->symbol (car arg-list)))
(args (cdr arg-list)))
(apply (eval function-symbol) args)))
; Returns the position of key in lst, numbering from 0. key is matched using eqv?
(define (get-list-position key lst)
(letrec
(
(helper (lambda (k l accum)
(cond
((null? l) (error (string-append "Could not find " k)))
((eqv? k (car l)) accum)
(else (helper k (cdr l) (+ accum 1))) ))))
(begin
(noprint (string-append "get-list-position called with key " key " lst " lst ))
(helper key lst 0))))
; Return a string representing number in decimal padded to length with leading 0s.
(define (pad-number-string number length)
(let*
(
(number-string (number->string number))
(pad-length (- length (string-length number-string)))
)
(string-append (make-string pad-length #\0) number-string)))
; Read an S-expression from a file that contains all of the data.
;
; The S-expression used for minor codes must have the structure
; (package-name class-name exception-group-name
; (exception
; (name value level explanation)
; ...
; )
; ...
; )
(define (read-file fname)
(read (open-input-file fname)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Functions for handling major system exceptions and exception groups
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Function to find the base ID given an exception group name. Result is a function that
; maps the minor code into the Java expression for that minor code's actual value.
(define (get-base group-name)
(if (eqv? group-name 'OMG)
(lambda (minor-code)
(string-append "OMGVMCID.value + " (number->string minor-code)))
(let ; bind base-number outside the lambda so it is only evaluated once
(
(base-number (get-sun-base-number group-name)))
(lambda (minor-code)
(string-append "SUNVMCID.value + " (number->string (+ base-number minor-code)))))))
; Function to get a base value for the group-name
(define (get-sun-base-number group-name)
(let*
(
(lst (list 'SUNBASE 'ORBUTIL 'ACTIVATION 'NAMING 'INTERCEPTORS 'POA 'IOR 'UTIL))
(subsystem-size 200))
(* subsystem-size (get-list-position group-name lst))))
; Function to get a 3 digit number for a system exception
(define (get-exception-id exception-name)
(let
(
(lst (list 'UNKNOWN 'BAD_PARAM 'NO_MEMORY 'IMP_LIMIT 'COMM_FAILURE 'INV_OBJREF 'NO_PERMISSION
'INTERNAL 'MARSHAL 'INITIALIZE 'NO_IMPLEMENT 'BAD_TYPECODE 'BAD_OPERATION 'NO_RESOURCES
'NO_RESPONSE 'PERSIST_STORE 'BAD_INV_ORDER 'TRANSIENT 'FREE_MEM 'INV_IDENT 'INV_FLAG
'INTF_REPOS 'BAD_CONTEXT 'OBJ_ADAPTER 'DATA_CONVERSION 'OBJECT_NOT_EXIST 'TRANSACTION_REQUIRED
'TRANSACTION_ROLLEDBACK 'INVALID_TRANSACTION 'INV_POLICY 'CODESET_INCOMPATIBLE 'REBIND
'TIMEOUT 'TRANSACTION_UNAVAILABLE 'BAD_QOS 'INVALID_ACTIVITY 'ACTIVITY_COMPLETED
'ACTIVITY_REQUIRED )))
(pad-number-string (get-list-position exception-name lst) 3)))
; Return the message id string for any system exception
;
(define (get-message-id exception-type group-name minor)
(if (eqv? group-name 'OMG)
(get-standard-message-id exception-type minor)
(get-sun-message-id exception-type group-name minor)))
; Return the message id string for a particular standard exception
;
(define (get-standard-message-id exception-type minor)
(string-append
"IOP"
(get-exception-id exception-type)
"0"
(pad-number-string (number->string minor) 4)))
; Return the sun message id for this exception-type, group-name, and minor code.
(define (get-sun-message-id exception-type group-name minor)
(string-append
"IOP"
(get-exception-id exception-type)
"1"
(pad-number-string (+ (get-sun-base-number group-name) minor) 4)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; visitor framework for the input file format
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (visit-top obj func1)
(let*
(
(package (car obj))
(class (cadr obj))
(group (caddr obj))
(func2 (func1 package class group))
(exceptions (cadddr obj)))
(visit-exceptions exceptions func2)))
; visit the elements of an arbitrary list
; lst: the list to visit
; func: the function to apply to each element of lst
; next-level the function on lst element and func that visits the next level
(define (visit-list lst func next-level)
(if (null? (cdr lst))
(next-level #t (car lst) func)
(begin
(next-level #f (car lst) func)
(visit-list (cdr lst) func next-level))))
(define (visit-exceptions exceptions func2)
(visit-list exceptions func2 (lambda (last-flag element func) (visit-exception last-flag element func))))
(define (visit-exception last-flag exception func2)
(let*
(
(major (car exception))
(minor-codes (cdr exception))
(func3 (func2 last-flag major)))
(visit-minor-codes minor-codes func3)))
(define (visit-minor-codes minor-codes func3)
(visit-list minor-codes func3 (lambda (last-flag element func) (visit-minor-code last-flag element func))))
(define (visit-minor-code last-flag minor-code func3)
(let*
(
(name (car minor-code))
(minor (cadr minor-code))
(level (caddr minor-code))
(msg (cadddr minor-code)))
(func3 last-flag name minor level msg)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The visitors
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; A simple visitor that just echoes the input for test purposes
(define (simple-visitor package class group)
(let*
(
(pw (IndentingPrintWriter. System.out$)))
(begin
(.indent pw)
(.printMsg pw "package=@ class=@ group=@" (list package class group))
(.flush pw)
(lambda (last-flag major)
(begin
(.indent pw)
(.printMsg pw "major=@" (list major))
(.flush pw)
(lambda (last-flag name minor level message)
(begin
(if last-flag (.undent pw))
(.printMsg pw "name=@ minor=@ level=@ message=@" (list name minor level message))
(.flush pw))))))))
; Function that returns a visitor that writes out the resource file in the form:
; id="MSGID: explanation"
; outdir: Output directory
(define (resource-visitor outdir)
(lambda (package class group)
(let*
(
(file-name (string-append outdir java.io.File.separator$ class ".resource"))
(pw (IndentingPrintWriter. (FileOutputStream. file-name))))
(begin
(dprint (string-append "package= " package " class=" class " group=" group " file-name=" file-name))
(lambda (last-flag1 major)
(begin
; (dprint (string-append "last-flag1=" last-flag1 " major=" major))
(lambda (last-flag2 name minor level message)
(begin
; (dprint (string-append "last-flag2=" last-flag2 " name=" name
; " minor=" minor " level=" level " message=" message))
(let*
(
(msgid (get-message-id major group minor))
(ident (StringUtil.toMixedCase (symbol->string name))))
(begin
; (dprint (string-append "msgid=" msgid " ident=" ident))
(.printMsg pw "@.@=\"@: (@) @\"" (list group ident msgid major message))
(.flush pw)
(if (and last-flag1 last-flag2)
(begin
; (dprint "closing file")
(.close pw)))))))))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Top-level functions for creating the products. All have names of the form make-xxx
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Read the minor codes from the infile and write out a resource file.
(define (make-resource infile outdir)
(tryCatch
(visit-top (read-file infile) (resource-visitor outdir))
(lambda (exc)
(begin
(.println System.out$ (string-append "make-resource failed with exception " (.toString exc)))
(System.exit 1)))))
; Read the minor codes from the infile and write a Java implementation to
; handle them to outfile under outdir
(define (make-class infile outdir)
(tryCatch
(write-class infile outdir (read-file infile))
(lambda (exc)
(begin
(.println System.out$ (string-append "make-class failed with exception " (.toString exc)))
(System.exit 1)))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The original make-class implementation (this should be replaced by two visitors)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Write out the Java source code for the StandardExceptions class
; outdir: Output directory to write the generated files
; obj: the data from the input file
(define (write-class infile outdir obj)
(let*
(
(package-name (car obj))
(class-name (cadr obj))
(exception-group-name (caddr obj))
(exceptions (cadddr obj))
(file (FileOutputStream. (string-append outdir java.io.File.separator$ class-name ".java")))
(pw (IndentingPrintWriter. file))
)
(begin
(write-class-header infile package-name class-name exception-group-name pw)
(.printMsg pw "package @ ;"
(list package-name))
(.println pw)
(.println pw "import java.util.logging.Logger ;")
(.println pw "import java.util.logging.Level ;")
(.println pw)
(.println pw "import org.omg.CORBA.OMGVMCID ;")
(.println pw "import com.sun.corba.se.impl.util.SUNVMCID ;")
(.println pw "import org.omg.CORBA.CompletionStatus ;")
(.println pw "import org.omg.CORBA.SystemException ;")
(.println pw)
(.println pw "import com.sun.corba.se.spi.orb.ORB ;")
(.println pw)
(.println pw "import com.sun.corba.se.spi.logging.LogWrapperFactory;")
(.println pw)
(.println pw "import com.sun.corba.se.spi.logging.LogWrapperBase;")
(.println pw)
(write-imports exceptions pw)
(.println pw)
(.indent pw)
(.printMsg pw "public class @ extends LogWrapperBase {"
(list class-name))
(.println pw)
(.printMsg pw "public @( Logger logger )"
(list class-name))
(.indent pw)
(.println pw "{")
(.undent pw)
(.println pw "super( logger ) ;")
(.println pw "}")
(.println pw)
(.flush pw)
(write-factory-method class-name exception-group-name pw)
(write-exceptions exception-group-name exceptions (get-base exception-group-name) class-name pw)
(.undent pw)
(.println pw )
(.println pw "}")
(.flush pw)
(.close pw)
)))
; Write out the header for the resource file
(define (write-class-header infile package class group pw)
(begin
(if (eqv? group 'OMG)
(.println pw "// Log wrapper class for standard exceptions")
(.printMsg pw "// Log wrapper class for Sun private system exceptions in group @" (list group)))
(.println pw "//")
(.printMsg pw "// Generated by mc.scm version @, DO NOT EDIT BY HAND!" (list version-string))
(.printMsg pw "// Generated from input file @ on @" (list infile (java.util.Date.)))
(.println pw)))
(define (write-factory-method class-name exception-group-name pw)
(begin
(.indent pw)
(.println pw "private static LogWrapperFactory factory = new LogWrapperFactory() {")
(.println pw "public LogWrapperBase create( Logger logger )" )
(.indent pw)
(.println pw "{")
(.undent pw)
(.printMsg pw "return new @( logger ) ;" (list class-name))
(.undent pw)
(.println pw "}" )
(.println pw "} ;" )
(.println pw)
(.printMsg pw "public static @ get( ORB orb, String logDomain )" (list class-name))
(.indent pw)
(.println pw "{")
(.indent pw)
(.printMsg pw "@ wrapper = "
(list class-name))
(.indent pw)
(.printMsg pw "(@) orb.getLogWrapper( logDomain, "
(list class-name))
(.undent pw)
(.undent pw)
(.printMsg pw "\"@\", factory ) ;"
(list exception-group-name))
(.undent pw)
(.println pw "return wrapper ;" )
(.println pw "} " )
(.println pw)
(.printMsg pw "public static @ get( String logDomain )" (list class-name))
(.indent pw)
(.println pw "{")
(.indent pw)
(.printMsg pw "@ wrapper = "
(list class-name))
(.indent pw)
(.printMsg pw "(@) ORB.staticGetLogWrapper( logDomain, "
(list class-name))
(.undent pw)
(.undent pw)
(.printMsg pw "\"@\", factory ) ;"
(list exception-group-name))
(.undent pw)
(.println pw "return wrapper ;" )
(.println pw "} " )
(.println pw)))
; Write out the import list for the exceptions listed in obj
; obj: the data from the input file
; pw: an IndentingPrintWriter for the output file
(define (write-imports obj pw)
(if (null? obj)
()
(let
(
(exception (caar obj))
)
(begin
(.print pw "import org.omg.CORBA.")
(.print pw exception)
(.println pw " ;")
(write-imports (cdr obj) pw)
))))
; Write out the list of exceptions starting with the first one
; obj: the data from the input file
; base: the lambda that returns the string defining the minor code value
; pw: an IndentingPrintWriter for the output file
(define (write-exceptions group-name obj base class-name pw)
(if (null? obj)
()
(let*
(
(record (car obj))
(exception (car record))
(minor-codes (cdr record))
)
(begin
(write-exception group-name exception minor-codes base class-name pw)
(write-exceptions group-name (cdr obj) base class-name pw)
))))
; Write out a single exception
; exception: the CORBA SystemException type
; base: the base for the minor code value
; minor-codes: a list of minor code data for each minor exception type
; pw: an IndentingPrintWriter for the output file
(define (write-exception group-name exception minor-codes base class-name pw)
(begin
(.println pw "///////////////////////////////////////////////////////////")
(.printMsg pw "// @" (list exception))
(.println pw "///////////////////////////////////////////////////////////")
(.println pw)
(write-methods group-name exception minor-codes base class-name pw)
(.flush pw)))
; Write all of the methods for a single exception
; exception: the CORBA SystemException type
; base: the base for the minor code value
; minor-codes: a list of minor code data for each minor exception type
; pw: an IndentingPrintWriter for the output file
(define (write-methods group-name exception minor-codes base class-name pw)
(if (null? minor-codes)
()
(begin
(write-method group-name exception (car minor-codes) base class-name pw)
(write-methods group-name exception (cdr minor-codes) base class-name pw)
)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Code that writes out the Java methods for exception handling
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Write the methods for a single minor code within an exception
; exception: the CORBA SystemException type
; minor-code: minor code data for one minor exception type
; (name value level explanation)
; base: the base for the minor code value
; pw: an IndentingPrintWriter for the output file
(define (write-method group-name exception minor-code base class-name pw)
(let*
(
(x (symbol->string (car minor-code)))
(ident (cons x (StringUtil.toMixedCase x)))
(value (cadr minor-code))
(level (symbol->string (caddr minor-code)))
(explanation (cadddr minor-code))
(num-params (StringUtil.countArgs explanation)))
(begin
(.printMsg pw "public static final int @ = @ ;"
(list x (base value)))
(.println pw )
(.flush pw )
(write-method-status-cause group-name exception ident level num-params class-name pw)
(.println pw)
(.flush pw)
(write-method-status exception ident level num-params pw)
(.println pw)
(.flush pw)
(write-method-cause exception ident level num-params pw)
(.println pw)
(.flush pw)
(write-method-no-args exception ident level num-params pw)
(.println pw)
(.flush pw))))
; Construct a string of the form arg1, ..., argn where n is num-params
(define (make-arg-string fixed leading-comma-flag num-args)
(let
(
(helper (lambda (lcf n)
(let*
(
(numstr (number->string (- n 1))))
(if (or lcf (> n 1))
(string-append ", " fixed numstr)
(string-append " " fixed numstr))))))
(cond
((eqv? num-args 0) " ")
((eqv? num-args 1) (helper leading-comma-flag 1))
(else (string-append
(make-arg-string fixed leading-comma-flag (- num-args 1))
(helper leading-comma-flag num-args ))))))
(define (make-decl-args leading-comma-flag num-args)
(make-arg-string "Object arg" leading-comma-flag num-args))
(define (make-call-args leading-comma-flag num-args)
(make-arg-string "arg" leading-comma-flag num-args))
; make-xxx-args patterns:
; leading-comma-flag #t
;
; 0 " "
; 1 ", arg0"
; 2 ", arg0, arg1"
; 3 ", arg0, arg1, arg2"
;
; 0 " "
; 1 ", Object arg0"
; 2 ", Object arg0, Object arg1"
; 3 ", Object arg0, Object arg1, Object arg2"
;
; leading-comma-flag #f
;
; 0 " "
; 1 " arg0"
; 2 " arg0, arg1"
; 3 " arg0, arg1, arg2"
;
; 0 " "
; 1 " Object arg0"
; 2 " Object arg0, Object arg1"
; 3 " Object arg0, Object arg1, Object arg2"
(define (emit-assignments num pw)
(let
(
(helper
(lambda (n)
(.printMsg pw "parameters[@] = arg@ ;" (list n n)))))
(if (= num 1)
(helper (- num 1))
(begin
(emit-assignments (- num 1) pw)
(helper (- num 1))))))
; Write a method for an exception that takes a CompletionStatus and a cause
; exception: the CORBA system exception type
; id: the identifier for this exception in the form ( ident . mixed-case-ident )
; level: the logging level
; num-params: number of parameters in the explanation string, which determines
; how many argn parameters we need
; pw: the indenting print writer we are using
(define (write-method-status-cause group-name exception id level num-params class-name pw)
(let*
(
(ident (car id))
(ident-mc (cdr id)))
(begin
(.indent pw)
(.printMsg pw "public @ @( CompletionStatus cs, Throwable t@) {"
(list exception ident-mc (make-decl-args #t num-params)))
(.printMsg pw "@ exc = new @( @, cs ) ;"
(list exception exception ident ))
(.indent pw)
(.println pw "if (t != null)" )
(.undent pw)
(.println pw "exc.initCause( t ) ;" )
(.println pw)
(.indent pw)
(.printMsg pw "if (logger.isLoggable( Level.@ )) {"
(list level))
(if (> num-params 0)
(begin
(.printMsg pw "Object[] parameters = new Object[@] ;"
(list (number->string num-params)))
(emit-assignments num-params pw)
)
(begin
(.println pw "Object[] parameters = null ;"
)))
(.indent pw)
(.printMsg pw "doLog( Level.@, \"@.@\"," (list level group-name ident-mc))
(.undent pw)
(.undent pw)
(.printMsg pw "parameters, @.class, exc ) ;" (list class-name))
(.println pw "}")
(.println pw)
(.undent pw)
(.println pw "return exc ;")
(.println pw "}"))))
; Write a method for an exception that takes a CompletionStatus. The cause is null.
;
; exception: the CORBA system exception type
; id: the identifier for this exception in the form ( ident . mixed-case-ident )
; level: the logging level
; num-params: number of parameters in the explanation string, which determines
; how many argn parameters we need
; pw: the indenting print writer we are using
(define (write-method-status exception id level num-params pw)
(let*
(
(ident-mc (cdr id)))
(begin
(.indent pw)
(.printMsg pw "public @ @( CompletionStatus cs@) {"
(list exception ident-mc (make-decl-args #t num-params)))
(.undent pw)
(.printMsg pw "return @( cs, null@ ) ;"
(list ident-mc (make-call-args #t num-params)))
(.println pw "}"))))
; Write a method for an exception that takes a cause. The status is COMPLETED_NO.
;
; exception: the CORBA system exception type
; id: the identifier for this exception in the form ( ident . mixed-case-ident )
; level: the logging level
; num-params: number of parameters in the explanation string, which determines
; how many argn parameters we need
; pw: the indenting print writer we are using
(define (write-method-cause exception id level num-params pw)
(let*
(
(ident-mc (cdr id)))
(begin
(.indent pw)
(.printMsg pw "public @ @( Throwable t@) {"
(list exception ident-mc (make-decl-args #t num-params)))
(.undent pw)
(.printMsg pw "return @( CompletionStatus.COMPLETED_NO, t@ ) ;"
(list ident-mc (make-call-args #t num-params)))
(.println pw "}"))))
; Write a method for an exception that takes no arguments. This is COMPLETED_NO and
; a null cause.
;
; exception: the CORBA system exception type
; id: the identifier for this exception in the form ( ident . mixed-case-ident )
; level: the logging level
; num-params: number of parameters in the explanation string, which determines
; how many argn parameters we need
; pw: the indenting print writer we are using
(define (write-method-no-args exception id level num-params pw)
(let*
(
(ident-mc (cdr id)))
(begin
(.indent pw)
(.printMsg pw "public @ @( @) {"
(list exception ident-mc (make-decl-args #f num-params)))
(.undent pw)
(.printMsg pw "return @( CompletionStatus.COMPLETED_NO, null@ ) ;"
(list ident-mc (make-call-args #t num-params)))
(.println pw "}"))))
;;; end of file

View File

@@ -1,2 +0,0 @@
#! /bin/sh
java -cp ${CLASSPATH}:lib/jscheme.jar:lib/util.jar jscheme.REPL mc.scm

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1995-2005 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -289,7 +289,7 @@ abstract public class ORB {
*
* @return the singleton ORB
*/
public static ORB init() {
public static synchronized ORB init() {
if (singleton == null) {
String className = getSystemProperty(ORBSingletonClassKey);
if (className == null)

View File

@@ -1,5 +1,5 @@
/*
* Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it

View File

@@ -23,7 +23,7 @@
// have any questions.
//
#include "afxres.h"
#include "windows.h"
// Need 2 defines so macro argument to XSTR will get expanded before quoting.
#define XSTR(x) STR(x)
@@ -37,8 +37,8 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION J2SE_FVER
PRODUCTVERSION J2SE_FVER
FILEVERSION JDK_FVER
PRODUCTVERSION JDK_FVER
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -48,22 +48,22 @@ VS_VERSION_INFO VERSIONINFO
// FILEOS 0x4 is Win32, 0x40004 is Win32 NT only
FILEOS 0x4L
// FILETYPE should be 0x1 for .exe and 0x2 for .dll
FILETYPE J2SE_FTYPE
FILETYPE JDK_FTYPE
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
VALUE "CompanyName", XSTR(J2SE_COMPANY) "\0"
VALUE "FileDescription", XSTR(J2SE_COMPONENT) "\0"
VALUE "FileVersion", XSTR(J2SE_VER) "\0"
VALUE "Full Version", XSTR(J2SE_BUILD_ID) "\0"
VALUE "InternalName", XSTR(J2SE_INTERNAL_NAME) "\0"
VALUE "LegalCopyright", XSTR(J2SE_COPYRIGHT) "\0"
VALUE "OriginalFilename", XSTR(J2SE_FNAME) "\0"
VALUE "ProductName", XSTR(J2SE_NAME) "\0"
VALUE "ProductVersion", XSTR(J2SE_VER) "\0"
VALUE "CompanyName", XSTR(JDK_COMPANY) "\0"
VALUE "FileDescription", XSTR(JDK_COMPONENT) "\0"
VALUE "FileVersion", XSTR(JDK_VER) "\0"
VALUE "Full Version", XSTR(JDK_BUILD_ID) "\0"
VALUE "InternalName", XSTR(JDK_INTERNAL_NAME) "\0"
VALUE "LegalCopyright", XSTR(JDK_COPYRIGHT) "\0"
VALUE "OriginalFilename", XSTR(JDK_FNAME) "\0"
VALUE "ProductName", XSTR(JDK_NAME) "\0"
VALUE "ProductVersion", XSTR(JDK_VER) "\0"
END
END
BLOCK "VarFileInfo"

View File

@@ -1,7 +1,7 @@
^build/
^dist/
^nbproject/private/
^src/share/tools/hsdis/bin/
^src/share/tools/hsdis/build/
^src/share/tools/IdealGraphVisualizer/[a-zA-Z0-9]*/build/
^src/share/tools/IdealGraphVisualizer/build/
^src/share/tools/IdealGraphVisualizer/dist/

View File

@@ -24,3 +24,17 @@ fc6a5ae3fef5ebacfa896dbb3ae37715e388e282 jdk7-b43
fcb923bad68e2b10380a030ea83a723f4dc3d4d6 jdk7-b47
bcb33806d186561c781992e5f4d8a90bb033f9f0 jdk7-b48
8b22ccb5aba2c6c11bddf6488a7bb7ef5b4bf2be jdk7-b49
dae503d9f04c1a11e182dbf7f770509c28dc0609 jdk7-b50
2581d90c6c9b2012da930eb4742add94a03069a0 jdk7-b51
1b1e8f1a4fe8cebc01c022484f78148e17b62a0d jdk7-b52
032c6af894dae8d939b3dd31d82042549e7793e0 jdk7-b53
fafab5d5349c7c066d677538db67a1ee0fb33bd2 jdk7-b54
f8e839c086152da70d6ec5913ba6f9f509282e8d jdk7-b55
a3fd9e40ff2e854f6169eb6d09d491a28634d04f jdk7-b56
f4cbf78110c726919f46b59a3b054c54c7e889b4 jdk7-b57
53d9bf689e80fcc76b221bbe6c5d58e08b80cbc6 jdk7-b58
c55be0c7bd32c016c52218eb4c8b5da8a75450b5 jdk7-b59
a77eddcd510c3972717c025cfcef9a60bfa4ecac jdk7-b60
27b728fd1281ab62e9d7e4424f8bbb6ca438d803 jdk7-b61
a88386380bdaaa5ab4ffbedf22c57bac5dbec034 jdk7-b62
32c83fb84370a35344676991a48440378e6b6c8a jdk7-b63

View File

@@ -60,6 +60,14 @@ ifndef LDNOMAP
LFLAGS_LIBSA = -Xlinker --version-script=mapfile
endif
# If this is a --hash-style=gnu system, use --hash-style=both
# The gnu .hash section won't work on some Linux systems like SuSE 10.
_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu')
ifneq ($(_HAS_HASH_STYLE_GNU),)
LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
endif
LFLAGS_LIBSA += $(LDFLAGS_HASH_STYLE)
$(LIBSA): $(OBJS) mapfile
if [ ! -d $(ARCH) ] ; then mkdir $(ARCH) ; fi
$(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS)

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it

View File

@@ -306,8 +306,6 @@ public class HotSpotTypeDataBase extends BasicTypeDataBase {
entryAddr = entryAddr.addOffsetTo(intConstantEntryArrayStride);
} while (nameAddr != null);
String symbol = "heapOopSize"; // global int constant and value is initialized at runtime.
addIntConstant(symbol, (int)lookupInProcess(symbol).getCIntegerAt(0, 4, false));
}
private void readVMLongConstants() {

View File

@@ -118,9 +118,9 @@ public interface Debugger extends SymbolLookup, ThreadAccess {
public long getJIntSize();
public long getJLongSize();
public long getJShortSize();
public long getHeapBase();
public long getHeapOopSize();
public long getLogMinObjAlignmentInBytes();
public long getNarrowOopBase();
public int getNarrowOopShift();
public ReadResult readBytesFromProcess(long address, long numBytes)
throws DebuggerException;

View File

@@ -56,8 +56,8 @@ public abstract class DebuggerBase implements Debugger {
// heap data.
protected long oopSize;
protected long heapOopSize;
protected long heapBase; // heap base for compressed oops.
protected long logMinObjAlignmentInBytes; // Used to decode compressed oops.
protected long narrowOopBase; // heap base for compressed oops.
protected int narrowOopShift; // shift to decode compressed oops.
// Should be initialized if desired by calling initCache()
private PageCache cache;
@@ -159,10 +159,10 @@ public abstract class DebuggerBase implements Debugger {
javaPrimitiveTypesConfigured = true;
}
public void putHeapConst(long heapBase, long heapOopSize, long logMinObjAlignmentInBytes) {
this.heapBase = heapBase;
public void putHeapConst(long heapOopSize, long narrowOopBase, int narrowOopShift) {
this.heapOopSize = heapOopSize;
this.logMinObjAlignmentInBytes = logMinObjAlignmentInBytes;
this.narrowOopBase = narrowOopBase;
this.narrowOopShift = narrowOopShift;
}
/** May be called by subclasses if desired to initialize the page
@@ -459,7 +459,7 @@ public abstract class DebuggerBase implements Debugger {
long value = readCInteger(address, getHeapOopSize(), true);
if (value != 0) {
// See oop.inline.hpp decode_heap_oop
value = (long)(heapBase + (long)(value << logMinObjAlignmentInBytes));
value = (long)(narrowOopBase + (long)(value << narrowOopShift));
}
return value;
}
@@ -545,10 +545,10 @@ public abstract class DebuggerBase implements Debugger {
return heapOopSize;
}
public long getHeapBase() {
return heapBase;
public long getNarrowOopBase() {
return narrowOopBase;
}
public long getLogMinObjAlignmentInBytes() {
return logMinObjAlignmentInBytes;
public int getNarrowOopShift() {
return narrowOopShift;
}
}

View File

@@ -42,5 +42,5 @@ public interface JVMDebugger extends Debugger {
long jintSize,
long jlongSize,
long jshortSize);
public void putHeapConst(long heapBase, long heapOopSize, long logMinObjAlignment);
public void putHeapConst(long heapOopSize, long narrowOopBase, int narrowOopShift);
}

View File

@@ -65,9 +65,10 @@ public interface RemoteDebugger extends Remote {
public long getJIntSize() throws RemoteException;
public long getJLongSize() throws RemoteException;
public long getJShortSize() throws RemoteException;
public long getHeapBase() throws RemoteException;
public long getHeapOopSize() throws RemoteException;
public long getLogMinObjAlignmentInBytes() throws RemoteException;
public long getNarrowOopBase() throws RemoteException;
public int getNarrowOopShift() throws RemoteException;
public boolean areThreadsEqual(long addrOrId1, boolean isAddress1,
long addrOrId2, boolean isAddress2) throws RemoteException;
public int getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException;

View File

@@ -85,9 +85,9 @@ public class RemoteDebuggerClient extends DebuggerBase implements JVMDebugger {
jlongSize = remoteDebugger.getJLongSize();
jshortSize = remoteDebugger.getJShortSize();
javaPrimitiveTypesConfigured = true;
heapBase = remoteDebugger.getHeapBase();
narrowOopBase = remoteDebugger.getNarrowOopBase();
narrowOopShift = remoteDebugger.getNarrowOopShift();
heapOopSize = remoteDebugger.getHeapOopSize();
logMinObjAlignmentInBytes = remoteDebugger.getLogMinObjAlignmentInBytes();
}
catch (RemoteException e) {
throw new DebuggerException(e);

View File

@@ -114,17 +114,18 @@ public class RemoteDebuggerServer extends UnicastRemoteObject
return debugger.getJShortSize();
}
public long getHeapBase() throws RemoteException {
return debugger.getHeapBase();
}
public long getHeapOopSize() throws RemoteException {
return debugger.getHeapOopSize();
}
public long getLogMinObjAlignmentInBytes() throws RemoteException {
return debugger.getLogMinObjAlignmentInBytes();
public long getNarrowOopBase() throws RemoteException {
return debugger.getNarrowOopBase();
}
public int getNarrowOopShift() throws RemoteException {
return debugger.getNarrowOopShift();
}
public boolean areThreadsEqual(long addrOrId1, boolean isAddress1,
long addrOrId2, boolean isAddress2) throws RemoteException {
ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);

View File

@@ -53,7 +53,8 @@ public class Universe {
// system obj array klass object
private static sun.jvm.hotspot.types.OopField systemObjArrayKlassObjField;
private static AddressField heapBaseField;
private static AddressField narrowOopBaseField;
private static CIntegerField narrowOopShiftField;
static {
VM.registerVMInitializedObserver(new Observer() {
@@ -86,7 +87,8 @@ public class Universe {
systemObjArrayKlassObjField = type.getOopField("_systemObjArrayKlassObj");
heapBaseField = type.getAddressField("_heap_base");
narrowOopBaseField = type.getAddressField("_narrow_oop._base");
narrowOopShiftField = type.getCIntegerField("_narrow_oop._shift");
}
public Universe() {
@@ -100,14 +102,18 @@ public class Universe {
}
}
public static long getHeapBase() {
if (heapBaseField.getValue() == null) {
public static long getNarrowOopBase() {
if (narrowOopBaseField.getValue() == null) {
return 0;
} else {
return heapBaseField.getValue().minus(null);
return narrowOopBaseField.getValue().minus(null);
}
}
public static int getNarrowOopShift() {
return (int)narrowOopShiftField.getValue();
}
/** Returns "TRUE" iff "p" points into the allocated area of the heap. */
public boolean isIn(Address p) {
return heap().isIn(p);

View File

@@ -142,34 +142,35 @@ public interface ClassConstants
// from jvm.h
public static final long JVM_RECOGNIZED_CLASS_MODIFIERS = (JVM_ACC_PUBLIC |
JVM_ACC_FINAL |
JVM_ACC_SUPER |
JVM_ACC_INTERFACE |
JVM_ACC_ABSTRACT |
JVM_ACC_ANNOTATION |
JVM_ACC_SYNTHETIC);
JVM_ACC_FINAL |
JVM_ACC_SUPER |
JVM_ACC_INTERFACE |
JVM_ACC_ABSTRACT |
JVM_ACC_ANNOTATION |
JVM_ACC_ENUM |
JVM_ACC_SYNTHETIC);
public static final long JVM_RECOGNIZED_FIELD_MODIFIERS = (JVM_ACC_PUBLIC |
JVM_ACC_PRIVATE |
JVM_ACC_PROTECTED |
JVM_ACC_STATIC |
JVM_ACC_FINAL |
JVM_ACC_VOLATILE |
JVM_ACC_TRANSIENT |
JVM_ACC_ENUM |
JVM_ACC_SYNTHETIC);
JVM_ACC_PRIVATE |
JVM_ACC_PROTECTED |
JVM_ACC_STATIC |
JVM_ACC_FINAL |
JVM_ACC_VOLATILE |
JVM_ACC_TRANSIENT |
JVM_ACC_ENUM |
JVM_ACC_SYNTHETIC);
public static final long JVM_RECOGNIZED_METHOD_MODIFIERS = (JVM_ACC_PUBLIC |
JVM_ACC_PRIVATE |
JVM_ACC_PROTECTED |
JVM_ACC_STATIC |
JVM_ACC_FINAL |
JVM_ACC_SYNCHRONIZED |
JVM_ACC_BRIDGE |
JVM_ACC_VARARGS |
JVM_ACC_NATIVE |
JVM_ACC_ABSTRACT |
JVM_ACC_STRICT |
JVM_ACC_SYNTHETIC);
JVM_ACC_PRIVATE |
JVM_ACC_PROTECTED |
JVM_ACC_STATIC |
JVM_ACC_FINAL |
JVM_ACC_SYNCHRONIZED |
JVM_ACC_BRIDGE |
JVM_ACC_VARARGS |
JVM_ACC_NATIVE |
JVM_ACC_ABSTRACT |
JVM_ACC_STRICT |
JVM_ACC_SYNTHETIC);
}

View File

@@ -48,6 +48,8 @@ public class JavaThread extends Thread {
private static AddressField lastJavaPCField;
private static CIntegerField threadStateField;
private static AddressField osThreadField;
private static AddressField stackBaseField;
private static CIntegerField stackSizeField;
private static JavaThreadPDAccess access;
@@ -83,6 +85,8 @@ public class JavaThread extends Thread {
lastJavaPCField = anchorType.getAddressField("_last_Java_pc");
threadStateField = type.getCIntegerField("_thread_state");
osThreadField = type.getAddressField("_osthread");
stackBaseField = type.getAddressField("_stack_base");
stackSizeField = type.getCIntegerField("_stack_size");
UNINITIALIZED = db.lookupIntConstant("_thread_uninitialized").intValue();
NEW = db.lookupIntConstant("_thread_new").intValue();
@@ -312,6 +316,14 @@ public class JavaThread extends Thread {
return (OSThread) VMObjectFactory.newObject(OSThread.class, osThreadField.getValue(addr));
}
public Address getStackBase() {
return stackBaseField.getValue(addr);
}
public long getStackSize() {
return stackSizeField.getValue(addr);
}
/** Gets the Java-side thread object for this JavaThread */
public Oop getThreadObj() {
return VM.getVM().getObjectHeap().newOop(threadObjField.getValue(addr));
@@ -345,11 +357,18 @@ public class JavaThread extends Thread {
if (Assert.ASSERTS_ENABLED) {
Assert.that(VM.getVM().isDebugging(), "Not yet implemented for non-debugging system");
}
Address highest = highestLock();
Address sp = lastSPDbg();
Address stackBase = getStackBase();
// Be robust
if ((highest == null) || (sp == null)) return false;
return (highest.greaterThanOrEqual(a) && sp.lessThanOrEqual(a));
if (sp == null) return false;
return stackBase.greaterThanOrEqual(a) && sp.lessThanOrEqual(a);
}
public boolean isLockOwned(Address a) {
Address stackBase = getStackBase();
Address stackLimit = stackBase.addOffsetTo(-getStackSize());
return stackBase.greaterThanOrEqual(a) && stackLimit.lessThanOrEqual(a);
// FIXME: should traverse MonitorArray/MonitorChunks as in VM
}

View File

@@ -46,12 +46,18 @@ public class StubRoutines {
Type type = db.lookupType("StubRoutines");
callStubReturnAddressField = type.getAddressField("_call_stub_return_address");
// Only some platforms have specif return from compiled to call_stub
// Only some platforms have specific return from compiled to call_stub
try {
callStubCompiledReturnAddressField = type.getAddressField("_call_stub_compiled_return");
type = db.lookupType("StubRoutines::x86");
if (type != null) {
callStubCompiledReturnAddressField = type.getAddressField("_call_stub_compiled_return");
}
} catch (RuntimeException re) {
callStubCompiledReturnAddressField = null;
}
if (callStubCompiledReturnAddressField == null && VM.getVM().getCPU().equals("x86")) {
throw new InternalError("Missing definition for _call_stub_compiled_return");
}
}
public StubRoutines() {

View File

@@ -38,7 +38,6 @@ public class Thread extends VMObject {
private static int HAS_ASYNC_EXCEPTION;
private static AddressField activeHandlesField;
private static AddressField highestLockField;
private static AddressField currentPendingMonitorField;
private static AddressField currentWaitingMonitorField;
@@ -60,7 +59,6 @@ public class Thread extends VMObject {
tlabFieldOffset = type.getField("_tlab").getOffset();
activeHandlesField = type.getAddressField("_active_handles");
highestLockField = type.getAddressField("_highest_lock");
currentPendingMonitorField = type.getAddressField("_current_pending_monitor");
currentWaitingMonitorField = type.getAddressField("_current_waiting_monitor");
}
@@ -121,10 +119,6 @@ public class Thread extends VMObject {
// pending exception
}
public Address highestLock() {
return highestLockField.getValue(addr);
}
public ObjectMonitor getCurrentPendingMonitor() {
Address monitorAddr = currentPendingMonitorField.getValue(addr);
if (monitorAddr == null) {

View File

@@ -164,20 +164,11 @@ public class Threads {
}
}
long leastDiff = 0;
boolean leastDiffInitialized = false;
JavaThread theOwner = null;
for (JavaThread thread = first(); thread != null; thread = thread.next()) {
Address addr = thread.highestLock();
if (addr == null || addr.lessThan(o)) continue;
long diff = addr.minus(o);
if (!leastDiffInitialized || diff < leastDiff) {
leastDiffInitialized = true;
leastDiff = diff;
theOwner = thread;
}
if (thread.isLockOwned(o))
return thread;
}
return theOwner;
return null;
}
public JavaThread owningThreadFromMonitor(ObjectMonitor monitor) {

View File

@@ -318,11 +318,17 @@ public class VM {
logMinObjAlignmentInBytes = db.lookupIntConstant("LogMinObjAlignmentInBytes").intValue();
heapWordSize = db.lookupIntConstant("HeapWordSize").intValue();
oopSize = db.lookupIntConstant("oopSize").intValue();
heapOopSize = db.lookupIntConstant("heapOopSize").intValue();
intxType = db.lookupType("intx");
uintxType = db.lookupType("uintx");
boolType = (CIntegerType) db.lookupType("bool");
if (isCompressedOopsEnabled()) {
// Size info for oops within java objects is fixed
heapOopSize = (int)getIntSize();
} else {
heapOopSize = (int)getOopSize();
}
}
/** This could be used by a reflective runtime system */
@@ -342,11 +348,13 @@ public class VM {
throw new RuntimeException("Attempt to initialize VM twice");
}
soleInstance = new VM(db, debugger, debugger.getMachineDescription().isBigEndian());
debugger.putHeapConst(Universe.getHeapBase(), soleInstance.getHeapOopSize(),
soleInstance.logMinObjAlignmentInBytes);
for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) {
((Observer) iter.next()).update(null, null);
}
debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(),
Universe.getNarrowOopShift());
}
/** This is used by the debugging system */

View File

@@ -89,29 +89,6 @@ public class ByteCodeRewriter
// update the code buffer hotspot specific bytecode with the jvm bytecode
code[bci] = (byte) (0xFF & bytecode);
// RewriteFrequentPairs
if(hotspotcode == Bytecodes._fast_iaccess_0 ||
hotspotcode == Bytecodes._fast_aaccess_0 ||
hotspotcode == Bytecodes._fast_faccess_0) {
// rewrite next bytecode as _getfield
bci++;
code[bci] = (byte) (0xFF & Bytecodes._getfield);
bytecode = Bytecodes._getfield;
hotspotcode = Bytecodes._getfield;
} else if (hotspotcode == Bytecodes._fast_iload2) {
// rewrite next bytecode as _iload
bci++;
code[bci] = (byte) (0xFF & Bytecodes._iload);
bytecode = Bytecodes._iload;
hotspotcode = Bytecodes._iload;
} else if (hotspotcode == Bytecodes._fast_icaload) {
// rewrite next bytecode as _caload
bci++;
code[bci] = (byte) (0xFF & Bytecodes._caload);
bytecode = Bytecodes._caload;
bytecode = Bytecodes._caload;
}
short cpoolIndex = 0;
switch (bytecode) {
// bytecodes with ConstantPoolCache index

View File

@@ -59,8 +59,14 @@ public class ClassDump extends Tool {
SystemDictionary dict = VM.getVM().getSystemDictionary();
dict.classesDo(new SystemDictionary.ClassVisitor() {
public void visit(Klass k) {
if (k instanceof InstanceKlass)
dumpKlass((InstanceKlass) k);
if (k instanceof InstanceKlass) {
try {
dumpKlass((InstanceKlass) k);
} catch (Exception e) {
System.out.println(k.getName().asString());
e.printStackTrace();
}
}
}
});
}

View File

@@ -40,7 +40,6 @@ public class ClassWriter implements /* imports */ ClassConstants
protected InstanceKlass klass;
protected DataOutputStream dos;
protected ConstantPool cpool;
protected boolean is15Format;
// Map between class name to index of type CONSTANT_Class
protected Map classToIndex = new HashMap();
@@ -73,7 +72,6 @@ public class ClassWriter implements /* imports */ ClassConstants
klass = kls;
dos = new DataOutputStream(os);
cpool = klass.getConstants();
is15Format = is15ClassFile();
}
public void write() throws IOException {
@@ -82,7 +80,7 @@ public class ClassWriter implements /* imports */ ClassConstants
// write magic
dos.writeInt(0xCAFEBABE);
writeVersion(is15Format);
writeVersion();
writeConstantPool();
writeClassAccessFlags();
writeThisClass();
@@ -96,43 +94,14 @@ public class ClassWriter implements /* imports */ ClassConstants
dos.flush();
}
protected boolean is15ClassFile() {
// if klass has generic signature, then it is 1.5 class file.
if (klass.getGenericSignature() != null) {
return true;
}
// if atleast one method has generic signature
// , then we have 1.5 class file.
ObjArray methods = klass.getMethods();
final int numMethods = (int) methods.getLength();
for (int m = 0; m < numMethods; m++) {
Method curMethod = (Method) methods.getObjAt(m);
if (curMethod.getGenericSignature() != null) {
return true;
}
}
// if atleast one field has non-zero generic signature index, then we have
// 1.5 class file
TypeArray fields = klass.getFields();
final int numFields = (int) fields.getLength();
for (int f = 0; f < numFields; f += InstanceKlass.NEXT_OFFSET) {
short genSigIndex = fields.getShortAt(f + InstanceKlass.GENERIC_SIGNATURE_INDEX_OFFSET);
if (genSigIndex != (short)0) return true;
}
return false;
protected void writeVersion() throws IOException {
dos.writeShort((short)klass.minorVersion());
dos.writeShort((short)klass.majorVersion());
}
protected void writeVersion(boolean is15Format) throws IOException {
if (is15Format) {
dos.writeShort(MINOR_VERSION);
dos.writeShort(MAJOR_VERSION);
} else {
dos.writeShort(MINOR_VERSION_OLD);
dos.writeShort(MAJOR_VERSION_OLD);
}
protected void writeIndex(int index) throws IOException {
if (index == 0) throw new InternalError();
dos.writeShort(index);
}
protected void writeConstantPool() throws IOException {
@@ -392,8 +361,8 @@ public class ClassWriter implements /* imports */ ClassConstants
if (DEBUG) debugMessage("\tfield name = " + nameIndex + ", signature = " + signatureIndex);
short fieldAttributeCount = 0;
boolean isSyn = isSynthetic(accessFlags);
if (isSyn)
boolean hasSyn = hasSyntheticAttribute(accessFlags);
if (hasSyn)
fieldAttributeCount++;
short initvalIndex = fields.getShortAt(index + InstanceKlass.INITVAL_INDEX_OFFSET);
@@ -407,18 +376,18 @@ public class ClassWriter implements /* imports */ ClassConstants
dos.writeShort(fieldAttributeCount);
// write synthetic, if applicable
if (isSyn)
if (hasSyn)
writeSynthetic();
if (initvalIndex != 0) {
dos.writeShort(_constantValueIndex);
writeIndex(_constantValueIndex);
dos.writeInt(2);
dos.writeShort(initvalIndex);
if (DEBUG) debugMessage("\tfield init value = " + initvalIndex);
}
if (genSigIndex != 0) {
dos.writeShort(_signatureIndex);
writeIndex(_signatureIndex);
dos.writeInt(2);
dos.writeShort(genSigIndex);
if (DEBUG) debugMessage("\tfield generic signature index " + genSigIndex);
@@ -430,8 +399,13 @@ public class ClassWriter implements /* imports */ ClassConstants
return (accessFlags & (short) JVM_ACC_SYNTHETIC) != 0;
}
protected boolean hasSyntheticAttribute(short accessFlags) {
// Check if flags have the attribute and if the constant pool contains an entry for it.
return isSynthetic(accessFlags) && _syntheticIndex != 0;
}
protected void writeSynthetic() throws IOException {
dos.writeShort(_syntheticIndex);
writeIndex(_syntheticIndex);
dos.writeInt(0);
}
@@ -459,8 +433,8 @@ public class ClassWriter implements /* imports */ ClassConstants
short methodAttributeCount = 0;
final boolean isSyn = isSynthetic((short)accessFlags);
if (isSyn)
final boolean hasSyn = hasSyntheticAttribute((short)accessFlags);
if (hasSyn)
methodAttributeCount++;
final boolean hasCheckedExceptions = m.hasCheckedExceptions();
@@ -478,27 +452,11 @@ public class ClassWriter implements /* imports */ ClassConstants
dos.writeShort(methodAttributeCount);
if (DEBUG) debugMessage("\tmethod attribute count = " + methodAttributeCount);
if (isSyn) {
if (hasSyn) {
if (DEBUG) debugMessage("\tmethod is synthetic");
writeSynthetic();
}
if (hasCheckedExceptions) {
CheckedExceptionElement[] exceptions = m.getCheckedExceptions();
dos.writeShort(_exceptionsIndex);
int attrSize = 2 /* number_of_exceptions */ +
exceptions.length * 2 /* exception_index */;
dos.writeInt(attrSize);
dos.writeShort(exceptions.length);
if (DEBUG) debugMessage("\tmethod has " + exceptions.length
+ " checked exception(s)");
for (int e = 0; e < exceptions.length; e++) {
short cpIndex = (short) exceptions[e].getClassCPIndex();
dos.writeShort(cpIndex);
}
}
if (isCodeAvailable) {
byte[] code = m.getByteCode();
short codeAttrCount = 0;
@@ -574,7 +532,7 @@ public class ClassWriter implements /* imports */ ClassConstants
// start writing Code
dos.writeShort(_codeIndex);
writeIndex(_codeIndex);
dos.writeInt(codeSize);
if (DEBUG) debugMessage("\tcode attribute length = " + codeSize);
@@ -608,7 +566,7 @@ public class ClassWriter implements /* imports */ ClassConstants
// write LineNumberTable, if available.
if (hasLineNumberTable) {
dos.writeShort(_lineNumberTableIndex);
writeIndex(_lineNumberTableIndex);
dos.writeInt(lineNumberAttrLen);
dos.writeShort((short) lineNumberTable.length);
for (int l = 0; l < lineNumberTable.length; l++) {
@@ -619,7 +577,7 @@ public class ClassWriter implements /* imports */ ClassConstants
// write LocalVariableTable, if available.
if (hasLocalVariableTable) {
dos.writeShort((short) _localVariableTableIndex);
writeIndex((short) _localVariableTableIndex);
dos.writeInt(localVarAttrLen);
dos.writeShort((short) localVariableTable.length);
for (int l = 0; l < localVariableTable.length; l++) {
@@ -632,6 +590,22 @@ public class ClassWriter implements /* imports */ ClassConstants
}
}
if (hasCheckedExceptions) {
CheckedExceptionElement[] exceptions = m.getCheckedExceptions();
writeIndex(_exceptionsIndex);
int attrSize = 2 /* number_of_exceptions */ +
exceptions.length * 2 /* exception_index */;
dos.writeInt(attrSize);
dos.writeShort(exceptions.length);
if (DEBUG) debugMessage("\tmethod has " + exceptions.length
+ " checked exception(s)");
for (int e = 0; e < exceptions.length; e++) {
short cpIndex = (short) exceptions[e].getClassCPIndex();
dos.writeShort(cpIndex);
}
}
if (isGeneric) {
writeGenericSignature(m.getGenericSignature().asString());
}
@@ -643,7 +617,7 @@ public class ClassWriter implements /* imports */ ClassConstants
}
protected void writeGenericSignature(String signature) throws IOException {
dos.writeShort(_signatureIndex);
writeIndex(_signatureIndex);
if (DEBUG) debugMessage("signature attribute = " + _signatureIndex);
dos.writeInt(2);
Short index = (Short) utf8ToIndex.get(signature);
@@ -653,12 +627,12 @@ public class ClassWriter implements /* imports */ ClassConstants
protected void writeClassAttributes() throws IOException {
final long flags = klass.getAccessFlags();
final boolean isSyn = isSynthetic((short) flags);
final boolean hasSyn = hasSyntheticAttribute((short) flags);
// check for source file
short classAttributeCount = 0;
if (isSyn)
if (hasSyn)
classAttributeCount++;
Symbol sourceFileName = klass.getSourceFileName();
@@ -677,12 +651,12 @@ public class ClassWriter implements /* imports */ ClassConstants
dos.writeShort(classAttributeCount);
if (DEBUG) debugMessage("class attribute count = " + classAttributeCount);
if (isSyn)
if (hasSyn)
writeSynthetic();
// write SourceFile, if any
if (sourceFileName != null) {
dos.writeShort(_sourceFileIndex);
writeIndex(_sourceFileIndex);
if (DEBUG) debugMessage("source file attribute = " + _sourceFileIndex);
dos.writeInt(2);
Short index = (Short) utf8ToIndex.get(sourceFileName.asString());
@@ -697,7 +671,7 @@ public class ClassWriter implements /* imports */ ClassConstants
// write inner classes, if any
if (numInnerClasses != 0) {
dos.writeShort(_innerClassesIndex);
writeIndex(_innerClassesIndex);
final int innerAttrLen = 2 /* number_of_inner_classes */ +
numInnerClasses * (
2 /* inner_class_info_index */ +

View File

@@ -1,14 +0,0 @@
README:
This file should be located at the top of the hotspot Mercurial repository.
See http://openjdk.java.net/ for more information about the OpenJDK.
See ../README-builds.html for complete details on build machine requirements.
Simple Build Instructions:
cd make && gnumake
The files that will be imported into the jdk build will be in the "build"
directory.

View File

@@ -1,5 +1,5 @@
#
# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2006-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -31,11 +31,11 @@
#
# Don't put quotes (fail windows build).
HOTSPOT_VM_COPYRIGHT=Copyright 2008
HOTSPOT_VM_COPYRIGHT=Copyright 2009
HS_MAJOR_VER=15
HS_MAJOR_VER=16
HS_MINOR_VER=0
HS_BUILD_NUMBER=02
HS_BUILD_NUMBER=05
JDK_MAJOR_VER=1
JDK_MINOR_VER=7

View File

@@ -1,274 +0,0 @@
#!echo "This is not a shell script"
#
# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
#############################################################################
# Error
error() # message
{
echo "ERROR: $1"
exit 6
}
# Directory must exist
dirMustExist() # dir name
{
if [ ! -d "$1" ] ; then
error "Directory for $2 does not exist: $1"
fi
}
# File must exist
fileMustExist() # dir name
{
if [ ! -f "$1" ] ; then
error "File for $2 does not exist: $1"
fi
}
#############################################################################
# Should be set by JPRT as the 3 basic inputs
bootdir="${ALT_BOOTDIR}"
slashjava="${ALT_SLASH_JAVA}"
jdk_import="${ALT_JDK_IMPORT_PATH}"
# Check input
dirMustExist "${bootdir}" ALT_BOOTDIR
dirMustExist "${slashjava}" ALT_SLASH_JAVA
dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
osname=`uname -s`
if [ "${osname}" = SunOS ] ; then
# SOLARIS: Sparc or X86
osarch=`uname -p`
if [ "${osarch}" = sparc ] ; then
solaris_arch=sparc
else
solaris_arch=i386
fi
if [ "${JPRT_SOLARIS_COMPILER_NAME}" != "" ] ; then
compiler_name=${JPRT_SOLARIS_COMPILER_NAME}
else
if [ "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6" -o \
"${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6u10" -o \
"${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6perf" ] ; then
# All jdk6 builds use SS11
compiler_name=SS11
else
compiler_name=SS12
fi
fi
# Get into path (make sure it matches ALT setting)
compiler_path=${slashjava}/devtools/${solaris_arch}/SUNWspro/${compiler_name}/bin
dirMustExist "${compiler_path}" COMPILER_PATH
path4sdk=${compiler_path}
# Add basic solaris system paths
path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
# Get the previous JDK to be used to bootstrap the build
path4sdk=${bootdir}/bin:${path4sdk}
# Find GNU make
make=/usr/sfw/bin/gmake
if [ ! -f ${make} ] ; then
make=/opt/sfw/bin/gmake
if [ ! -f ${make} ] ; then
make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
fi
fi
fileMustExist "${make}" make
# File creation mask
umask 002
elif [ "${osname}" = Linux ] ; then
# LINUX: X86, AMD64
osarch=`uname -m`
if [ "${osarch}" = i686 ] ; then
linux_arch=i586
elif [ "${osarch}" = x86_64 ] ; then
linux_arch=amd64
fi
# Get the compilers into path (make sure it matches ALT setting)
compiler_path=/usr/bin
dirMustExist "${compiler_path}" COMPILER_PATH
path4sdk=${compiler_path}
# Add basic paths
path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin
# Get the previous JDK to be used to bootstrap the build
path4sdk=${bootdir}/bin:${path4sdk}
# Find GNU make
make=/usr/bin/make
fileMustExist "${make}" make
umask 002
else
# Windows: Differs on CYGWIN vs. MKS, and the compiler available.
# Also, blanks in pathnames gives GNU make headaches, so anything placed
# in any ALT_* variable should be the short windows dosname.
# WINDOWS: Install and use MKS or CYGWIN (should have already been done)
# Assumption here is that you are in a shell window via MKS or cygwin.
# MKS install should have defined the environment variable ROOTDIR.
# We also need to figure out which one we have: X86, AMD64
if [ "`echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64`" != "" ] ; then
windows_arch=amd64
else
windows_arch=i586
fi
# We need to determine if we are running a CYGWIN shell or an MKS shell
# (if uname isn't available, then it will be unix_toolset=unknown)
unix_toolset=unknown
if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
# We kind of assume ROOTDIR is where MKS is and it's ok
unix_toolset=MKS
mkshome=`dosname -s "${ROOTDIR}"`
# Utility to convert to short pathnames without spaces
dosname="${mkshome}/mksnt/dosname -s"
# Most unix utilities are in the mksnt directory of ROOTDIR
unixcommand_path="${mkshome}/mksnt"
path4sdk="${unixcommand_path}"
dirMustExist "${unixcommand_path}" UNIXCOMMAND_PATH
devtools_path="${slashjava}/devtools/win32/bin"
path4sdk="${devtools_path};${path4sdk}"
dirMustExist "${devtools_path}" DEVTOOLS_PATH
# Find GNU make
make="${devtools_path}/gnumake.exe"
fileMustExist "${make}" make
elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
# For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
unix_toolset=CYGWIN
# Utility to convert to short pathnames without spaces
dosname="/usr/bin/cygpath -a -m -s"
# Most unix utilities are in the /usr/bin
unixcommand_path="/usr/bin"
path4sdk="${unixcommand_path}"
dirMustExist "${unixcommand_path}" UNIXCOMMAND_PATH
# Find GNU make
make="${unixcommand_path}/make.exe"
fileMustExist "${make}" make
else
echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
fi
# WINDOWS: Compiler setup (nasty part)
# NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
# NOTE: CYGWIN has a link.exe too, make sure the compilers are first
if [ "${windows_arch}" = i586 ] ; then
# 32bit Windows compiler settings
# VisualStudio .NET 2003 VC++ 7.1 (VS71COMNTOOLS should be defined)
vs_root=`${dosname} "${VS71COMNTOOLS}/../.."`
# Fill in PATH, LIB, and INCLUDE (unset all others to make sure)
vc7_root="${vs_root}/Vc7"
compiler_path="${vc7_root}/bin"
platform_sdk="${vc7_root}/PlatformSDK"
# LIB and INCLUDE must use ; as a separator
include4sdk="${vc7_root}/atlmfc/include"
include4sdk="${include4sdk};${vc7_root}/include"
include4sdk="${include4sdk};${platform_sdk}/include/prerelease"
include4sdk="${include4sdk};${platform_sdk}/include"
include4sdk="${include4sdk};${vs_root}/SDK/v1.1/include"
lib4sdk="${vc7_root}/atlmfc/lib"
lib4sdk="${lib4sdk};${vc7_root}/lib"
lib4sdk="${lib4sdk};${platform_sdk}/lib/prerelease"
lib4sdk="${lib4sdk};${platform_sdk}/lib"
lib4sdk="${lib4sdk};${vs_root}/SDK/v1.1/lib"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk="${vs_root}/Common7/Tools/bin;${path4sdk}"
path4sdk="${vs_root}/SDK/v1.1/bin;${path4sdk}"
path4sdk="${vs_root}/Common7/Tools;${path4sdk}"
path4sdk="${vs_root}/Common7/Tools/bin/prerelease;${path4sdk}"
path4sdk="${vs_root}/Common7/IDE;${path4sdk}"
path4sdk="${compiler_path};${path4sdk}"
elif [ "${windows_arch}" = amd64 ] ; then
# AMD64 64bit Windows compiler settings
if [ "${MSSDK}" != "" ] ; then
platform_sdk="${MSSDK}"
else
platform_sdk=`${dosname} "C:/Program Files/Microsoft Platform SDK/"`
fi
compiler_path="${platform_sdk}/Bin/win64/x86/AMD64"
# LIB and INCLUDE must use ; as a separator
include4sdk="${platform_sdk}/Include"
include4sdk="${include4sdk};${platform_sdk}/Include/crt/sys"
include4sdk="${include4sdk};${platform_sdk}/Include/mfc"
include4sdk="${include4sdk};${platform_sdk}/Include/atl"
include4sdk="${include4sdk};${platform_sdk}/Include/crt"
lib4sdk="${platform_sdk}/Lib/AMD64"
lib4sdk="${lib4sdk};${platform_sdk}/Lib/AMD64/atlmfc"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk="${platform_sdk}/bin;${path4sdk}"
path4sdk="${compiler_path};${path4sdk}"
fi
# Export LIB and INCLUDE
unset lib
unset Lib
LIB="${lib4sdk}"
export LIB
unset include
unset Include
INCLUDE="${include4sdk}"
export INCLUDE
# Set the ALT variable
dirMustExist "${compiler_path}" COMPILER_PATH
# WINDOWS: Get the previous JDK to be used to bootstrap the build
path4sdk="${bootdir}/bin;${path4sdk}"
# Turn all \\ into /, remove duplicates and trailing /
slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
# For windows, it's hard to know where the system is, so we just add this
# to PATH.
path4sdk="${slash_path};${PATH}"
# Convert path4sdk to cygwin style
if [ "${unix_toolset}" = CYGWIN ] ; then
path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
fi
fi
# Export PATH setting
PATH="${path4sdk}"
export PATH
# Unset certain vars
unset LD_LIBRARY_PATH
unset LD_LIBRARY_PATH_32
unset LD_LIBRARY_PATH_64

View File

@@ -19,12 +19,12 @@
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
#
# Properties for jprt
# All build result bundles are full jdks, so the 64bit testing does not
# All build result bundles are full jdks, so the 64bit testing does not
# need the 32bit sibling bundle installed.
# Note: If the hotspot/make/Makefile changed to only bundle the 64bit files
# when bundling 64bit, and stripped out the 64bit files from any 32bit
@@ -46,30 +46,57 @@ jprt.my.solaris.sparc.jdk7=solaris_sparc_5.10
jprt.my.solaris.sparc.jdk6=solaris_sparc_5.8
jprt.my.solaris.sparc.jdk6perf=solaris_sparc_5.8
jprt.my.solaris.sparc.jdk6u10=solaris_sparc_5.8
jprt.my.solaris.sparc.jdk6u14=solaris_sparc_5.8
jprt.my.solaris.sparc=${jprt.my.solaris.sparc.${jprt.tools.default.release}}
jprt.my.solaris.sparcv9.jdk7=solaris_sparcv9_5.10
jprt.my.solaris.sparcv9.jdk6=solaris_sparcv9_5.8
jprt.my.solaris.sparcv9.jdk6perf=solaris_sparcv9_5.8
jprt.my.solaris.sparcv9.jdk6u10=solaris_sparcv9_5.8
jprt.my.solaris.sparcv9.jdk6u14=solaris_sparcv9_5.8
jprt.my.solaris.sparcv9=${jprt.my.solaris.sparcv9.${jprt.tools.default.release}}
jprt.my.solaris.i586.jdk7=solaris_i586_5.10
jprt.my.solaris.i586.jdk6=solaris_i586_5.8
jprt.my.solaris.i586.jdk6perf=solaris_i586_5.8
jprt.my.solaris.i586.jdk6u10=solaris_i586_5.8
jprt.my.solaris.i586.jdk6u14=solaris_i586_5.8
jprt.my.solaris.i586=${jprt.my.solaris.i586.${jprt.tools.default.release}}
jprt.my.solaris.x64.jdk7=solaris_x64_5.10
jprt.my.solaris.x64.jdk6=solaris_x64_5.10
jprt.my.solaris.x64.jdk6perf=solaris_x64_5.10
jprt.my.solaris.x64.jdk6u10=solaris_x64_5.10
jprt.my.solaris.x64.jdk6u14=solaris_x64_5.10
jprt.my.solaris.x64=${jprt.my.solaris.x64.${jprt.tools.default.release}}
jprt.my.linux.i586=linux_i586
jprt.my.linux.x64=linux_x64
jprt.my.windows.i586=windows_i586
jprt.my.windows.x64=windows_x64
jprt.my.linux.i586.jdk7=linux_i586_2.6
jprt.my.linux.i586.jdk6=linux_i586_2.4
jprt.my.linux.i586.jdk6perf=linux_i586_2.4
jprt.my.linux.i586.jdk6u10=linux_i586_2.4
jprt.my.linux.i586.jdk6u14=linux_i586_2.4
jprt.my.linux.i586=${jprt.my.linux.i586.${jprt.tools.default.release}}
jprt.my.linux.x64.jdk7=linux_x64_2.6
jprt.my.linux.x64.jdk6=linux_x64_2.4
jprt.my.linux.x64.jdk6perf=linux_x64_2.4
jprt.my.linux.x64.jdk6u10=linux_x64_2.4
jprt.my.linux.x64.jdk6u14=linux_x64_2.4
jprt.my.linux.x64=${jprt.my.linux.x64.${jprt.tools.default.release}}
jprt.my.windows.i586.jdk7=windows_i586_5.0
jprt.my.windows.i586.jdk6=windows_i586_5.0
jprt.my.windows.i586.jdk6perf=windows_i586_5.0
jprt.my.windows.i586.jdk6u10=windows_i586_5.0
jprt.my.windows.i586.jdk6u14=windows_i586_5.0
jprt.my.windows.i586=${jprt.my.windows.i586.${jprt.tools.default.release}}
jprt.my.windows.x64.jdk7=windows_x64_5.2
jprt.my.windows.x64.jdk6=windows_x64_5.2
jprt.my.windows.x64.jdk6perf=windows_x64_5.2
jprt.my.windows.x64.jdk6u10=windows_x64_5.2
jprt.my.windows.x64.jdk6u14=windows_x64_5.2
jprt.my.windows.x64=${jprt.my.windows.x64.${jprt.tools.default.release}}
# Standard list of jprt build targets for this source tree
@@ -89,60 +116,52 @@ jprt.my.solaris.sparc.test.targets= \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jvm98, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-scimark, \
${jprt.my.solaris.sparc}-product-{c1|c2}-runThese, \
${jprt.my.solaris.sparc}-product-{c1|c2}-runThese_Xcomp, \
${jprt.my.solaris.sparc}-product-{c1|c2}-runThese_Xcomp_2, \
${jprt.my.solaris.sparc}-product-{c1|c2}-runThese_Xcomp_3, \
${jprt.my.solaris.sparc}-fastdebug-c1-runThese_Xshare, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_default, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_SerialGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_ParallelGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_ParNewGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_CMS, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_default_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_SerialGC_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_ParallelGC_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_ParNewGC_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_CMS_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_G1, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCBasher_ParOldGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_default, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_SerialGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_ParallelGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_ParNewGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_CMS, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_G1, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-GCOld_ParOldGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_default, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_SerialGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_ParallelGC, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_CMS, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-scimark_2, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-scimark_3
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_G1, \
${jprt.my.solaris.sparc}-{product|fastdebug}-{c1|c2}-jbb_ParOldGC
jprt.my.solaris.sparcv9.test.targets= \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jvm98, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-scimark, \
${jprt.my.solaris.sparcv9}-product-c2-runThese, \
${jprt.my.solaris.sparcv9}-product-c2-runThese_Xcomp, \
${jprt.my.solaris.sparcv9}-product-c2-runThese_Xcomp_2, \
${jprt.my.solaris.sparcv9}-product-c2-runThese_Xcomp_3, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_default, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_SerialGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_ParallelGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_ParNewGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_CMS, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_default_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_SerialGC_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_ParallelGC_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_ParNewGC_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_CMS_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_G1, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCBasher_ParOldGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_default, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_SerialGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_ParallelGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_ParNewGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_CMS, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_G1, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-GCOld_ParOldGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_default, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_SerialGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_ParallelGC, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_CMS, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-scimark_2, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-scimark_3
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_G1, \
${jprt.my.solaris.sparcv9}-{product|fastdebug}-c2-jbb_ParOldGC
jprt.my.solaris.x64.test.targets= \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-jvm98, \
@@ -154,73 +173,80 @@ jprt.my.solaris.x64.test.targets= \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_ParallelGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_ParNewGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_CMS, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_default_2, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_SerialGC_2, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_ParallelGC_2, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_ParNewGC_2, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_CMS_2, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_G1, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCBasher_ParOldGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_default, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_SerialGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_ParallelGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_ParNewGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_CMS, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_G1, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_ParOldGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-jbb_default, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-jbb_SerialGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-jbb_ParallelGC, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-jbb_CMS
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_CMS, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_G1, \
${jprt.my.solaris.x64}-{product|fastdebug}-c2-GCOld_ParOldGC
jprt.my.solaris.i586.test.targets= \
${jprt.my.solaris.i586}-{product|fastdebug}-{c1|c2}-jvm98, \
${jprt.my.solaris.i586}-{product|fastdebug}-{c1|c2}-scimark, \
${jprt.my.solaris.i586}-product-{c1|c2}-runThese_Xcomp, \
${jprt.my.solaris.i586}-product-c2-runThese_Xcomp_2, \
${jprt.my.solaris.i586}-fastdebug-c1-runThese_Xcomp_2, \
${jprt.my.solaris.i586}-fastdebug-c1-runThese_Xcomp, \
${jprt.my.solaris.i586}-fastdebug-c1-runThese_Xshare, \
${jprt.my.solaris.i586}-product-c1-GCBasher_default, \
${jprt.my.solaris.i586}-product-c1-GCBasher_SerialGC, \
${jprt.my.solaris.i586}-product-c1-GCBasher_ParallelGC, \
${jprt.my.solaris.i586}-product-c1-GCBasher_ParNewGC, \
${jprt.my.solaris.i586}-product-c1-GCBasher_CMS, \
${jprt.my.solaris.i586}-product-c1-GCBasher_G1, \
${jprt.my.solaris.i586}-product-c1-GCBasher_ParOldGC, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_default, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_SerialGC, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_ParallelGC, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_ParNewGC, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_CMS, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_G1, \
${jprt.my.solaris.i586}-fastdebug-c2-GCBasher_ParOldGC, \
${jprt.my.solaris.i586}-product-c1-GCOld_default, \
${jprt.my.solaris.i586}-product-c1-GCOld_SerialGC, \
${jprt.my.solaris.i586}-product-c1-GCOld_ParallelGC, \
${jprt.my.solaris.i586}-product-c1-GCOld_ParNewGC, \
${jprt.my.solaris.i586}-product-c1-GCOld_CMS, \
${jprt.my.solaris.i586}-product-c1-GCOld_G1, \
${jprt.my.solaris.i586}-product-c1-GCOld_ParOldGC, \
${jprt.my.solaris.i586}-fastdebug-c2-jbb_default, \
${jprt.my.solaris.i586}-fastdebug-c2-jbb_ParallelGC, \
${jprt.my.solaris.i586}-fastdebug-c2-jbb_CMS, \
${jprt.my.solaris.i586}-{product|fastdebug}-{c1|c2}-scimark_2, \
${jprt.my.solaris.i586}-{product|fastdebug}-{c1|c2}-scimark_3
${jprt.my.solaris.i586}-fastdebug-c2-jbb_G1, \
${jprt.my.solaris.i586}-fastdebug-c2-jbb_ParOldGC
jprt.my.linux.i586.test.targets = \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-jvm98, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-scimark, \
${jprt.my.linux.i586}-product-c1-runThese_Xcomp, \
${jprt.my.linux.i586}-product-c1-runThese_Xcomp_2, \
${jprt.my.linux.i586}-product-c1-runThese_Xcomp_3, \
${jprt.my.linux.i586}-fastdebug-c1-runThese_Xshare, \
${jprt.my.linux.i586}-fastdebug-c2-runThese_Xcomp, \
${jprt.my.linux.i586}-fastdebug-c2-runThese_Xcomp_2, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_default, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_SerialGC, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParallelGC, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParNewGC, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_CMS, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_G1, \
${jprt.my.linux.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParOldGC, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_default, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_SerialGC, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_ParallelGC, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_ParNewGC, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_CMS, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_G1, \
${jprt.my.linux.i586}-product-{c1|c2}-GCOld_ParOldGC, \
${jprt.my.linux.i586}-{product|fastdebug}-c1-jbb_default, \
${jprt.my.linux.i586}-{product|fastdebug}-c1-jbb_ParallelGC, \
${jprt.my.linux.i586}-{product|fastdebug}-c1-jbb_CMS, \
${jprt.my.linux.i586}-{product|fastdebug}-c2-scimark_2, \
${jprt.my.linux.i586}-{product|fastdebug}-c2-scimark_3
${jprt.my.linux.i586}-{product|fastdebug}-c1-jbb_G1, \
${jprt.my.linux.i586}-{product|fastdebug}-c1-jbb_ParOldGC
jprt.my.linux.x64.test.targets = \
${jprt.my.linux.x64}-{product|fastdebug}-c2-jvm98, \
@@ -230,15 +256,19 @@ jprt.my.linux.x64.test.targets = \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCBasher_ParallelGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCBasher_ParNewGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCBasher_CMS, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCBasher_G1, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCBasher_ParOldGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_default, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_SerialGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_ParallelGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_ParNewGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_CMS, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_G1, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-GCOld_ParOldGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-jbb_default, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-jbb_ParallelGC, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-scimark_2, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-scimark_3
${jprt.my.linux.x64}-{product|fastdebug}-c2-jbb_G1, \
${jprt.my.linux.x64}-{product|fastdebug}-c2-jbb_ParOldGC
jprt.my.windows.i586.test.targets = \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-jvm98, \
@@ -251,16 +281,20 @@ jprt.my.windows.i586.test.targets = \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParallelGC, \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParNewGC, \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-GCBasher_CMS, \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-GCBasher_G1, \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-GCBasher_ParOldGC, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_default, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_SerialGC, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_ParallelGC, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_ParNewGC, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_CMS, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_G1, \
${jprt.my.windows.i586}-product-{c1|c2}-GCOld_ParOldGC, \
${jprt.my.windows.i586}-{product|fastdebug}-{c1|c2}-jbb_default, \
${jprt.my.windows.i586}-product-{c1|c2}-jbb_ParallelGC, \
${jprt.my.windows.i586}-product-{c1|c2}-jbb_CMS, \
${jprt.my.windows.i586}-product-{c1|c2}-scimark_2, \
${jprt.my.windows.i586}-product-{c1|c2}-scimark_3
${jprt.my.windows.i586}-product-{c1|c2}-jbb_G1, \
${jprt.my.windows.i586}-product-{c1|c2}-jbb_ParOldGC
jprt.my.windows.x64.test.targets = \
${jprt.my.windows.x64}-{product|fastdebug}-c2-jvm98, \
@@ -272,16 +306,20 @@ jprt.my.windows.x64.test.targets = \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCBasher_ParallelGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCBasher_ParNewGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCBasher_CMS, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCBasher_G1, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCBasher_ParOldGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_default, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_SerialGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_ParallelGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_ParNewGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_CMS, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_G1, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-GCOld_ParOldGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-jbb_default, \
${jprt.my.windows.x64}-product-c2-jbb_CMS, \
${jprt.my.windows.x64}-product-c2-jbb_ParallelGC, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-scimark_2, \
${jprt.my.windows.x64}-{product|fastdebug}-c2-scimark_3
${jprt.my.windows.x64}-product-c2-jbb_G1, \
${jprt.my.windows.x64}-product-c2-jbb_ParOldGC
# The complete list of test targets for jprt
@@ -297,7 +335,19 @@ jprt.test.targets = \
# The default test/Makefile targets that should be run
# Example:
# jprt.make.rule.test.targets=*-*-*-packtest
#jprt.make.rule.test.targets=*-product-*-packtest
jprt.make.rule.test.targets = \
${jprt.my.solaris.sparc}-*-c1-clienttest, \
${jprt.my.solaris.i586}-*-c1-clienttest, \
${jprt.my.linux.i586}-*-c1-clienttest, \
${jprt.my.windows.i586}-*-c1-clienttest, \
${jprt.my.solaris.sparc}-*-c2-servertest, \
${jprt.my.solaris.sparcv9}-*-c2-servertest, \
${jprt.my.solaris.i586}-*-c2-servertest, \
${jprt.my.solaris.x64}-*-c2-servertest, \
${jprt.my.linux.i586}-*-c2-servertest, \
${jprt.my.linux.x64}-*-c2-servertest, \
${jprt.my.windows.i586}-*-c2-servertest, \
${jprt.my.windows.x64}-*-c2-servertest

Some files were not shown because too many files have changed in this diff Show More