Compare commits

...

3590 Commits

Author SHA1 Message Date
J. Duke
7e5fa723b7 Merge 2017-07-05 18:59:43 +02:00
J. Duke
09616341fc Merge 2017-07-05 18:59:39 +02:00
J. Duke
9c1696eec9 Merge 2017-07-05 18:59:36 +02:00
J. Duke
b7f5fab986 Merge 2017-07-05 18:59:33 +02:00
J. Duke
364b77d04c Merge 2017-07-05 18:59:30 +02:00
J. Duke
a07854c2f9 Merge 2017-07-05 18:59:27 +02:00
J. Duke
0a6965d28e Merge 2017-07-05 18:59:23 +02:00
J. Duke
0c2edc3123 Merge 2017-07-05 18:59:19 +02:00
J. Duke
3d1ff1654d Added tag jdk8-b94 for changeset 0d804e3b955d 2017-07-05 18:59:09 +02:00
J. Duke
3e0356fb8d Merge 2017-07-05 18:59:08 +02:00
J. Duke
11e84e1669 Merge 2017-07-05 18:59:05 +02:00
J. Duke
ff4b3de36b Merge 2017-07-05 18:58:59 +02:00
J. Duke
5524bbbc2f Merge 2017-07-05 18:58:56 +02:00
J. Duke
4357f4217d Merge 2017-07-05 18:58:51 +02:00
J. Duke
1489ab890e Merge 2017-07-05 18:58:44 +02:00
J. Duke
f257630126 Merge 2017-07-05 18:58:40 +02:00
J. Duke
cdda950c18 Merge 2017-07-05 18:58:25 +02:00
J. Duke
47f305febb Added tag jdk8-b93 for changeset b72ae39e1329 2017-07-05 18:58:01 +02:00
J. Duke
064e98a35c Merge 2017-07-05 18:58:01 +02:00
J. Duke
ceda2e1740 Merge 2017-07-05 18:57:58 +02:00
J. Duke
9e698f836c Merge 2017-07-05 18:57:52 +02:00
J. Duke
98189b206d Merge 2017-07-05 18:57:48 +02:00
J. Duke
4a17ffa9a3 Merge 2017-07-05 18:57:43 +02:00
J. Duke
bcb6b966ac Merge 2017-07-05 18:57:34 +02:00
J. Duke
9d6052a607 Merge 2017-07-05 18:57:31 +02:00
J. Duke
4795c351a2 Merge 2017-07-05 18:57:17 +02:00
J. Duke
8b668ed355 Added tag jdk8-b92 for changeset 2fd6acba737b 2017-07-05 18:57:05 +02:00
J. Duke
22e500e3a9 Merge 2017-07-05 18:57:05 +02:00
J. Duke
45acc89ca8 Merge 2017-07-05 18:57:02 +02:00
J. Duke
f587b6480f Merge 2017-07-05 18:56:58 +02:00
J. Duke
01311d09ca Merge 2017-07-05 18:56:55 +02:00
J. Duke
284cdb2375 Merge 2017-07-05 18:56:52 +02:00
J. Duke
8c3fbae1cb Merge 2017-07-05 18:56:49 +02:00
J. Duke
d1b3a0ef40 Merge 2017-07-05 18:56:46 +02:00
J. Duke
300d18ecae Merge 2017-07-05 18:56:43 +02:00
J. Duke
a4a4a20033 Added tag jdk8-b91 for changeset 80b6c3172dc2 2017-07-05 18:56:23 +02:00
J. Duke
82d185e648 Merge 2017-07-05 18:56:23 +02:00
J. Duke
fba96d974c Merge 2017-07-05 18:56:20 +02:00
J. Duke
7f1239b618 Merge 2017-07-05 18:56:10 +02:00
J. Duke
9654d9fd4e Merge 2017-07-05 18:56:07 +02:00
J. Duke
791be4a8f7 Merge 2017-07-05 18:56:02 +02:00
J. Duke
5e2bdcc182 Merge 2017-07-05 18:55:55 +02:00
J. Duke
28c326c6e4 Merge 2017-07-05 18:55:51 +02:00
J. Duke
d90b1672d9 Merge 2017-07-05 18:55:30 +02:00
J. Duke
67bf5b90b2 Added tag jdk8-b90 for changeset f09ab0c41618 2017-07-05 18:55:09 +02:00
J. Duke
aaf112686c Merge 2017-07-05 18:55:08 +02:00
J. Duke
6c7773e6c9 Merge 2017-07-05 18:55:05 +02:00
J. Duke
c06a3ecb82 Merge 2017-07-05 18:55:02 +02:00
J. Duke
069406faae Merge 2017-07-05 18:54:59 +02:00
J. Duke
451625302c Merge 2017-07-05 18:54:56 +02:00
J. Duke
34b18250dd Merge 2017-07-05 18:54:54 +02:00
J. Duke
cc11637d3a Merge 2017-07-05 18:54:51 +02:00
J. Duke
72cf5eb462 Merge 2017-07-05 18:54:47 +02:00
J. Duke
7b4575be57 Added tag jdk8-b89 for changeset 4dec41b3c5e3 2017-07-05 18:54:28 +02:00
J. Duke
2fa38a69d0 Merge 2017-07-05 18:54:28 +02:00
J. Duke
20771a3209 Merge 2017-07-05 18:54:25 +02:00
J. Duke
544239a437 Merge 2017-07-05 18:54:19 +02:00
J. Duke
1d235ec699 Merge 2017-07-05 18:54:15 +02:00
J. Duke
f50a8820d8 Merge 2017-07-05 18:54:10 +02:00
J. Duke
cdda752b91 Merge 2017-07-05 18:54:01 +02:00
J. Duke
5664743e2b Merge 2017-07-05 18:53:57 +02:00
J. Duke
22078530b9 Merge 2017-07-05 18:53:37 +02:00
J. Duke
fba9ae8ed6 Added tag jdk8-b88 for changeset e517701a4d0e 2017-07-05 18:53:07 +02:00
J. Duke
39b2afb3bb Merge 2017-07-05 18:53:07 +02:00
J. Duke
8375387247 Merge 2017-07-05 18:53:03 +02:00
J. Duke
c9b2f4a531 Merge 2017-07-05 18:53:00 +02:00
J. Duke
fe6e42b0db Merge 2017-07-05 18:52:57 +02:00
J. Duke
2d130e7286 Merge 2017-07-05 18:52:54 +02:00
J. Duke
8b8f081184 Merge 2017-07-05 18:52:51 +02:00
J. Duke
2a24c9dd34 Merge 2017-07-05 18:52:47 +02:00
J. Duke
e9402cefed Merge 2017-07-05 18:52:40 +02:00
J. Duke
8a706d1baa Added tag jdk8-b87 for changeset 5ebf6c63714d 2017-07-05 18:52:12 +02:00
J. Duke
662cdf0746 Merge 2017-07-05 18:52:11 +02:00
J. Duke
b176d54009 Merge 2017-07-05 18:52:06 +02:00
J. Duke
6a15a5ac98 Merge 2017-07-05 18:51:56 +02:00
J. Duke
c5d73ecf20 Merge 2017-07-05 18:51:49 +02:00
J. Duke
3ccb9ebe3f Merge 2017-07-05 18:51:42 +02:00
J. Duke
345a01c826 Merge 2017-07-05 18:51:33 +02:00
J. Duke
58d2b802ce Merge 2017-07-05 18:51:29 +02:00
J. Duke
25ddce8b61 Merge 2017-07-05 18:51:01 +02:00
J. Duke
72f0064b92 Added tag jdk8-b86 for changeset da9a4c931281 2017-07-05 18:50:43 +02:00
J. Duke
686ff53731 Merge 2017-07-05 18:50:42 +02:00
J. Duke
997ebf974a Merge 2017-07-05 18:50:37 +02:00
J. Duke
60ff50c999 Merge 2017-07-05 18:50:27 +02:00
J. Duke
9d3d75a613 Merge 2017-07-05 18:50:18 +02:00
J. Duke
f4df0f337b Merge 2017-07-05 18:50:13 +02:00
J. Duke
37e4aa7317 Merge 2017-07-05 18:50:02 +02:00
J. Duke
303b044836 Merge 2017-07-05 18:49:58 +02:00
J. Duke
4e1acb404d Merge 2017-07-05 18:49:41 +02:00
J. Duke
cb3ec7f7b4 Added tag jdk8-b85 for changeset 1872c1252909 2017-07-05 18:49:17 +02:00
J. Duke
7f1db5eedb Merge 2017-07-05 18:49:16 +02:00
J. Duke
888d4f82fb Merge 2017-07-05 18:49:12 +02:00
J. Duke
ea34eda15f Merge 2017-07-05 18:49:07 +02:00
J. Duke
0028242043 Merge 2017-07-05 18:49:02 +02:00
J. Duke
cf7a44f87b Merge 2017-07-05 18:48:57 +02:00
J. Duke
22e003eaf2 Merge 2017-07-05 18:48:53 +02:00
J. Duke
4a7593f81e Merge 2017-07-05 18:48:48 +02:00
J. Duke
2e33ccc7eb Merge 2017-07-05 18:48:42 +02:00
J. Duke
8e31509df1 Added tag jdk8-b84 for changeset d7ad0dfaa411 2017-07-05 18:48:17 +02:00
J. Duke
9e90d15aa7 Merge 2017-07-05 18:48:16 +02:00
J. Duke
617731795a Merge 2017-07-05 18:48:12 +02:00
J. Duke
8ec2186a48 Merge 2017-07-05 18:48:02 +02:00
J. Duke
fcec1a91d5 Merge 2017-07-05 18:47:56 +02:00
J. Duke
5998e0e45b Merge 2017-07-05 18:47:51 +02:00
J. Duke
1f4aa2109f Merge 2017-07-05 18:47:43 +02:00
J. Duke
43f397c799 Merge 2017-07-05 18:47:36 +02:00
J. Duke
9343edfb20 Merge 2017-07-05 18:47:22 +02:00
J. Duke
916bf9b7c9 Added tag jdk8-b83 for changeset bcebd3fdefc9 2017-07-05 18:46:58 +02:00
J. Duke
7c84115ffb Merge 2017-07-05 18:46:58 +02:00
J. Duke
eb8dca2e8e Merge 2017-07-05 18:46:53 +02:00
J. Duke
a1bdced02e Merge 2017-07-05 18:46:49 +02:00
J. Duke
1374e6424f Merge 2017-07-05 18:46:44 +02:00
J. Duke
4a96a19a82 Merge 2017-07-05 18:46:40 +02:00
J. Duke
ba40ba24f6 Merge 2017-07-05 18:46:36 +02:00
J. Duke
fb61271315 Merge 2017-07-05 18:46:31 +02:00
J. Duke
29149f4a89 Merge 2017-07-05 18:46:26 +02:00
J. Duke
5bfab7cabf Added tag jdk8-b82 for changeset 5e8c55025644 2017-07-05 18:46:03 +02:00
J. Duke
61cac54a92 Merge 2017-07-05 18:46:02 +02:00
J. Duke
f84e5c27ae Merge 2017-07-05 18:45:58 +02:00
J. Duke
c6e94d7497 Merge 2017-07-05 18:45:42 +02:00
J. Duke
05752298fa Merge 2017-07-05 18:45:37 +02:00
J. Duke
37946da7f0 Merge 2017-07-05 18:45:29 +02:00
J. Duke
c75fdc77ac Merge 2017-07-05 18:45:10 +02:00
J. Duke
8535ebcde0 Merge 2017-07-05 18:45:01 +02:00
J. Duke
04b30b778e Merge 2017-07-05 18:44:23 +02:00
J. Duke
781c673b59 Added tag jdk8-b81 for changeset e41d716405b2 2017-07-05 18:43:55 +02:00
J. Duke
ac2b8241a3 Merge 2017-07-05 18:43:54 +02:00
J. Duke
884fa55e95 Merge 2017-07-05 18:43:50 +02:00
J. Duke
98551c5874 Merge 2017-07-05 18:43:47 +02:00
J. Duke
bdf5a70edb Merge 2017-07-05 18:43:43 +02:00
J. Duke
9fed0f85fa Merge 2017-07-05 18:43:39 +02:00
J. Duke
df056e86c7 Merge 2017-07-05 18:43:35 +02:00
J. Duke
faf975f3d3 Merge 2017-07-05 18:43:29 +02:00
J. Duke
3a5d99bd97 Added tag jdk8-b80 for changeset 3fa21fbf9be7 2017-07-05 18:43:10 +02:00
J. Duke
ef906c89ce Merge 2017-07-05 18:43:09 +02:00
J. Duke
97a6b4b6e8 Merge 2017-07-05 18:43:05 +02:00
J. Duke
b5abced08b Merge 2017-07-05 18:43:01 +02:00
J. Duke
59726118ff Merge 2017-07-05 18:42:57 +02:00
J. Duke
9425da39e5 Merge 2017-07-05 18:42:53 +02:00
J. Duke
38c494e569 Merge 2017-07-05 18:42:49 +02:00
J. Duke
77a4ce5569 Merge 2017-07-05 18:42:42 +02:00
J. Duke
6750549bb0 Added tag jdk8-b79 for changeset a1313a8d90d1 2017-07-05 18:42:22 +02:00
J. Duke
950ddf6143 Merge 2017-07-05 18:42:22 +02:00
J. Duke
8ce6a3fbf9 Merge 2017-07-05 18:42:17 +02:00
J. Duke
356fb57e35 Merge 2017-07-05 18:42:13 +02:00
J. Duke
4fa873392e Merge 2017-07-05 18:42:09 +02:00
J. Duke
d9b7356004 Merge 2017-07-05 18:42:05 +02:00
J. Duke
f75bc2e199 Merge 2017-07-05 18:42:00 +02:00
J. Duke
eb80cad549 Merge 2017-07-05 18:41:55 +02:00
J. Duke
713c85dda8 Added tag jdk8-b78 for changeset 6d3dcd34b5b9 2017-07-05 18:41:34 +02:00
J. Duke
93a052bab3 Merge 2017-07-05 18:41:33 +02:00
J. Duke
2414951dd3 Merge 2017-07-05 18:41:29 +02:00
J. Duke
050eb5168e Merge 2017-07-05 18:41:19 +02:00
J. Duke
b72b8e194e Merge 2017-07-05 18:41:15 +02:00
J. Duke
b74c7b3808 Merge 2017-07-05 18:41:10 +02:00
J. Duke
7cd6e230ea Merge 2017-07-05 18:41:05 +02:00
J. Duke
8911e12adf Merge 2017-07-05 18:40:46 +02:00
J. Duke
ae06986c80 Added tag jdk8-b77 for changeset d17eb2e13e36 2017-07-05 18:40:21 +02:00
J. Duke
7ba83041b1 Merge 2017-07-05 18:40:20 +02:00
J. Duke
171e39a058 Merge 2017-07-05 18:40:16 +02:00
J. Duke
d0a89bf0ce Merge 2017-07-05 18:40:08 +02:00
J. Duke
86b46f2113 Merge 2017-07-05 18:40:04 +02:00
J. Duke
94d3e22c87 Merge 2017-07-05 18:39:58 +02:00
J. Duke
2907a0c10f Merge 2017-07-05 18:39:54 +02:00
J. Duke
d053ad2a28 Merge 2017-07-05 18:39:42 +02:00
J. Duke
918f015f18 Added tag jdk8-b76 for changeset f407160c280d 2017-07-05 18:39:14 +02:00
J. Duke
9a87fa5db9 Merge 2017-07-05 18:39:13 +02:00
J. Duke
89d052603d Merge 2017-07-05 18:39:09 +02:00
J. Duke
236fc341a2 Merge 2017-07-05 18:39:05 +02:00
J. Duke
154d04e929 Merge 2017-07-05 18:39:00 +02:00
J. Duke
b3c7ed26d3 Merge 2017-07-05 18:38:56 +02:00
J. Duke
421567fdaa Merge 2017-07-05 18:38:51 +02:00
J. Duke
511a59c696 Merge 2017-07-05 18:38:46 +02:00
J. Duke
828d2063d2 Added tag jdk8-b75 for changeset f1478a6d25fd 2017-07-05 18:38:33 +02:00
J. Duke
5f0d1aff63 Merge 2017-07-05 18:38:32 +02:00
J. Duke
25414e9507 Merge 2017-07-05 18:38:28 +02:00
J. Duke
64e10ad1ad Merge 2017-07-05 18:38:17 +02:00
J. Duke
4bd5ee8bdb Merge 2017-07-05 18:38:13 +02:00
J. Duke
80de74d575 Merge 2017-07-05 18:38:07 +02:00
J. Duke
12898a0d25 Merge 2017-07-05 18:38:03 +02:00
J. Duke
568e4e56e0 Merge 2017-07-05 18:37:42 +02:00
J. Duke
8a530c580d Added tag jdk8-b74 for changeset f627eff81962 2017-07-05 18:37:14 +02:00
J. Duke
75c48b0d1b Merge 2017-07-05 18:37:13 +02:00
J. Duke
bed477d90d Merge 2017-07-05 18:37:09 +02:00
J. Duke
0c10a5d7eb Merge 2017-07-05 18:37:04 +02:00
J. Duke
6c2dcf473c Merge 2017-07-05 18:36:58 +02:00
J. Duke
05154fcb04 Merge 2017-07-05 18:36:52 +02:00
J. Duke
a894ac0ae7 Merge 2017-07-05 18:36:48 +02:00
J. Duke
f0dc1b9881 Merge 2017-07-05 18:36:38 +02:00
J. Duke
7d55c30765 Added tag jdk8-b73 for changeset fe94b40ffd93 2017-07-05 18:36:12 +02:00
J. Duke
1c11f83e92 Merge 2017-07-05 18:36:11 +02:00
J. Duke
16753c9198 Merge 2017-07-05 18:36:08 +02:00
J. Duke
dd65c08868 Merge 2017-07-05 18:36:01 +02:00
J. Duke
0b803c8b53 Merge 2017-07-05 18:35:57 +02:00
J. Duke
0a22e173d6 Merge 2017-07-05 18:35:53 +02:00
J. Duke
3d2f01879c Merge 2017-07-05 18:35:49 +02:00
J. Duke
8cbe3d2743 Merge 2017-07-05 18:35:38 +02:00
J. Duke
be76fc517f Added tag jdk8-b72 for changeset 6725b3961f98 2017-07-05 18:35:27 +02:00
J. Duke
8261ee6da3 Merge 2017-07-05 18:35:26 +02:00
J. Duke
9c1e33d08c Merge 2017-07-05 18:35:22 +02:00
J. Duke
77fb006441 Merge 2017-07-05 18:35:18 +02:00
J. Duke
7d50a99bd8 Merge 2017-07-05 18:35:14 +02:00
J. Duke
c430497460 Merge 2017-07-05 18:35:11 +02:00
J. Duke
b975e9076b Merge 2017-07-05 18:35:07 +02:00
J. Duke
ad5c81704c Merge 2017-07-05 18:35:03 +02:00
J. Duke
f62e421be4 Added tag jdk8-b71 for changeset a41ada2ed4ef 2017-07-05 18:34:52 +02:00
J. Duke
e7187d14db Merge 2017-07-05 18:34:52 +02:00
J. Duke
404d7476b9 Merge 2017-07-05 18:34:47 +02:00
J. Duke
b390a90275 Merge 2017-07-05 18:34:39 +02:00
J. Duke
28e7395a79 Merge 2017-07-05 18:34:35 +02:00
J. Duke
7c037a69a2 Merge 2017-07-05 18:34:29 +02:00
J. Duke
caab605a3c Merge 2017-07-05 18:34:24 +02:00
J. Duke
30e0acc2eb Merge 2017-07-05 18:34:10 +02:00
J. Duke
ad2d6c7304 Added tag jdk8-b70 for changeset 0d625373c69e 2017-07-05 18:33:59 +02:00
J. Duke
78bc845d66 Merge 2017-07-05 18:33:58 +02:00
J. Duke
15c1ac891b Merge 2017-07-05 18:33:53 +02:00
J. Duke
5defb71047 Merge 2017-07-05 18:33:48 +02:00
J. Duke
922add969a Merge 2017-07-05 18:33:44 +02:00
J. Duke
5e32cc4aa1 Merge 2017-07-05 18:33:40 +02:00
J. Duke
9666b7da3f Merge 2017-07-05 18:33:36 +02:00
J. Duke
18c668e87a Merge 2017-07-05 18:33:29 +02:00
J. Duke
fe3ab5fb83 Added tag jdk8-b69 for changeset adb5171c554e 2017-07-05 18:33:13 +02:00
J. Duke
902594c3e6 Merge 2017-07-05 18:33:13 +02:00
J. Duke
4f99e62a5c Merge 2017-07-05 18:33:09 +02:00
J. Duke
167e25a35a Merge 2017-07-05 18:33:03 +02:00
J. Duke
9dfb5d8720 Merge 2017-07-05 18:32:59 +02:00
J. Duke
ee4833d707 Merge 2017-07-05 18:32:55 +02:00
J. Duke
a6b48817ff Merge 2017-07-05 18:32:51 +02:00
J. Duke
8ecb1333e7 Merge 2017-07-05 18:32:40 +02:00
J. Duke
5426c55692 Added tag jdk8-b68 for changeset cb33628d4e8f 2017-07-05 18:32:27 +02:00
J. Duke
faaa074af7 Merge 2017-07-05 18:32:26 +02:00
J. Duke
156097f517 Merge 2017-07-05 18:32:22 +02:00
J. Duke
35d6f09bb4 Merge 2017-07-05 18:32:16 +02:00
J. Duke
b8790e0e70 Merge 2017-07-05 18:32:12 +02:00
J. Duke
5ebc8f4779 Merge 2017-07-05 18:32:08 +02:00
J. Duke
1faf4f7e32 Merge 2017-07-05 18:32:03 +02:00
J. Duke
ce594a00c5 Merge 2017-07-05 18:31:45 +02:00
J. Duke
b2bf35c6d8 Added tag jdk8-b67 for changeset 76cc9bd3ece4 2017-07-05 18:31:28 +02:00
J. Duke
924beaaf2c Merge 2017-07-05 18:31:27 +02:00
J. Duke
90cbbab800 Merge 2017-07-05 18:31:23 +02:00
J. Duke
04266857c4 Merge 2017-07-05 18:31:19 +02:00
J. Duke
91c5b72633 Merge 2017-07-05 18:31:15 +02:00
J. Duke
5229273660 Merge 2017-07-05 18:31:12 +02:00
J. Duke
57c273a689 Merge 2017-07-05 18:31:08 +02:00
J. Duke
ab4646a034 Merge 2017-07-05 18:31:05 +02:00
J. Duke
b94c2e86de Added tag jdk8-b66 for changeset 17820b958ae8 2017-07-05 18:30:51 +02:00
J. Duke
81ecd2932e Merge 2017-07-05 18:30:50 +02:00
J. Duke
eedb7e6e6d Merge 2017-07-05 18:30:46 +02:00
J. Duke
594390779b Merge 2017-07-05 18:30:37 +02:00
J. Duke
4374464e64 Merge 2017-07-05 18:30:33 +02:00
J. Duke
160ee581b2 Merge 2017-07-05 18:30:29 +02:00
J. Duke
1113ececbf Merge 2017-07-05 18:30:25 +02:00
J. Duke
57b4c14b54 Merge 2017-07-05 18:30:15 +02:00
J. Duke
c7ff8ac152 Added tag jdk8-b65 for changeset a2cf4d4a4843 2017-07-05 18:29:57 +02:00
David Katleman
e41e1b6bef Merge 2013-06-18 15:32:53 -07:00
David Katleman
e0c3c4d662 Merge 2013-06-18 15:32:06 -07:00
Erik Joelsson
3514ec5324 8015377: Support using compiler devkits on Linux
Reviewed-by: tbell, dholmes
2013-06-18 11:30:36 +02:00
Erik Joelsson
6cf0a1dd59 8014404: Debug flag not added to jdk native compile when --enable-debug is set
Reviewed-by: tbell
2013-06-18 11:29:34 +02:00
Alejandro Murillo
ca3d100365 Merge 2013-06-14 07:26:49 -07:00
Erik Joelsson
e7d2bb0ca4 8016520: jdk native build does not fail on compilation error on windows
Reviewed-by: tbell
2013-06-14 13:30:14 +02:00
Alejandro Murillo
15fcf20d64 Added tag hs25-b37 for changeset d8e8521557b2 2013-06-13 23:28:20 -07:00
Alejandro Murillo
a848daadd7 Merge 2013-06-13 23:28:20 -07:00
David Katleman
e2613d3b41 Added tag jdk8-b94 for changeset ac5976df1b9c 2013-06-13 09:49:27 -07:00
David Katleman
18aa8b4042 Added tag jdk8-b94 for changeset f7887244ecd2 2013-06-13 09:49:19 -07:00
David Katleman
343d4c4856 Added tag jdk8-b94 for changeset 166c25c5681e 2013-06-13 09:48:58 -07:00
David Katleman
cbd6d51f32 Added tag jdk8-b94 for changeset 62123b1d4f2a 2013-06-13 09:48:47 -07:00
David Katleman
5924aa4ae1 Added tag jdk8-b94 for changeset a825382915a9 2013-06-13 09:48:45 -07:00
David Katleman
ddf560776e Added tag jdk8-b94 for changeset 847c7c6c4e4a 2013-06-13 09:48:27 -07:00
David Katleman
a75781d8eb Added tag jdk8-b94 for changeset 1921ac5090fc 2013-06-13 09:48:22 -07:00
David Katleman
bf11a4380b Added tag jdk8-b94 for changeset 4ee958900191 2013-06-13 09:48:20 -07:00
Erik Joelsson
01de8f81d7 8014231: --with-alsa configuration options don't add include or lib directories to proper flags
Reviewed-by: tbell
2013-06-13 14:04:54 +02:00
Erik Joelsson
78a2cedbb6 8014231: --with-alsa configuration options don't add include or lib directories to proper flags
Reviewed-by: tbell
2013-06-13 14:04:32 +02:00
Erik Joelsson
c77b1cf637 Merge 2013-06-12 10:33:06 +02:00
Erik Joelsson
90824ea949 Merge 2013-06-12 10:33:04 +02:00
Erik Joelsson
d3187c76c8 8010785: JDK 8 build on Linux fails with new build mechanism
Reviewed-by: dholmes, tbell
2013-06-11 13:26:15 +02:00
Erik Joelsson
fcb2ec8d6f 8010785: JDK 8 build on Linux fails with new build mechanism
Reviewed-by: dholmes, tbell
2013-06-11 13:25:21 +02:00
Erik Joelsson
c6a5dcd8bf 8008707: build-infra: Closed (deploy) can't be built using environment from SDK SetEnv.cmd
Reviewed-by: tbell
2013-06-11 13:08:02 +02:00
Lana Steuck
e5baf01f42 Merge 2013-06-10 17:04:30 -07:00
Lana Steuck
622541203a Merge 2013-06-10 17:04:18 -07:00
Lana Steuck
29bddce0bb Merge 2013-06-10 17:03:06 -07:00
Lana Steuck
aec2c692b5 Merge 2013-06-10 16:59:58 -07:00
Staffan Larsen
be7ed4cfc7 8005008: Add Java Flight Recorder Phase II
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Bengt Rutisson <bengt.rutisson@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Erik Gahlin <erik.gahlin@oracle.com>
Co-authored-by: Erik Helin <erik.helin@oracle.com>
Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>
Co-authored-by: Keith McGuigan <keith.mcguigan@oracle.com>
Co-authored-by: Mattias Tobiasson <mattias.tobiasson@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Mikael Auno <mikael.auno@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Nils Loodin <nils.loodin@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Reviewed-by: erikj
2013-06-10 11:33:50 +02:00
Staffan Larsen
718f3252f6 8005849: JEP 167: Event-Based JVM Tracing
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Bengt Rutisson <bengt.rutisson@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Erik Gahlin <erik.gahlin@oracle.com>
Co-authored-by: Erik Helin <erik.helin@oracle.com>
Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>
Co-authored-by: Keith McGuigan <keith.mcguigan@oracle.com>
Co-authored-by: Mattias Tobiasson <mattias.tobiasson@oracle.com>
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Co-authored-by: Mikael Auno <mikael.auno@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Nils Loodin <nils.loodin@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Reviewed-by: acorn, coleenp, sla
2013-06-10 11:30:51 +02:00
Alejandro Murillo
6b2c468c35 8016078: new hotspot build - hs25-b37
Reviewed-by: jcoomes
2013-06-07 09:33:01 -07:00
Alejandro Murillo
8030137fd5 Added tag hs25-b36 for changeset 0403dabe9186 2013-06-07 09:25:19 -07:00
Alejandro Murillo
d43d80543c Merge 2013-06-07 09:25:18 -07:00
Christine Lu
f80e242127 Added tag jdk8-b93 for changeset 0fc814e0feae 2013-06-06 20:48:44 -07:00
Vladimir Kozlov
e62cfbfd5f Merge 2013-06-06 11:02:25 -07:00
David Katleman
e142a2e82d Added tag jdk8-b93 for changeset 1697301ac053 2013-06-06 09:55:26 -07:00
David Katleman
5de9fe6192 Added tag jdk8-b93 for changeset 9bf66362d942 2013-06-06 09:55:00 -07:00
David Katleman
5df715fef2 Added tag jdk8-b93 for changeset a233c04832cf 2013-06-06 09:54:43 -07:00
David Katleman
a273490f39 Added tag jdk8-b93 for changeset 3ea33579af2b 2013-06-06 09:54:40 -07:00
David Katleman
7c89126c98 Added tag jdk8-b93 for changeset 2b7343cbcbbf 2013-06-06 09:54:16 -07:00
David Katleman
45fa673992 Added tag jdk8-b93 for changeset 3898a926fa12 2013-06-06 09:54:05 -07:00
David Katleman
f6fce94513 Added tag jdk8-b93 for changeset 2567cad1138a 2013-06-06 09:54:03 -07:00
Albert Noll
aa61dce719 8014246: remove assert to catch access to object headers in index_oop_from_field_offset_long
Reviewed-by: twisti, jrose
2013-06-06 09:29:38 -07:00
Daniel D. Daugherty
7771d30db3 Merge 2013-06-06 05:56:33 -07:00
David Katleman
83d9be97c9 6983966: remove lzma and upx from repository JDK8
Reviewed-by: tbell, paulk, ngthomas
2013-06-05 15:25:09 -07:00
David Katleman
91f5800bbb 6983966: remove lzma and upx from repository JDK8
Reviewed-by: tbell, paulk, ngthomas
2013-06-05 15:20:35 -07:00
Lana Steuck
17b2b94a22 Merge 2013-06-05 12:31:59 -07:00
Lana Steuck
85653af175 Merge 2013-06-05 12:30:02 -07:00
Gerard Ziemski
2fad2249a2 8009302: Mac OS X: JVM crash on infinite recursion on Appkit Thread
Use SA_ONSTACK flag to ensure signal gets delivered properly.

Reviewed-by: dholmes, coleenp
2013-06-05 14:12:49 -04:00
Lana Steuck
1ba27fe015 Merge 2013-06-05 09:52:41 -07:00
Nils Loodin
b46e7f76d5 Merge 2013-06-05 09:47:27 -07:00
Lana Steuck
eb1aa4d2f9 Merge 2013-06-05 09:16:24 -07:00
Jim Laskey
b5ed9b26dc Merge 2013-06-05 12:54:21 -03:00
James Laskey
6b7b9e67e2 8015910: Nashorn JavaFX includes are out of sync with JavaFX repo
Reviewed-by: sundar
2013-06-05 12:41:09 -03:00
Frederic Parain
f405277c72 7150256: Add back Diagnostic Command JMX API
Reviewed-by: mchung, jbachorik
2013-06-05 08:41:02 -07:00
Chris Hegarty
317fbcc0e8 8015963: Add at since tags to new ConcurrentHashMap methods
Reviewed-by: shade, martin
2013-06-05 16:23:23 +01:00
Chris Hegarty
8b35e25262 8011719: Properties.loadFromXML fails with a chunked HTTP connection
Reviewed-by: michaelm
2013-06-05 16:06:28 +01:00
Dmitry Samersoff
ee8568fe00 8015604: JDP packets containing ideographic characters are broken
Code uses string length rather than byte array length and non ascii entry brakes packet.

Reviewed-by: dholmes, jbachorik, sla
2013-06-05 18:20:34 +04:00
Sergey Malenkov
332b758ab0 8013370: Null pointer exception when adding more than 9 accelators to a JMenuBar
Reviewed-by: serb
2013-06-05 18:15:58 +04:00
Anton Tarasov
ff6cb043ba 8015339: Correct a wording in javadoc of java.awt.ContainerOrderFocusTraversalPolicy
Reviewed-by: art, anthony
2013-06-05 17:44:50 +04:00
James Laskey
a0707f358d 8015911: $EXEC does not handle large outputs
Reviewed-by: sundar, attila
2013-06-05 10:32:50 -03:00
Alexander Zuev
63c141c512 7186887: Test T6567415.java can fail on a slow machine
Reviewed-by: jjg, ksrini
2013-06-05 16:58:10 +04:00
Vladislav Karnaukhov
69dcf8a54e 8015425: [macosx] A follow-up for the fix 8010721
Reviewed-by: serb, anthony
2013-06-05 16:57:33 +04:00
Alan Bateman
c3d380202b 8015880: GenerateBreakIteratorData build warning
Reviewed-by: peytoia
2013-06-05 13:57:16 +01:00
Hannes Wallnöfer
008916124b 8015350: Array.prototype.reduceRight issue with large length and index
Reviewed-by: attila, sundar, lagergren
2013-06-05 12:44:24 +02:00
Dmitry Markov
d7c42983fb 8015375: Edits to text components hang for clipboard access
Reviewed-by: art, anthony
2013-06-05 14:21:31 +04:00
Attila Szegedi
03ee3a979c 8015961: Several small code-gardening fixes
Reviewed-by: lagergren, sundar
2013-06-05 12:17:10 +02:00
Attila Szegedi
c5540744e7 8015955: ObjectNode.elements should be stronger typed
Reviewed-by: lagergren, sundar
2013-06-05 10:44:32 +02:00
Athijegannathan Sundararajan
424252851f Merge 2013-06-05 13:33:33 +05:30
Lana Steuck
33b1694a1b Merge 2013-06-05 00:37:11 -07:00
Athijegannathan Sundararajan
1e63ac571c 8015945: loadWithNewGlobal return value has to be properly wrapped
Reviewed-by: lagergren, hannesw
2013-06-05 12:08:49 +05:30
Volker Simonis
9fbd8582b4 8015252: Enable HotSpot build with Clang
Reviewed-by: twisti, dholmes, kvn
2013-06-04 22:16:15 -07:00
Lana Steuck
a44928027e Merge 2013-06-04 21:38:26 -07:00
Lana Steuck
8ddd38c293 Merge 2013-06-04 21:38:12 -07:00
Lana Steuck
520adaac29 Merge 2013-06-04 21:33:07 -07:00
Daniel D. Daugherty
f3fb3c4777 8010257: remove unused thread-local variables _ScratchA and _ScratchB
Remove dead code.

Reviewed-by: twisti, coleenp
2013-06-04 19:39:21 -07:00
David Katleman
227dc3c228 Merge 2013-06-04 15:54:46 -07:00
Jonathan Gibbons
bdfb93ee25 8004643: Reduce javac space overhead introduced with compiler support for repeating annotations
Reviewed-by: mcimadamore, jfranck
2013-06-04 14:17:50 -07:00
Amy Wang
50cbe913ca 8015644: makefile changes to allow integration of new features
Reviewed-by: tbell, erikj, dholmes
2013-06-04 14:11:50 -07:00
John Cuthbertson
e8c0cab6ac Merge 2013-06-04 14:00:16 -07:00
Morris Meyer
a28a9d6551 8010724: [parfait] Null pointer dereference in hotspot/src/share/vm/c1/c1_LIRGenerator.cpp
Added guarantee()

Reviewed-by: kvn
2013-06-04 12:06:54 -07:00
David Katleman
7c47c2a126 Merge 2013-06-04 11:03:25 -07:00
David Katleman
7a9e3b03df Merge 2013-06-04 11:02:23 -07:00
John Cuthbertson
c3d6abc4e1 8015244: G1: Verification after a full GC is incorrectly placed
In a full GC, move the verification after the GC to after RSet rebuilding. Verify RSet entries during a full GC under control of a flag.

Reviewed-by: tschatzl, brutisso
2013-06-04 10:04:06 -07:00
Athijegannathan Sundararajan
7ee2adb4d7 8015830: Javascript mapping of ScriptEngine bindings does not expose keys
Reviewed-by: jlaskey, lagergren
2013-06-04 22:31:48 +05:30
Joe Wang
53ba53a941 8015630: Remove default restriction settings of jaxp 1.5 properties in JDK8
Reviewed-by: alanb
2013-06-04 09:35:12 -07:00
Vicente Romero
aeb1c4b67e 7165659: javac incorrectly sets strictfp access flag on inner-classes
Reviewed-by: jjg, mcimadamore
2013-06-04 13:21:41 +01:00
Athijegannathan Sundararajan
5817f439ab 8015855: test/script/basic/JDK-8012164.js fails on Windows
Reviewed-by: hannesw, lagergren, jlaskey
2013-06-04 17:33:14 +05:30
Maurizio Cimadamore
5d6029baac 8015505: Spurious inference error when return type of generic method requires unchecked conversion to target
Use check context compatibility during 15.12.2.8 check (only when JDK 8 inference is enabled)

Reviewed-by: jjg
2013-06-04 11:34:31 +01:00
Maurizio Cimadamore
1c6a680e66 8008160: Five lambda TargetType tests have @ignore
Remove @ignore flags from tests that now pass

Reviewed-by: jjg
2013-06-04 11:31:12 +01:00
Maurizio Cimadamore
f0112464e0 7116676: RichDiagnosticFormatter throws NPE when formatMessage is called directly
Fix NPE in RichDiagnosticFormatter.formatMessage

Reviewed-by: jjg
2013-06-04 11:30:51 +01:00
Mike Duigou
22dc46d3cd 8015510: (s) Improve JTReg location detection and provide location to test/Makefile
Reviewed-by: erikj
2013-06-04 10:36:00 +02:00
Tristan Yan
0a8d4b90f5 8015784: Add configure parameter --with-update-version
Reviewed-by: tbell, katleman, erikj
2013-06-04 10:23:37 +02:00
Serguei Spitsyn
e609456b0e 8015803: Test8015436.java fails 'can not access a member of class Test8015436 with modifiers "public static"'
Newly added test has an issue: the main class must be public

Reviewed-by: kvn, jbachorik, coleenp
2013-06-04 01:06:50 -07:00
Lana Steuck
9bd2647140 Merge 2013-06-03 23:24:36 -07:00
Lana Steuck
37e2f54249 Merge 2013-06-03 23:24:15 -07:00
Lana Steuck
cb1ba62512 Merge 2013-06-03 23:23:20 -07:00
Lana Steuck
6806594310 Merge 2013-06-03 23:19:23 -07:00
Qi Zuo
ca66036ebd Merge 2013-06-04 00:12:51 -04:00
Jonathan Gibbons
a282ed3923 8007687: javadoc -X does not include -Xdoclint
Reviewed-by: darcy
2013-06-03 17:24:47 -07:00
Jonathan Gibbons
a850ba134d 8006615: [doclint] move remaining messages into resource bundle
Reviewed-by: mcimadamore, vromero
2013-06-03 17:09:26 -07:00
Lana Steuck
8c25e96e5a Merge 2013-06-03 16:56:54 -07:00
Jonathan Gibbons
c594d824a4 8013405: DocLint should support <LI value="value">
Reviewed-by: ksrini
2013-06-03 16:22:27 -07:00
Lana Steuck
6643acc6d2 Merge 2013-06-03 16:10:24 -07:00
Lana Steuck
ba0fc64a03 Merge 2013-06-03 16:10:18 -07:00
Lana Steuck
ea244da844 Merge 2013-06-03 16:09:15 -07:00
Tao Mao
07ed2c141f 6976350: G1: deal with fragmentation while copying objects during GC
Create G1ParGCAllocBufferContainer to contain two buffers instead of previously using one buffer, in order to hold the first priority buffer longer. Thus, when some large objects hits the value of free space left in the first priority buffer it has an alternative to fit in the second priority buffer while the first priority buffer is given more chances to try allocating smaller objects. Overall, it will improve heap space efficiency.

Reviewed-by: johnc, jmasa, brutisso
2013-06-03 14:37:13 -07:00
Serguei Spitsyn
6d485348e1 8014052: JSR292: assert(end_offset == next_offset) failed: matched ending
A call to the finalize_operands_merge() must be unconditional

Reviewed-by: kvn, twisti
2013-06-03 14:28:37 -07:00
Vladimir Kozlov
56e8f83652 Merge 2013-06-03 14:02:05 -07:00
Niclas Adlertz
f4682b75e5 8005956: C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block
Disable re-materialization of reaching definitions (which have live inputs) for phi nodes when spilling.

Reviewed-by: twisti, kvn
2013-06-03 12:39:33 -07:00
James Laskey
fcf3353ddf 8015814: loadWithNewGlobal needs to wrap createGlobal in AccessController.doPrivileged
Reviewed-by: sundar
2013-06-03 12:57:53 -03:00
James Laskey
b73369b1fe 8015796: Race condition in RuntimeCallsites
Reviewed-by: lagergren, attila
2013-06-03 11:16:33 -03:00
Harold Seigel
02a27e2824 8015385: Remove RelaxAccessControlCheck for JDK 8 bytecodes
Check bytecode versions along with RelaxAccessControlCheck version

Reviewed-by: dholmes, acorn
2013-06-03 10:00:10 -04:00
Anton Litvinov
fb8bd30b8e 6337518: Null Arrow Button Throws Exception in BasicComboBoxUI
Reviewed-by: alexp, alexsch
2013-06-03 16:37:13 +04:00
Jose Luis Martin
8c13d6cecf 8015500: Prevent sending multiple WINDOW_CLOSED events for already disposed windows
Reviewed-by: anthony, serb
2013-06-03 16:27:44 +04:00
James Laskey
b7ee1a873e 8015741: Need a global.load function that starts with a new global scope
Reviewed-by: sundar, lagergren
2013-06-03 08:34:29 -03:00
Athijegannathan Sundararajan
49c5af63c9 8015345: Function("}),print('test'),({") should throw SyntaxError
Reviewed-by: lagergren, hannesw, jlaskey
2013-06-03 15:58:14 +05:30
Anton Litvinov
8db7e02270 7151823: The test incorrectly recognizing OS
Reviewed-by: serb, alexp
2013-06-03 14:05:55 +04:00
Albert Noll
d6efb99686 8013329: File leak in hotspot/src/share/vm/compiler/compileBroker.cpp
Added calling of the destructor of CompileLog so that files are closed. Added/moved memory allocation/deallocation of the string that contains the name of the log file to class CompileLog.

Reviewed-by: kvn, roland
2013-06-03 08:52:20 +02:00
Petr Pchelko
05a410aada 8015477: Support single threaded AWT/FX mode
Reviewed-by: ant, anthony
2013-06-03 10:14:05 +04:00
Vicente Romero
7ab7587227 6695379: Copy method annotations and parameter annotations to synthetic bridge methods
Reviewed-by: mcimadamore
2013-06-01 22:09:18 +01:00
Vicente Romero
0ace868fe4 8010737: javac, known parameter's names should be copied to automatically generated constructors for inner classes
Reviewed-by: mcimadamore
2013-06-01 21:57:56 +01:00
Daniel D. Daugherty
54b7fa892a Merge 2013-06-01 09:28:26 -07:00
Mikhailo Seledtsov
6a7e90e362 6726963: multi_allocate() call does not CHECK_NULL and causes crash in fastdebug bits
Using CHECK_NULL when calling multi_allocate() from the corresponding reflection code; added test for this condition

Reviewed-by: dholmes, minqi
2013-05-31 20:24:58 +02:00
Alejandro Murillo
f488447acc 8015690: new hotspot build - hs25-b36
Reviewed-by: jcoomes
2013-05-31 10:04:00 -07:00
Alejandro Murillo
43fb923d1b Added tag hs25-b35 for changeset 02ffee063e24 2013-05-31 09:37:49 -07:00
Alejandro Murillo
4690e29e88 Merge 2013-05-31 09:37:48 -07:00
Phil Race
2cbcc2b315 8015556: [macosx] surrogate pairs do not render properly
Reviewed-by: bae, jchen
2013-05-31 09:25:37 -07:00
James Laskey
4cfdae2e46 8015727: Thread safe print function
Reviewed-by: sundar
2013-05-31 13:04:55 -03:00
Vladislav Karnaukhov
a754c039be 6436314: Vector could be created with appropriate size in DefaultComboBoxModel
Reviewed-by: alexsch, alexp
2013-05-31 19:34:02 +04:00
Vladislav Karnaukhov
9c64c6f45b 7068740: If you wrap a JTable in a JLayer you can't use the page up and page down cmds
Reviewed-by: alexsch, alexp
2013-05-31 18:46:41 +04:00
Sergey Malenkov
d834509ee4 8013557: XMLEncoder in 1.7 can't encode objects initialized in no argument constructor
Reviewed-by: alexsch
2013-05-31 18:25:38 +04:00
Athijegannathan Sundararajan
a48b38238f 8012164: Error.stack needs trimming
Reviewed-by: lagergren, jlaskey
2013-05-31 17:39:12 +05:30
Erik Joelsson
14c2e56643 8014003: New build does not handle symlinks in workspace path
Reviewed-by: tbell
2013-05-31 14:07:42 +02:00
Erik Joelsson
9fcacb29a5 7195481: FDS: debuginfo file for libjdwp.so is missed
Reviewed-by: tbell
2013-05-31 14:05:09 +02:00
Anton Tarasov
391e1eadef 8015589: Test java/awt/Window/Grab/GrabTest.java fails on MacOSX
Reviewed-by: anthony
2013-05-31 15:56:07 +04:00
Joel Borggren-Franck
6d51346158 8014709: Constructor.getAnnotatedReturnType() returns empty AnnotatedType
Reviewed-by: stefank, rbackman
2013-05-31 13:02:24 +02:00
Attila Szegedi
c6404425ec 8015673: Type for :e symbol is wrong
Reviewed-by: jlaskey, lagergren
2013-05-31 12:58:02 +02:00
Attila Szegedi
102a06fdef 8015674: CodeGenerator.initSymbols mutates a list
Reviewed-by: jlaskey, lagergren
2013-05-31 12:57:44 +02:00
Attila Szegedi
9617ee41ca 8015684: FieldObjectCreator.putField ignores getValueType
Reviewed-by: jlaskey, lagergren
2013-05-31 12:57:25 +02:00
Attila Szegedi
8bcbbe70de 8015693: reduce NodeLiteralNode to NullLiteralNode
Reviewed-by: jlaskey, lagergren
2013-05-31 12:56:56 +02:00
Andrew Brygin
3c4b82e2bb 8015606: Text is not rendered correctly if destination buffer is custom
Reviewed-by: prr, vadim
2013-05-31 14:30:28 +04:00
Anthony Petrov
912472fd71 8013189: JMenuItems draw behind TextArea
Untie XTextAreaPeer internal components from the TextArea parent to prevent its invalidation. I.e. force the java.awt.smartInvalidate=true locally.

Reviewed-by: art, serb
2013-05-31 14:12:53 +04:00
Vicente Romero
06d1d22eb5 7179353: try-with-resources fails to compile with generic exception parameters
Reviewed-by: mcimadamore
2013-05-31 10:04:59 +01:00
Paul Sandoz
f2224939ec 8013649: HashMap spliterator tryAdvance() encounters remaining elements after forEachRemaining()
Reviewed-by: chegar
2013-05-31 10:53:19 +02:00
Alan Bateman
049fc8b7b0 8003895: java/nio/channels/AsynchronousChannelGroup/Unbounded.java failing again [win64]
Reviewed-by: chegar
2013-06-05 11:12:31 +01:00
Lana Steuck
d983033c28 Merge 2013-06-04 21:37:15 -07:00
Jeff Nisewanger
c0c2397857 8014097: add doPrivileged methods with limited privilege scope
Reviewed-by: mchung
2013-06-04 15:33:42 -07:00
Doug Lea
6ffe8293b9 8005704: Update ConcurrentHashMap to v8
Reviewed-by: chegar, mduigou
2013-06-04 21:59:23 +01:00
Naoto Sato
a30cf6a6cc 8013903: Japanese calendar field names are not displayed with -Djava.locale.providers=HOST on Windows
Reviewed-by: okutsu
2013-06-04 10:33:13 -07:00
Henry Jen
dafa777413 8014855: TEST_BUG: java/nio/file/Files/StreamTest.java fails when sym links not supported
Reviewed-by: alanb
2013-06-04 15:18:39 +01:00
Alan Bateman
98809eb73f 8015872: ProblemList.txt updates (6/2013)
Reviewed-by: chegar
2013-06-04 11:52:29 +01:00
Michael McMahon
bf60c3fe29 8014723: sun/misc/URLClassPath/ClassnameCharTest.java failing
Reviewed-by: alanb, chegar
2013-06-04 10:56:58 +01:00
Paul Sandoz
06985bbc35 8015790: Remove duplicate spliterator tests
Reviewed-by: alanb, mduigou
2013-06-04 11:53:31 +02:00
Brent Christian
53a90d216f 8005698: Handle Frequent HashMap Collisions with Balanced Trees
HashMap bins with many collisions store entries in balanced trees

Reviewed-by: alanb, dl, mduigou
2013-06-04 10:04:28 +01:00
Staffan Larsen
8452360411 8015856: Remove java/lang/instrument/IsModifiableClassAgent.java from ProblemList.txt
Reviewed-by: dholmes
2013-06-04 09:45:14 +02:00
Lana Steuck
dd595d8f74 Merge 2013-06-03 16:09:43 -07:00
Kumar Srinivasan
310769ebc8 8015813: add test/tools/pack200/TimeStamp.java to ProblemsList
Reviewed-by: sherman
2013-06-03 13:20:46 -07:00
Aleksey Shipilev
a6acf483b7 8014966: Add the proper Javadoc to @Contended
More extensive description.

Reviewed-by: dholmes, mduigou, martin
2013-06-03 22:09:20 +04:00
Paul Sandoz
138c0ccabd 8014383: StringJoiner example in class description not in sync with streams API
Reviewed-by: alanb
2013-06-03 17:37:51 +02:00
Eric McCorkle
a455b8ab9d 8014834: shell tests don't begin with #!/bin/sh
Some shell tests don't begin with the command interpreter line

Reviewed-by: alanb, ksrini
2013-06-03 10:44:10 -04:00
Nils Loodin
4b74b9fdcc 6526682: JConsole shows negative CPU Usage
Reviewed-by: alanb, mchung
2013-06-03 16:13:44 +02:00
Paul Sandoz
fdd231289a 8014731: j.u.stream.StreamSupport class has default constructor generated
This change set also fixes broken links

Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: alanb, chegar
2013-06-03 10:45:11 +02:00
Paul Sandoz
c58c150867 8015008: Primitive iterator over empty sequence, null consumer: forEachRemaining methods do not throw NPE
Reviewed-by: chegar
2013-06-03 10:28:17 +02:00
Jesper Wilhelmsson
43ff2913a7 Merge 2013-05-31 09:55:35 +02:00
Serguei Spitsyn
a246da16d1 8015436: compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
The InstanceKlass _initial_method_idnum value must be adjusted if overpass methods are added.

Reviewed-by: twisti, kvn
2013-05-30 11:46:39 -07:00
David Katleman
403f5cc7b3 Added tag jdk8-b92 for changeset 3ed2867af3bf 2013-05-30 10:58:35 -07:00
David Katleman
f49bd7d3b8 Added tag jdk8-b92 for changeset fe7926936461 2013-05-30 10:58:32 -07:00
David Katleman
058f6ed256 Added tag jdk8-b92 for changeset 874119ae66c4 2013-05-30 10:58:21 -07:00
David Katleman
d30d85e939 Added tag jdk8-b92 for changeset 3e02d3c20e99 2013-05-30 10:58:13 -07:00
David Katleman
a979b3188f Added tag jdk8-b92 for changeset d2f0e76ff056 2013-05-30 10:58:08 -07:00
David Katleman
e907274506 Added tag jdk8-b92 for changeset b34bf6985a14 2013-05-30 10:57:57 -07:00
David Katleman
5eaf3d4ac5 Added tag jdk8-b92 for changeset 8ada1018118c 2013-05-30 10:57:52 -07:00
David Katleman
7fe48f8a20 Added tag jdk8-b92 for changeset b51d66ab6ffd 2013-05-30 10:57:50 -07:00
Jiangli Zhou
69a86594a2 Merge 2013-05-30 13:19:06 -04:00
Jiri Vanek
2ab206de9e 8011693: Remove redundant fontconfig files
Remove unused fontconfig files from OpenJDK GNU/Linux builds

Reviewed-by: andrew, prr
2013-05-30 16:50:31 +01:00
Anton Tarasov
833d23804d 8013773: requestFocusInWindow to a disabled component prevents window of getting focused
Reviewed-by: leonidr, alexsch
2013-05-30 18:31:33 +04:00
Anton Tarasov
e460380426 8013424: Regression: java.awt.datatransfer.FlavorListeners not notified on Linux/Java 7
Reviewed-by: anthony
2013-05-30 18:23:21 +04:00
James Tomson
36b5e14b31 8015303: [macosx] Application launched via custom URL Scheme does not receive URL
Make copies of event parameters

Reviewed-by: anthony, swingler, serb
2013-05-30 18:10:26 +04:00
Athijegannathan Sundararajan
91a299799e 8015353: Date.parse illegal string parsing issues
Reviewed-by: jlaskey, lagergren
2013-05-30 16:49:46 +05:30
Erik Joelsson
b8ea05673c Merge 2013-05-30 09:29:26 +02:00
Lana Steuck
44b754933b Merge 2013-05-29 16:59:55 -07:00
Lana Steuck
9c5e38248f Merge 2013-05-29 16:59:36 -07:00
Lana Steuck
7df21ac3bf Merge 2013-05-29 16:58:42 -07:00
Lana Steuck
d37a547b02 Merge 2013-05-29 16:57:42 -07:00
Lana Steuck
45f0337485 Merge 2013-05-29 16:56:53 -07:00
Lana Steuck
e79baf708d Merge 2013-05-29 16:54:48 -07:00
Jonathan Gibbons
dd5dcda907 8015641: genstubs needs to cope with static interface methods
Reviewed-by: ksrini
2013-05-29 15:34:56 -07:00
James Laskey
a3f6ca8aed 8015636: Add more typed arrays code coverage tests
Reviewed-by: sundar
2013-05-29 16:23:50 -03:00
David Katleman
b08f6026b4 8015525: JDK8 b91 source with GPL header errors
Reviewed-by: dholmes, lancea
2013-05-29 10:16:32 -07:00
David Katleman
320a9159a3 8015525: JDK8 b91 source with GPL header errors
Reviewed-by: dholmes, lancea
2013-05-29 10:16:07 -07:00
David Katleman
d1eabf07b1 8015525: JDK8 b91 source with GPL header errors
Reviewed-by: dholmes, lancea
2013-05-29 10:15:19 -07:00
Jennifer Godinez
1539c3330d 8012381: [macosx]Unable to print out the defined page for 2D_PrintingTiger/JTablePrintPageRangesTest
Reviewed-by: jchen, prr
2013-05-29 09:46:00 -07:00
Jennifer Godinez
0415127a27 7183520: [macosx]Unable to print out the defined page for 2D_PrintingTiger/JTablePrintPageRangesTest
Reviewed-by: bae, prr
2013-05-29 09:18:55 -07:00
Athijegannathan Sundararajan
4e5a976adf 8015349: "abc".lastIndexOf("a",-1) should evaluate to 0 and not -1
Reviewed-by: lagergren, attila, jlaskey
2013-05-29 21:27:10 +05:30
Pranav Bhat
d07ea54e1e Merge 2013-05-29 11:02:18 -04:00
Dmitry Markov
d463443af2 8014863: Line break calculations in Java 7 are incorrect
Reviewed-by: alexp, alexsch
2013-05-29 18:40:02 +04:00
Vinnie Ryan
d57a6a4cb3 7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate
Reviewed-by: xuelei
2013-05-29 14:57:51 +01:00
Marcus Lagergren
14cc2ba534 8011023: Math round didn't conform to ECMAScript 5 spec
Reviewed-by: jlaskey, attila
2013-05-29 14:08:00 +02:00
Erik Joelsson
e4879cb3e6 8013489: New build system does not run codesign on SA-related launchers on OS X
Reviewed-by: sla, tbell
2013-05-29 14:01:24 +02:00
Erik Joelsson
4f1888c9fc 8013489: New build system does not run codesign on SA-related launchers on OS X
Reviewed-by: sla, tbell
2013-05-29 14:01:04 +02:00
Erik Joelsson
9a45525272 8013920: Configure sets JOBS to 0 if memory is too low
Reviewed-by: tbell
2013-05-29 13:58:40 +02:00
Athijegannathan Sundararajan
993430afb0 8005979: A lot of tests are named "runTest" in reports
Reviewed-by: jlaskey
2013-05-29 15:41:07 +05:30
Vicente Romero
33f5aae0ff 7053059: VerifyError with double Assignment using a Generic Member of a Superclass
Reviewed-by: mcimadamore
2013-05-29 10:56:29 +01:00
Alan Bateman
fc0eb58944 8014928: (fs) Files.readAllBytes() copies content to new array when content completely read
Reviewed-by: martin
2013-05-29 10:24:11 +01:00
Petr Pchelko
5b011a9020 8009911: [macosx] SWT app freeze when going full screen using Java 7 on Mac
Reviewed-by: anthony, ksrini
2013-05-29 12:10:49 +04:00
Staffan Larsen
762cff81b7 8015440: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails with RuntimeException
Make sure serial gc compacts heap every time

Reviewed-by: mchung, brutisso, nloodin
2013-05-29 09:42:39 +02:00
Yiming Wang
ebea2d8168 8009258: TEST_BUG:java/io/pathNames/GeneralWin32.java fails intermittently
Reviewed-by: dxu, alanb
2013-05-28 22:22:48 -07:00
Xue-Lei Andrew Fan
cb9ce0a95c 8010815: some constructors issues in com.sun.jndi.toolkit
Reviewed-by: alanb
2013-05-28 18:47:13 -07:00
David Katleman
5982b3ca08 Merge 2013-05-28 17:58:34 -07:00
David Katleman
ea112f0044 Merge 2013-05-28 17:57:40 -07:00
Ioi Lam
9dc36eb923 8014912: Restore PrintSharedSpaces functionality after NPG
Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type

Reviewed-by: coleenp, acorn
2013-05-28 16:36:19 -07:00
Naoto Sato
442c815128 6251788: (rb) PropertyResourceBundle doesn't document exceptions
Reviewed-by: okutsu
2013-05-28 14:02:49 -07:00
Joseph Provino
eb9735b7b8 Merge 2013-05-28 15:24:44 -04:00
Daniel D. Daugherty
f52e6781ee Merge 2013-05-28 11:35:57 -07:00
Klara Ward
ee0d343130 8014762: Add JMC configure option mapping to Jprt.gmk
Need to add the mapping between JPRT env var and configure flag for JMC, from ALT_JMC_ZIP_DIR to --with-jmc-zip-dir (same pattern as for Javafx)

Reviewed-by: tbell, erikj
2013-05-28 20:03:21 +02:00
Xueming Shen
6b2527c45c 8001750: CharsetDecoder.replacement should not be changeable except via replaceWith method
To make defensive copy for set/get replacement byte array

Reviewed-by: martin
2013-05-28 10:42:52 -07:00
Vicente Romero
bbae50582f 8012333: javac, ClassFile should have a read(Path) method
Reviewed-by: jjg
2013-05-28 17:39:41 +01:00
Zhengyu Gu
4aab037d71 Merge 2013-05-28 08:54:55 -07:00
Aleksey Shipilev
0793ab7e65 8015493: runtime/contended/OopMaps.java fails with OutOfMemory
Limit the memory footprint to dodge OutOfMemory errors.

Reviewed-by: dcubed, ctornqvi, iignatyev
2013-05-28 19:54:18 +04:00
Rob McKenna
87a429a457 7038105: File.isHidden() should return true for pagefile.sys and hiberfil.sys
Reviewed-by: alanb
2013-05-28 16:35:17 +01:00
Joseph Provino
8d4061812f 8011064: Some tests have failed with SIGSEGV on arm-hflt on build b82
NMT_detail is only supported when frame pointers are not omitted (-fno-omit-frame-pointer).

Reviewed-by: dholmes, cjplummer
2013-05-28 11:32:46 -04:00
Joseph Provino
b0dcc34e06 8013461: There is a symbol AsyncGetCallTrace in libjvm.symbols that does not exist in minimal/libjvm.a when DEBUG_LEVEL == release
AsyncGetCallTrace is needed in libjvm.symbols so that programs which reference it can build correctly.

Reviewed-by: dholmes, bobv
2013-05-28 11:17:16 -04:00
Florian Weimer
4bfd2d2b39 8014420: Default JDP address does not match the one assigned by IANA
JDP protocol defaults changed to IANA assigned values

Reviewed-by: dholmes, jbachorik, hirt
2013-05-28 18:46:39 +04:00
Jaroslav Bachorik
afee04d0fb 8005472: com/sun/jmx/remote/NotificationMarshalVersions/TestSerializationMismatch.sh failed on windows
Reviewed-by: chegar, smarks, dfuchs
2013-05-28 15:57:45 +02:00
Christian Tornqvist
7f2a2f1460 8015329: Print reason for failed MiniDumpWriteDump() call
Printing both result from GetLastError and text representation of error. Also changed so that we produce dumps by default on client versions of Windows when running with a debug build. Also reviewed by peter.allwin@oracle.com

Reviewed-by: sla, dholmes
2013-05-28 15:08:57 +02:00
Anthony Petrov
c5e39e9e2b 7039616: java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java should be updated
Consider the test passed if the system does not support translucency

Reviewed-by: art
2013-05-28 16:38:41 +04:00
Vicente Romero
e58031ceba 6970173: Debug pointer at bad position
Reviewed-by: mcimadamore
2013-05-28 12:46:10 +01:00
Athijegannathan Sundararajan
d2583c8515 8015459: Octane test run fails on Turkish locale
Reviewed-by: lagergren, attila
2013-05-28 16:37:11 +05:30
Petr Pchelko
abdbb79b15 8000422: [macosx] Views keep scrolling back to the drag position after DnD
Reviewed-by: serb, anthony
2013-05-28 12:37:46 +04:00
Thomas Schatzl
54964edefa 8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen
Fixed the output of G1SummarizeRSetStats: too small datatype for the number of concurrently processed cards, added concurrent remembered set thread time retrieval for Linux and Windows (BSD uses os::elapsedTime() now), and other cleanup. The information presented during VM operation is now relative to the previous output, not always cumulative if G1SummarizeRSetStatsPeriod > 0. At VM exit, the code prints a cumulative summary.

Reviewed-by: johnc, jwilhelm
2013-05-28 09:32:06 +02:00
Jesper Wilhelmsson
44d99cc5e3 Merge 2013-06-01 10:00:56 +02:00
Stefan Karlsson
c39235c377 8015486: PSScavenge::is_obj_in_young is unnecessarily slow with UseCompressedOops
Compare compressed oops to a compressed young gen boundary instead of uncompressing the oops before doing the young gen boundary check.

Reviewed-by: brutisso, jmasa
2013-05-30 10:58:16 +02:00
John Coomes
de314e391b 6725714: par compact - add a table to speed up bitmap searches
Reviewed-by: jmasa, tschatzl
2013-05-30 13:04:51 -07:00
Erik Joelsson
e028541281 8007129: build-infra Add configure --with-jtreg option for location of JTREG
Reviewed-by: tbell
2013-05-28 08:50:52 +02:00
Erik Joelsson
23431500a0 8012566: Replace find, rm, printf and similar with their proper variables
Reviewed-by: tbell
2013-05-28 08:49:04 +02:00
Aleksey Shipilev
375e12feb9 8015270: @Contended: fix multiple issues in the layout code
Field count handling fixed, has_nonstatic_fields invariant fixed, oop map overrun fixed; new asserts

Reviewed-by: kvn, dcubed, coleenp
2013-05-27 12:49:08 -07:00
Alexander Zvegintsev
625394bc36 8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified
Reviewed-by: serb, anthony
2013-05-27 22:31:37 +04:00
Marcus Lagergren
d1cfaae2c6 8015447: Octane harness fixes for rhino and entire test runs: ant octane, ant octane-v8, ant octane-rhino
Reviewed-by: sundar, jlaskey
2013-05-27 17:57:07 +02:00
Athijegannathan Sundararajan
bca9af88da 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
Reviewed-by: jlaskey, lagergren
2013-05-27 20:41:34 +05:30
Nils Loodin
30482b86cf 6470730: Disconnect button leads to wrong popup message
Reviewed-by: dcubed, sla, egahlin
2013-05-27 17:10:32 +02:00
Chris Hegarty
d576d9a662 Merge 2013-05-27 15:24:53 +01:00
Chris Hegarty
1a031142e5 8015439: Minor/sync/cleanup of ConcurrentHashMap
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: chegar
2013-05-27 14:00:26 +01:00
Vicente Romero
fb25dcbb05 7030476: Fix conflicting use of JCTree/JCExpression
Reviewed-by: mcimadamore
2013-05-27 13:44:14 +01:00
Marcus Lagergren
1dfb4bf18e Merge 2013-05-27 13:12:11 +02:00
Marcus Lagergren
a34fd412c5 8014219: Make the run-octane harness more deterministic by not measuring elapsed time every iteration. Also got rid of most of the run logic in base.js and call benchmarks directly for the same purpose
Reviewed-by: jlaskey, attila
2013-05-27 13:11:13 +02:00
Stefan Karlsson
c13149ab8d 8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge
Combine the calls to StringTable::unlink and StringTable::oops_do in Parallel Scavenge.

Reviewed-by: pliden, coleenp
2013-05-27 12:58:42 +02:00
Stefan Karlsson
8b7d3c5d3b 8015428: Remove unused CDS support from StringTable
The string in StringTable is not used by CDS anymore. Remove the unnecessary code in preparation for 8015422: Large performance hit when the StringTable is walked twice in Parallel Scavenge

Reviewed-by: pliden, tschatzl, coleenp
2013-05-27 12:56:34 +02:00
Stefan Karlsson
2ccd92e927 8015268: NPG: 2.5% regression in young GC times on CRM Sales Opty
Split SystemDictionary and ClassLoaderDataGraph root processing to help load balancing.

Reviewed-by: tschatzl, johnc
2013-05-27 15:22:59 +02:00
Hannes Wallnöfer
6e76fe0cf2 8015348: RegExp("[") results in StackOverflowError
Reviewed-by: sundar, attila
2013-05-27 12:26:39 +02:00
Vladislav Karnaukhov
af284660df 8010721: [macosx] In JDK7 the menu bar disappears when a Dialog is shown
Reviewed-by: anthony, serb
2013-05-27 12:47:18 +04:00
Peter Levart
c6e58fdb1d 7038914: VM could throw uncaught OOME in ReferenceHandler thread
Catch OutOfMemoryError in reference handler thread if caused by allocation of an InterruptedException

Reviewed-by: dholmes, alanb
2013-05-27 09:41:44 +02:00
Alexey Utkin
ef2ccefb3a 8014394: (fs) WatchService failing when watching \\server\$d
Reviewed-by: alanb
2013-05-27 15:18:00 +04:00
Serguei Spitsyn
fb0022c7b1 8013945: CMS fatal error: must own lock MemberNameTable_lock
The "delete mnt" needs to grab MemberNameTable_lock if !SafepointSynchronize::is_at_safepoint()

Reviewed-by: sla, mgerdin, dholmes, jmasa
2013-05-24 17:36:12 -07:00
Calvin Cheung
7cb20773ad 8015265: revise the fix for 8007037
Reviewed-by: sspitsyn, dholmes, dcubed
2013-05-24 17:19:56 -07:00
Kumar Srinivasan
485921b016 8007333: [launcher] removes multiple back slashes
Reviewed-by: alanb, akhil
2013-05-24 17:01:08 -07:00
Joe Darcy
b4854e299c 8014836: Have GenericDeclaration extend AnnotatedElement
Reviewed-by: jfranck
2013-05-24 11:26:17 -07:00
Athijegannathan Sundararajan
5bf7dac8d7 8015351: Nashorn shell does not start with Turkish locale
Reviewed-by: jlaskey
2013-05-24 23:27:52 +05:30
Daniel D. Daugherty
85761dd2b8 Merge 2013-05-24 10:21:12 -07:00
Alejandro Murillo
ddea5b012c 8015305: new hotspot build - hs25-b35
Reviewed-by: jcoomes
2013-05-24 09:35:10 -07:00
Phil Race
e418c51f5a 8008535: JDK7 Printing : CJK and Latin Text in a string overlap
Reviewed-by: bae, jgodinez
2013-05-24 09:31:29 -07:00
Alejandro Murillo
e6a52ec48e Added tag hs25-b34 for changeset e12c800cd4a8 2013-05-24 09:25:43 -07:00
Alejandro Murillo
5c658c0c7e Merge 2013-05-24 09:25:42 -07:00
Sergey Malenkov
7dc93ab854 8013416: Java Bean Persistence with XMLEncoder
Reviewed-by: alexsch
2013-05-24 19:41:09 +04:00
Maurizio Cimadamore
d176f2abdf 8014494: javac crashes when varargs element of a method reference is inferred from the context
Varargs element is not refreshed after type-inference

Reviewed-by: jjg, vromero
2013-05-24 15:27:27 +01:00
Maurizio Cimadamore
9d588c1a23 8014649: Regression: bug in Resolve.resolveOperator
Missing curly braces causes Resolve.findMethod to be called spuriously

Reviewed-by: jjg, vromero
2013-05-24 15:27:12 +01:00
Maurizio Cimadamore
372fabc476 8014643: Parser regression in JDK 8 when compiling super.x
Fixed latent bug in JavacParser.analyzeParens()

Reviewed-by: jjg, vromero
2013-05-24 15:26:57 +01:00
Anton Tarasov
7ff57078e3 8013437: Test sun/awt/datatransfer/SuplementaryCharactersTransferTest.java fails to compile since 8b86
Reviewed-by: alexsch
2013-05-24 18:01:22 +04:00
Athijegannathan Sundararajan
f86162c90c 8015354: JSON.parse should not use [[Put]] but use [[DefineOwnProperty]] instead
Reviewed-by: lagergren, hannesw
2013-05-24 18:39:25 +05:30
Jesper Wilhelmsson
7c176c9678 Merge 2013-05-24 14:16:41 +02:00
Hannes Wallnöfer
cdf1276490 8011630: JSON parsing performance issue
Reviewed-by: lagergren, sundar
2013-05-24 13:54:18 +02:00
Weijun Wang
c43d7aa0de 8014196: ktab creates a file with zero kt_vno
Reviewed-by: valeriep
2013-05-24 17:15:43 +08:00
Jesper Wilhelmsson
f698761da5 Merge 2013-05-24 09:29:57 +02:00
Serguei Spitsyn
b2e43ed612 8014288: perf regression in nashorn JDK-8008448.js test after 8008511 changes
The fix of perf regression is to use method_idnum() for direct indexing into NMT

Reviewed-by: twisti, kvn, coleenp, dholmes
2013-05-23 23:04:33 -07:00
Christian Thalinger
262aacf9e5 Merge 2013-05-23 15:30:16 -07:00
Johnny Chen
4e79febb74 8012629: java.lang.UnsatisfiedLinkError exception throw by getAllFonts() on MacOSX
Reviewed-by: bae, prr
2013-05-23 12:16:17 -07:00
David Katleman
97932395dc Added tag jdk8-b91 for changeset 7d6fffdd46a9 2013-05-23 10:47:58 -07:00
David Katleman
7fb6c93ec0 Added tag jdk8-b91 for changeset a5e4cac27b50 2013-05-23 10:47:57 -07:00
David Katleman
061596e851 Added tag jdk8-b91 for changeset 053ed974a2ae 2013-05-23 10:47:50 -07:00
David Katleman
a66fd7b066 Added tag jdk8-b91 for changeset 1b09fbc97609 2013-05-23 10:47:47 -07:00
David Katleman
5ae68c32a2 Added tag jdk8-b91 for changeset e4e0796ef6c5 2013-05-23 10:47:45 -07:00
David Katleman
09facbd2ef Added tag jdk8-b91 for changeset 7083a5fec809 2013-05-23 10:47:40 -07:00
David Katleman
6430d3536c Added tag jdk8-b91 for changeset 63e3e07dfc0d 2013-05-23 10:47:37 -07:00
David Katleman
d8f8fedca7 Added tag jdk8-b91 for changeset 46c3a4b9ef6d 2013-05-23 10:47:32 -07:00
Jiangli Zhou
82a87a5af6 Merge 2013-05-23 13:40:15 -04:00
Doug Lea
7eb923313a 8014076: Arrays parallel and serial sorting improvements
Reviewed-by: chegar, mduigou
2013-05-23 18:34:15 +01:00
Christian Tornqvist
bd53fa8370 8009576: Test returns ClassNotFoundException
Small classpath fix and move tests into open

Reviewed-by: mgerdin, zgu
2013-05-23 17:39:32 +02:00
Marcus Lagergren
3111019493 8012522: Clean up lexical contexts - split out stack based functionality in CodeGenerator and generify NodeVisitors based on their LexicalContext type to avoid casts
Reviewed-by: attila, jlaskey
2013-05-23 15:51:08 +02:00
Nils Loodin
9179358ff4 8014048: Online user guide of jconsole points incorrect link
Reviewed-by: mchung, sla, jbachorik
2013-05-23 15:50:37 +02:00
Jim Laskey
b0e8a8ad47 Merge 2013-05-23 09:49:03 -03:00
Albert Noll
6c30b71448 8014430: JRE crashes instead of stop compilation on full Code Cache. Internal Error (c1_Compiler.cpp:87)
Disable client compiler and switch to interpreter if there is not enough free space in the code cache.

Reviewed-by: kvn, twisti
2013-05-23 14:11:09 +02:00
Alexander Scherbatiy
1942e52e48 8014924: JToolTip#setTipText() sometimes (very often) not repaints component
Reviewed-by: serb
2013-05-23 15:52:37 +04:00
Attila Szegedi
75c3e853b4 8015278: Revert accidental changes to build.xml
Reviewed-by: jlaskey, lagergren
2013-05-23 13:36:49 +02:00
Marcus Lagergren
f9d1d0f538 8012083: Array literal constant folding issue
Reviewed-by: attila, jlaskey
2013-05-23 13:10:58 +02:00
Attila Szegedi
dd837d94dd 8015267: Allow conversion of JS arrays to Java List/Deque
Reviewed-by: lagergren, sundar
2013-05-23 12:01:35 +02:00
Joe Darcy
7c644b0a4b 8014836: Have GenericDeclaration extend AnnotatedElement
Reviewed-by: abuckley, jfranck
2013-05-22 20:03:45 -07:00
Lana Steuck
6a96b58ad4 Merge 2013-05-22 19:35:51 -07:00
Vladimir Kozlov
47a5d851ad 8010927: Kitchensink crashed with SIGSEGV, Problematic frame: v ~StubRoutines::checkcast_arraycopy
Changed gen_write_ref_array_post_barrier() code on x64 to pass start address and number of copied oop elements. In generate_checkcast_copy() skip post barrier code if no elements are copied.

Reviewed-by: roland
2013-05-22 18:25:43 -07:00
Vladimir Kozlov
aa653eba44 Merge 2013-05-22 17:39:47 -07:00
Lana Steuck
9a0b18efc0 Merge 2013-05-22 17:37:05 -07:00
David Holmes
4ef977fec3 8014814: (str) StringBuffer "null" is not appended
Reviewed-by: alanb
2013-05-22 20:21:13 -04:00
Naoto Sato
c9d407ad39 7056126: DateFormatSymbols documentation has incorrect description about DateFormat
7083668: Sample code in ListResourceBundle is still not correct

Reviewed-by: okutsu
2013-05-22 16:43:04 -07:00
Joe Darcy
59c9296f63 8010680: Clarify "present" and annotation ordering in javax.lang.model
Reviewed-by: abuckley, jjg
2013-05-22 13:34:03 -07:00
Lana Steuck
131c0a6f08 Merge 2013-05-22 12:09:45 -07:00
Christian Thalinger
7d02ff5c23 Merge 2013-05-22 11:44:17 -07:00
Coleen Phillimore
6ed8c8fcea 8003421: NPG: Move oops out of InstanceKlass into mirror
Inject protection_domain, signers, init_lock into java_lang_Class

Reviewed-by: stefank, dholmes, sla
2013-05-22 14:37:49 -04:00
Tao Mao
1e80919f4c 8007762: Rename a bunch of methods in size policy across collectors
Rename: compute_generations_free_space() = compute_eden_space_size() + compute_old_gen_free_space(); update related logging messages

Reviewed-by: jmasa, johnc, tschatzl, brutisso
2013-05-22 11:11:47 -07:00
Mike Duigou
eccee3e025 8014819: set max size for jtreg testvms
Reviewed-by: alanb, darcy
2013-05-22 09:59:37 -07:00
Lana Steuck
de0b212fa1 Merge 2013-05-22 09:59:15 -07:00
Lana Steuck
c4200c50d2 Merge 2013-05-22 09:59:05 -07:00
Lana Steuck
9bb98bc521 Merge 2013-05-22 09:57:48 -07:00
Lana Steuck
9430535189 Merge 2013-05-22 09:54:10 -07:00
Vladimir Kozlov
ea54d8f3f0 8014811: loopTransform.cpp assert(cmp_end->in(2) == limit) failed
Stop current iteration of loop opts if partial_peel() failed and it created node clones outside processed loop.

Reviewed-by: roland
2013-05-22 09:02:43 -07:00
Erik Joelsson
7c1db2aff0 8014514: Fix jvm args for sjavac
Reviewed-by: tbell
2013-05-22 17:26:31 +02:00
Hannes Wallnöfer
aab1e4573c 8010804: Review long and integer usage conventions
Reviewed-by: jlaskey, sundar
2013-05-22 16:43:48 +02:00
Athijegannathan Sundararajan
2cd9f2dde4 8014735: Typed Array, BYTES_PER_ELEMENT should be a class property
Reviewed-by: lagergren, jlaskey
2013-05-22 19:33:08 +05:30
Erik Joelsson
d2cbca2f53 Merge 2013-05-22 15:00:41 +02:00
Chris Hegarty
64b3efd73b 8010182: Thread safety of Thread get/setName()
Reviewed-by: dholmes, alanb, mduigou
2013-05-22 13:50:53 +01:00
Andrew John Hughes
e943be0495 8015087: Provide debugging information for programs
Enable debugging info on programs in OpenJDK builds

Reviewed-by: erikj
2013-05-22 13:49:12 +01:00
Andrew John Hughes
cb084456a0 8015087: Provide debugging information for programs
Add missing debug info to unpack200 and jexec

Reviewed-by: erikj
2013-05-22 13:48:02 +01:00
Athijegannathan Sundararajan
41974c2e07 8008947: ScriptEnvironment ctor should be public
Reviewed-by: lagergren, attila
2013-05-22 16:39:48 +05:30
Erik Joelsson
cc85b8ed19 8014970: Use open man pages for non commercial builds
Reviewed-by: omajid, tbell
2013-05-22 10:31:39 +02:00
Albert Noll
d4f4c29b95 8012312: hsdis fails to compile with binutils-2.23.2
Added <config.h> to header file to make hsdis compile with binutils 2.23.*

Reviewed-by: kvn, twisti
2013-05-22 10:28:20 +02:00
Bengt Rutisson
0be2f273c7 8014971: Minor code cleanup of the freelist management
Reviewed-by: jwilhelm, jmasa, tschatzl
2013-05-22 08:04:58 +02:00
David Holmes
a1b903879f Merge 2013-05-21 19:52:01 -07:00
Tao Mao
a50a5688af 8015007: Incorrect print format in error message for VM cannot allocate the requested heap
Correct the wrong print format in error message for VM cannot allocate the requested heap; and clean up the error message call in check_alignment()

Reviewed-by: brutisso, tschatzl
2013-05-21 16:43:41 -07:00
Bharadwaj Yadavalli
19da55568f 8014059: JSR292: Failed to reject invalid class cplmhl00201m28n
Restrict reference of interface methods by invokestatic and invokespecial to classfile version 52 or later.

Reviewed-by: kvn, hseigel
2013-05-21 16:17:51 -07:00
David Katleman
7614783367 Merge 2013-05-21 12:54:41 -07:00
David Katleman
cdbb3cabde Merge 2013-05-21 12:51:10 -07:00
Mikael Vidstedt
de93893f4e 8013726: runtime/memory/ReserveMemory.java fails due to 'assert(bytes % os::vm_allocation_granularity() == 0) failed: reserve block size'
Fix regression test to work on all platforms

Reviewed-by: ctornqvi, dholmes
2013-05-21 09:43:23 -07:00
Erik Joelsson
43a9c5b0d3 8011346: build-infra: While Constructing Javadoc information, JSpinner.java error: package sun.util.locale.provider does not exist
Reviewed-by: dholmes, tbell, naoto
2013-05-21 17:02:54 +02:00
Vicente Romero
5b545ba465 7164114: Two jtreg tests are not run due to no file extension on the test files
Reviewed-by: mcimadamore
2013-05-21 14:33:09 +01:00
James Laskey
9e9c04939b 8014827: readLine should accept a prompt as an argument
Reviewed-by: sundar, hannesw
2013-05-21 10:17:09 -03:00
Vicente Romero
6a02cd46e0 8005207: test has 2 @bug tags
Reviewed-by: mcimadamore
2013-05-21 13:50:56 +01:00
Attila Szegedi
1a3b9278eb 8014953: Have NativeJavaPackage throw a ClassNotFoundException when invoked
Reviewed-by: jlaskey, sundar
2013-05-21 13:40:12 +02:00
Erik Joelsson
a9185efc82 8014508: Fix log levels in make
Reviewed-by: tbell
2013-05-21 13:18:28 +02:00
Vicente Romero
a24da77752 7060779: test/tools/javac/diags/Example.java leaves directories in tempdir
Reviewed-by: mcimadamore
2013-05-21 12:17:18 +01:00
Vicente Romero
a95cb95e1f 7177168: Redundant array copy in UnsharedNameTable
Reviewed-by: mcimadamore
2013-05-21 11:41:21 +01:00
Joel Borggrén-Franck
4a4457b237 8013180: Qualified type reference with annotations in throws list crashes compiler
Reviewed-by: jjg
2013-05-21 12:00:29 +02:00
Thomas Schatzl
b33547e347 8014405: G1: PerRegionTable::fl_mem_size() calculates size of the free list using wrong element sizes
Instead of using a simple sizeof(), ask the PerRegionTable class about its size when iterating over the free list.

Reviewed-by: jwilhelm, brutisso
2013-05-21 11:30:14 +02:00
Yong Jeffrey Huang
eb6c8c5bc8 Merge 2013-05-21 01:50:13 -07:00
Bengt Rutisson
67fdf410da Merge 2013-05-21 10:39:09 +02:00
Amy Lu
e2ffa5a315 8014892: More ProblemList.txt updates (5/2013)
Reviewed-by: alanb
2013-05-21 08:53:51 +01:00
Bengt Rutisson
8d3d35b861 7066063: CMS: "Conservation Principle" assert failed
Add call to coalBirth() in CompactibleFreeListSpace::reset()

Reviewed-by: ysr, jmasa
2013-05-21 08:50:20 +02:00
Joe Wang
ed440d1096 8012683: Remove unused, obsolete ObjectFactory classes
Reviewed-by: lancea
2013-05-20 23:46:51 -07:00
Yong Jeffrey Huang
4ebf44cbe4 7074882: Locale data needs correction (Month names for Maltese language)
Reviewed-by: naoto
2013-05-20 23:03:35 -07:00
Jon Masamitsu
c7a9104bb7 8014862: Add fast Metasapce capacity and used per MetadataType
Reviewed-by: ehelin, stefank
2013-05-20 22:34:24 -07:00
David Holmes
aa649f097f 8014857: Enable ergonomic VM selection in arm/jvm.cfg
Reviewed-by: darcy
2013-05-21 01:17:46 -04:00
Anton Litvinov
075f3e82d9 8005607: Recursion in J2DXErrHandler() Causes a Stack Overflow on Linux
Reviewed-by: art, anthony, prr
2013-05-21 05:02:21 +04:00
Dmitry Markov
d463e0c4ae 7011777: JDK 6 parses html text with script tags within comments differently from previous releases
Reviewed-by: alexsch
2013-05-21 03:20:27 +04:00
Joe Wang
80041e51d1 8014891: Redundant setting of external access properties in setFeatures
Reviewed-by: lancea
2013-05-20 16:11:49 -07:00
Aleksey Shipilev
a462587e4b 8014878: Clean up class field layout code
Rename/remove local variables, re-arrange instance_size calculation, more comments.

Reviewed-by: kvn, coleenp
2013-05-20 23:41:27 +04:00
Attila Szegedi
34bc5ff07f 8014797: rename Java.toJavaArray/toJavaScriptArray to Java.to/from, respectively
Reviewed-by: jlaskey, sundar
2013-05-20 21:25:14 +02:00
Philippe Marschall
c6619c912d 8004789: (zipfs) zip provider doesn't work correctly with file systems providers rather than the default
To use Files.createTempFile(...) to create the temp file on the same fs as the targeted path.

Reviewed-by: alanb, sherman
2013-05-20 11:56:46 -07:00
Tao Mao
47c64fb0c3 7186737: Unable to allocate bit maps or card tables for parallel gc for the requested heap
Print helpful error message when VM aborts due to inability of allocating bit maps or card tables

Reviewed-by: jmasa, stefank
2013-05-20 10:44:33 -07:00
Athijegannathan Sundararajan
32261c12b2 8014909: ant test compilation error with JoniTest.java
Reviewed-by: jlaskey
2013-05-20 23:04:01 +05:30
Jiangli Zhou
fff011fa0f Merge 2013-05-20 13:13:29 -04:00
Marcus Lagergren
cc79bd1237 8006069: Range analysis first iteration, runtime specializations
Reviewed-by: jlaskey, sundar
2013-05-20 16:38:38 +02:00
Aleksey Shipilev
7efa591bee 8014871: Move @Contended regression tests to the same place
Move the missing test to appropriate location.

Reviewed-by: dholmes, sla
2013-05-20 15:43:50 +04:00
Jesper Wilhelmsson
ed64a49836 Merge 2013-05-19 20:31:30 +02:00
Ioi Lam
f9ae3b46de 8014262: PrintStringTableStatistics should include more footprint info
Added info for the string/symbol objects and the hash entries

Reviewed-by: coleenp, rbackman
2013-05-18 20:41:01 -07:00
Daniel D. Daugherty
4410135e9e Merge 2013-05-17 17:52:07 -07:00
Jonathan Gibbons
f5bda14b93 6885876: add comments to javac/util/Convert.java
Reviewed-by: mduigou
2013-05-17 13:48:41 -07:00
Konstantin Shefov
e0fcb74c7e 8014823: Reprise - Smoke test fail: Windows JDK-8008554.js - access denied ("java.io.FilePermission" "//C/aurora/sandbox/nashorn~source/test/script/basic/NASHORN-99.js" "read")
Reviewed-by: jlaskey
2013-05-17 16:44:22 -03:00
Jim Laskey
149a1cd5b8 Merge 2013-05-17 16:12:59 -03:00
Daniel D. Daugherty
9a6dfe1c55 Merge 2013-05-17 11:36:43 -07:00
Lana Steuck
670660bae0 Merge 2013-05-17 10:14:03 -07:00
Lana Steuck
3a3757d756 Merge 2013-05-17 10:13:34 -07:00
Lana Steuck
8f6d37ee8e Merge 2013-05-17 10:11:35 -07:00
Lana Steuck
c47e363601 Merge 2013-05-17 10:07:23 -07:00
Lana Steuck
ca07c6ce5f Merge 2013-05-17 10:06:56 -07:00
Lana Steuck
3f67109c17 Merge 2013-05-17 10:06:20 -07:00
Johnny Chen
0ad376b3a8 8003444: Fix potential NULL pointer dereference
Reviewed-by: jgodinez, prr
2013-05-17 10:04:39 -07:00
Lana Steuck
3cc6d3b1e2 Merge 2013-05-17 10:04:12 -07:00
Alejandro Murillo
dbe27b6d39 8014760: new hotspot build - hs25-b34
Reviewed-by: jcoomes
2013-05-17 09:10:04 -07:00
Alejandro Murillo
2a9739589d Added tag hs25-b33 for changeset b00c73d51b8a 2013-05-17 08:59:19 -07:00
Alejandro Murillo
2a65b5efb6 Merge 2013-05-17 08:59:18 -07:00
Daniel D. Daugherty
48caf5fe52 Merge 2013-05-17 08:56:51 -07:00
Ron Durbin
441dc7c79b 7145527: sscanf must use a length in the format string
Remove dead code containing last call to scanf with no string length specifier

Reviewed-by: dcubed, coleenp
2013-05-17 08:51:46 -07:00
Chris Hegarty
fa23123952 Merge 2013-05-17 16:44:36 +01:00
Chris Hegarty
d6531cbf9f 8014783: java/net/HttpURLPermission/HttpURLPermissionTest.java leaves files open
Reviewed-by: michaelm
2013-05-17 16:44:15 +01:00
Chris Hegarty
7d32b90712 Merge 2013-05-17 15:18:40 +01:00
Chris Hegarty
c17637a0f8 8014791: More ProblemList.txt updates (5/2013)
Reviewed-by: alanb
2013-05-17 15:00:53 +01:00
Peter Levart
2548b20c9e 8014477: (str) Race condition in String.contentEquals when comparing with StringBuffer
Reviewed-by: alanb, mduigou, dholmes
2013-05-17 14:41:39 +02:00
Mike Duigou
4d33158dea Merge 2013-05-18 18:55:56 -07:00
Weijun Wang
aab6997ce0 8012261: update policytool to support java.net.HttpURLPermission
Reviewed-by: mullan
2013-05-18 10:15:06 +08:00
Dan Xu
a8783e010f 8011136: FileInputStream.available and skip inconsistencies
Correct the behavior of available() and update related java specs for available() and skip() in InputStream and FileInputStream classes.

Reviewed-by: alanb
2013-05-17 12:04:18 -07:00
Vadim Pakhnushev
fda49c17d8 8000936: Enable Java2D D3D pipeline on newer Intel chipsets : Intel HD and later
Reviewed-by: prr, bae
2013-05-17 14:18:44 +04:00
Vadim Pakhnushev
cfd6261906 4892259: GIF ImageReader does not call passComplete in IIOReadUpdateListener
Reviewed-by: prr, bae
2013-05-17 17:19:21 +04:00
Konstantin Shefov
f894b19d50 8013426: TEST_BUG: java/awt/datatransfer/HTMLDataFlavors/HTMLDataFlavorTest.java fails with "RuntimeException: The data should be available" on Linux
Reviewed-by: anthony, serb
2013-05-17 14:11:06 +04:00
Konstantin Shefov
c2731f2b66 8014721: TEST_BUG: java/awt/TrayIcon/DragEventSource/DragEventSource.java fails with java.lang.UnsupportedOperationException
Reviewed-by: anthony, serb
2013-05-17 14:08:59 +04:00
Erik Helin
0f9e2457c5 8014277: Remove ObjectClosure as base class for BoolObjectClosure
Reviewed-by: brutisso, tschatzl
2013-05-17 11:57:05 +02:00
Daniel Fuchs
8d94e88c93 8013900: More warnings compiling jaxp
Some internal implementation classes in Jaxp were redefining equals() without redefining hashCode(). This patch adds hashCode() methods that are consistent with equals().

Reviewed-by: chegar, joehw
2013-05-17 10:40:55 +02:00
Daniel Fuchs
98c17c258e 8013900: More warnings compiling jaxp
Some internal implementation classes in Jaxp were redefining equals() without redefining hashCode(). This patch adds hashCode() methods that are consistent with equals().

Reviewed-by: chegar, joehw
2013-05-17 10:40:21 +02:00
Petr Pchelko
6b69d16477 7079254: Toolkit eventListener leaks memory
Reviewed-by: serb, art
2013-05-17 11:02:55 +04:00
Jesper Wilhelmsson
df1556095b Merge 2013-05-17 08:00:01 +02:00
Jesper Wilhelmsson
262b1413c1 Merge 2013-05-17 06:01:10 +02:00
David Holmes
9765d592f0 Merge 2013-05-16 23:40:27 -04:00
David Holmes
658e624c4b Merge 2013-05-16 22:11:05 -04:00
David Holmes
b8df5a880c Merge 2013-05-16 21:19:49 -04:00
Mandy Chung
a4a210dc69 4487672: (proxy) Proxy constructor should check for null argument
Reviewed-by: alanb, lancea
2013-05-16 15:08:24 -07:00
Aleksey Shipilev
efe96b1343 8014509: @Contended: explicit default value behaves differently from the implicit value
Treat the empty string as the default value tag

Reviewed-by: kvn, twisti
2013-05-17 01:58:32 +04:00
Thomas Schatzl
b8276670c2 8014765: VM exits if MaxTenuringThreshold is set below the default InitialTenuringThreshold, and InitialTenuringThreshold is not set
The VM exits when the condition in the subject line applies. The fix sets InitialTenuringThreshold to MaxTenuringThreshold if it is larger than MaxTenuringThreshold and InitialTenuringThreshold has not been set (is default).

Reviewed-by: jwilhelm, jmasa, brutisso, johnc
2013-05-16 23:51:51 +02:00
Aleksey Shipilev
2fd72e202f 8012939: @Contended doesn't work correctly with inheritance
Fix instance_size miscalculation.

Reviewed-by: jrose, kvn
2013-05-17 01:43:48 +04:00
Christian Thalinger
c6c7f3439e Merge 2013-05-16 13:47:55 -07:00
Vinnie Ryan
72591df578 Merge 2013-05-16 13:22:41 -07:00
David Katleman
186eb231a8 Added tag jdk8-b90 for changeset 9757c7aa8f78 2013-05-16 12:16:16 -07:00
David Katleman
04210a7351 Added tag jdk8-b90 for changeset c710c82509ec 2013-05-16 12:16:07 -07:00
David Katleman
04fa7c69da Added tag jdk8-b90 for changeset 1a8b44cae081 2013-05-16 12:15:19 -07:00
David Katleman
c8456195d9 Added tag jdk8-b90 for changeset 11ae34f362ad 2013-05-16 12:14:55 -07:00
David Katleman
9ffa292377 Added tag jdk8-b90 for changeset f96a31ce35e6 2013-05-16 12:14:49 -07:00
David Katleman
f878730150 Added tag jdk8-b90 for changeset c0cc3acd917d 2013-05-16 12:14:19 -07:00
David Katleman
8a2c88a5be Added tag jdk8-b90 for changeset 77d6a1b1e9ec 2013-05-16 12:14:00 -07:00
David Katleman
ae3ddf1563 Added tag jdk8-b90 for changeset dcfa2b312921 2013-05-16 12:13:52 -07:00
Hannes Wallnöfer
2c97733af0 8012359: Increase code coverage in Joni
Reviewed-by: jlaskey, lagergren
2013-05-16 19:52:39 +02:00
Michael McMahon
4c8411b088 8012625: Incorrect handling of HTTP/1.1 " Expect: 100-continue " in HttpURLConnection
Reviewed-by: alanb, chegar
2013-05-16 17:28:47 +01:00
John Cuthbertson
5838d847a1 8010738: G1: Output for full GCs with +PrintGCDetails should contain perm gen size/meta data change info
Include metaspace information (used, allocated, reserved) in the PrintGCDetails output for full GCs.

Reviewed-by: poonam, jmasa, brutisso
2013-05-16 09:24:26 -07:00
Mikhailo Seledtsov
bb4af57bdd 8014511: runtime/RedefineObject/TestRedefineObject.java has incorrect classname in @run tag
Corrected the class name

Reviewed-by: coleenp, ctornqvi, hseigel
2013-05-16 17:54:11 +02:00
Albert Noll
114b578228 8012371: Adjust Tiered compile threshold according to available space in code cache
Added command line parameter to define a threshold at which C1 compilation threshold for  is increased.

Reviewed-by: kvn, iveresov
2013-05-16 15:46:49 +02:00
Mikhailo Seledtsov
172cc0a06e 8008169: test/runtime/7158804/Test7158804.sh has bad copyright header
Re-wrote test in Java in addition to fixing the Copyright notice. Also reviewed by leonid.mesnik@oracle.com

Reviewed-by: coleenp, ctornqvi
2013-05-16 15:31:00 +02:00
Marcus Lagergren
aeda283b75 8013919: Original exception no longer thrown away when a finally rethrows
Reviewed-by: jlaskey, sundar
2013-05-16 13:44:25 +02:00
Kevin Walls
aa8c580561 6313816: SA: jstack -m fails on Win32 : UnalignedAddressException
Reviewed-by: sla, poonam
2013-05-16 12:40:27 +01:00
Xue-Lei Andrew Fan
9681f58b21 8010814: More buffers are stored or returned without cloning
Reviewed-by: lancea
2013-05-16 04:30:45 -07:00
Thomas Schatzl
5ebe77bb6b 8014240: G1: Add remembered set size information to output of G1PrintRegionLivenessInfo
Improve the output of G1PrintRegionLivenessInfo by adding a per-region remembered set size information column

Reviewed-by: jwilhelm, johnc
2013-05-16 13:02:33 +02:00
Eric Wang
9b4403735d 8004177: test/java/lang/Thread/GenerifyStackTraces.java doesn't clean-up
Reviewed-by: alanb, dholmes, chegar
2013-05-16 10:59:06 +01:00
Vinnie Ryan
193ed72708 Merge 2013-05-16 02:43:58 -07:00
Athijegannathan Sundararajan
6e91576480 8009141: Avoid netscape.javascript.JSObject in nashorn code
Reviewed-by: lagergren, hannesw
2013-05-16 14:52:48 +05:30
John Cuthbertson
d583cdc253 8014408: G1: crashes with assert assert(prev_committed_card_num == _committed_max_card_num) failed
Mismatch in the card number calculation between next and previous committed sizes of the card counts table.

Reviewed-by: jmasa, tschatzl
2013-05-15 22:35:36 -07:00
Bill Pittore
ccb50f749f 8014669: arch specific flags not passed to some link commands
EXTRA_CFLAGS does not propagate to saproc and jsig makefiles

Reviewed-by: dholmes, tbell, collins
2013-05-15 23:06:04 -04:00
Valerie Peng
f06239abab Merge 2013-05-15 18:38:52 -07:00
Kumar Srinivasan
797c391622 8001163: [pack200] should support attributes introduced by JSR-308
Reviewed-by: jrose
2013-05-15 18:26:16 -07:00
Kurchi Subhra Hazra
83505983f5 7150552: network test hangs [macosx]
Remove usage of test/sun/net/www/httptest

Reviewed-by: chegar
2013-05-16 10:58:20 -07:00
Daniel Fuchs
ea276bd930 Merge 2013-05-16 18:40:47 +02:00
Michael McMahon
57075722b2 Merge 2013-05-16 17:31:41 +01:00
Ivan Gerasimov
03a640d7f1 8014676: Java debugger may fail to run
The problem is observed when the binaries for windows are placed under a path which contains a space

Reviewed-by: sla, alanb
2013-05-16 19:28:44 +04:00
Jim Gish
b0c93f4d19 8013380: Removal of stack walk to find resource bundle breaks Glassfish startup
Use caller's classloader to load resource as an alternative to thread context classloader and system classloader

Reviewed-by: mchung, alanb
2013-05-16 11:19:00 -04:00
Naoto Sato
41c159f597 8013233: java/util/Locale/LocaleProviders.sh fails
Reviewed-by: okutsu
2013-05-15 16:48:54 -07:00
Igor Ignatyev
bf1380cc77 8014068: TEST_BUG: compiler/ciReplay/TestSA.sh fails on Windows: core wasn't generated
Reviewed-by: kvn
2013-05-15 22:44:52 +04:00
Attila Szegedi
18bdc5fd42 8014647: Allow class-based overrides to be initialized with a ScriptFunction
Reviewed-by: hannesw, jlaskey, sundar
2013-05-15 20:21:59 +02:00
Tao Mao
87b3317478 8007763: Refactoring: split up compute_generation_free_space() into two functions for class PSAdaptiveSizePolicy
Split up compute_generation_free_space() into two functions: compute_eden_space_size() + compute_old_gen_free_space(), each of which (if needed) can be reused without executing an overhead of the other.

Reviewed-by: jmasa, tschatzl
2013-05-15 10:41:22 -07:00
Erik Joelsson
31ad82b41b 8006879: Detection of windows in sjavac fails
Reviewed-by: jjg
2013-05-15 10:39:26 -07:00
Joe Darcy
40a5f1f53c 8014677: Correct docs warning for Objects.requireNonNull(T, Supplier<String>)
Reviewed-by: alanb
2013-05-15 09:54:30 -07:00
James Laskey
e5be7a02ea 8014648: Exclude testing and infrastructure packages from code coverage, round two
Reviewed-by: sundar
2013-05-15 12:09:38 -03:00
Stephen Colebourne
48fc4f5552 8013730: JSR 310 DateTime API Updates III
Integration of JSR310 Date/Time API update III

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Patrick Zhang <patrick.zhang@oracle.com>
Reviewed-by: naoto
2013-05-15 07:48:57 -07:00
Vinnie Ryan
4128a74cbc Merge 2013-05-15 15:39:28 +01:00
Athijegannathan Sundararajan
8bbf3e9b52 8012305: Function.bind can't be called on prototype function inside constructor
Reviewed-by: lagergren, attila
2013-05-15 19:45:16 +05:30
Michael McMahon
527399b98c 8010464: Evolve java networking same origin policy
Reviewed-by: alanb, chegar, dsamersoff, weijun
2013-05-15 15:01:59 +01:00
Robert Field
495e78ce52 8010006: NPE in javac with interface super in lambda
Reviewed-by: mcimadamore
2013-05-15 06:53:01 -07:00
Vinnie Ryan
1c510cf688 Merge 2013-05-15 14:49:50 +01:00
Maurizio Cimadamore
4b1aa379e5 8013222: Javac issues spurious raw type warnings when lambda has implicit parameter types
Bad warnings and position for lambda inferred parameter types

Reviewed-by: jjg, vromero
2013-05-15 14:03:09 +01:00
Maurizio Cimadamore
fc9e870275 8012685: Spurious raw types warning when using unbound method references
Spurious raw type warning when unbound method reference qualifier parameter types are inferred from target

Reviewed-by: jjg, vromero
2013-05-15 14:02:37 +01:00
Maurizio Cimadamore
ec458693f7 8012003: Method diagnostics resolution need to be simplified in some cases
Unfold method resolution diagnostics when they mention errors in poly expressions

Reviewed-by: jjg, vromero
2013-05-15 14:00:31 +01:00
Attila Szegedi
a3e2765ce8 8014646: Update the Java interop documentation in the Java Scripting Programmer's Guide
Reviewed-by: jlaskey, hannesw, lagergren
2013-05-15 14:54:28 +02:00
Anton Tarasov
53b25e14cf 8014227: JLightweightFrame needs another synchronization policy
Reviewed-by: art
2013-05-15 16:49:34 +04:00
Rickard Bäckman
cd5cf59bae 4965252: JvmtiExport::post_raw_field_modification jni ref handling is odd
Reviewed-by: coleenp, sspitsyn
2013-05-15 11:30:54 +02:00
Thomas Schatzl
8d53e75550 6843347: Boundary values in some public GC options cause crashes
Setting some public integer options to specific values causes crashes or undefined GC behavior. This patchset adds the necessary argument checking for these options.

Reviewed-by: jmasa, brutisso
2013-05-15 11:05:09 +02:00
Attila Szegedi
3710d6fcf6 8014639: Remove debug flag from test runs
Reviewed-by: hannesw, lagergren
2013-05-15 10:28:18 +02:00
Joe Darcy
892414e73c 8004133: Provide javax.lang.model.* implementation backed by core reflection
Joint work by darcy and jfranck to provide sample code for JEP 119.

Co-authored-by: Joel Borggren-Franck <joel.franck@oracle.com>
Reviewed-by: jjg
2013-05-15 00:00:39 -07:00
David Holmes
4e4591b4da 8013395: StringBuffer.toString performance regression impacting embedded benchmarks
Cache a copy of the char[] to use with toString() and clear it when ever the sb content is modified

Reviewed-by: alanb, plevart, mduigou, forax
2013-05-15 00:36:03 -04:00
Jonathan Gibbons
df6136dc9a 8014323: Add VariableTree.getNameExpression
Reviewed-by: darcy
2013-05-14 21:08:40 -07:00
Sonali Goel
20c8d5925c 8013163: Convert 4 tools multicatch tests to jtreg format
Reviewed-by: jjg
2013-05-14 18:02:48 -07:00
Werner Dietl
54582cab82 8013852: update reference impl for type-annotations
Co-authored-by: Steve Sides <steve.sides@oracle.com>
Co-authored-by: Joel Borggren-Franck <joel.franck@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Reviewed-by: jjg
2013-05-14 15:04:06 -07:00
Xueming Shen
bedabba81c 8014217: Base64.getXDecoder().wrap(...).read() doesn't throw exception for an incorrect number of padding chars in the final unit
To throw IOE for malformed final unit in base64 stream

Reviewed-by: chegar, alanb
2013-05-14 14:20:18 -07:00
Xueming Shen
1e18db55d6 8012326: Deadlock occurs when Charset.availableCharsets() is called by several threads at the same time
Removed the race condition risk from  ExtendedCahrset access code

Reviewed-by: mchung, alanb
2013-05-14 14:09:18 -07:00
Jonathan Gibbons
ac02470255 8014557: Mutable static field in HtmlDocletWriter
Reviewed-by: ksrini
2013-05-14 13:55:35 -07:00
Jonathan Gibbons
8530833747 8014461: genstubs creates default native methods
Reviewed-by: alanb
2013-05-14 12:55:15 -07:00
David Katleman
bf98f48a41 Merge 2013-05-14 12:19:39 -07:00
Kurchi Subhra Hazra
4e50454550 6328537: Improve javadocs for Socket class by adding references to SocketOptions
Insert references to SocketOptions.java where applicable

Reviewed-by: alanb, chegar
2013-05-14 12:01:38 -07:00
Robert Field
c51505263f 8012556: Implement lambda methods on interfaces as static
8006140: Javac NPE compiling Lambda expression on initialization expression of static field in interface

Lambdas occurring in static contexts or those not needing instance information should be generated into static methods.  This has long been the case for classes.  However, as a work-around to the lack of support for statics on interfaces, interface lambda methods have been generated into default methods.  For lambdas in interface static contexts (fields and static methods) this causes an NPE in javac because there is no 'this'.  MethodHandles now support static methods on interfaces.  This changeset allows lambda methods to be generated as static interface methods.  An existing bug in Hotspot (8013875) is exposed in a test when the "-esa" flag is used.  This test and another test that already exposed this bug have been marked with @ignore.

Reviewed-by: mcimadamore
2013-05-14 11:11:09 -07:00
Marcus Lagergren
41f972c2ed 8014426: Original exception no longer thrown away when a finally rethrows
Reviewed-by: attila, jlaskey
2013-05-14 19:56:35 +02:00
Yumin Qi
8218671461 Merge 2013-05-14 17:33:07 +00:00
Attila Szegedi
ca08772ec8 8011718: binding already bound function with extra arguments fails
Reviewed-by: jlaskey, sundar
2013-05-14 19:18:17 +02:00
Jonathan Gibbons
997db01200 8012308: Remove TagletOutput in favor of direct use of Content
Reviewed-by: darcy
2013-05-14 10:14:57 -07:00
Jonathan Gibbons
2a88c7b71d 8012311: Cleanup names and duplicatre code in TagletManager
Reviewed-by: darcy
2013-05-14 10:14:56 -07:00
Jonathan Gibbons
3cbf2d13c3 8012295: Cleanup JavaFX features in standard doclet
Reviewed-by: darcy
2013-05-14 10:14:56 -07:00
Jonathan Gibbons
100a8ab7e0 8012180: Speed up removeNonInlineHtmlTags
Reviewed-by: darcy
2013-05-14 10:14:56 -07:00
Jonathan Gibbons
760506498b 8012183: replace some uses of Configuration.getText with Configuration.getResource
Reviewed-by: darcy
2013-05-14 10:14:55 -07:00
Jonathan Gibbons
160967e991 8012178: Cleanup use of Util.escapeHtmlChars
Reviewed-by: darcy
2013-05-14 10:14:55 -07:00
Jonathan Gibbons
37eaa21584 8012177: HTMLDocletWriter methods should generate Content, not Strings
Reviewed-by: darcy
2013-05-14 10:14:55 -07:00
Jonathan Gibbons
1631e19242 8012176: reduce use of TagletOutputImpl.toString
Reviewed-by: darcy
2013-05-14 10:14:54 -07:00
Jonathan Gibbons
147bdb8230 8012175: Convert TagletOutputImpl to use ContentBuilder instead of StringBuilder
Reviewed-by: darcy
2013-05-14 10:14:54 -07:00
Jonathan Gibbons
fc641c0bd6 8012174: {@literal} and {@code} should use \"new\" Taglet, not old
Reviewed-by: darcy
2013-05-14 10:14:54 -07:00
Jonathan Gibbons
0ac80e7f93 8011288: Erratic/inconsistent indentation of signatures
Reviewed-by: darcy
2013-05-14 10:14:53 -07:00
Jonathan Gibbons
b2becec2bc 8011668: Allow HTMLWriter.getResource to take Content args
Reviewed-by: darcy
2013-05-14 10:14:53 -07:00
Jonathan Gibbons
1711056efc 8011662: Remove single instance of resource with HTML from doclet resource bundle
Reviewed-by: bpatel, darcy
2013-05-14 10:14:53 -07:00
Jonathan Gibbons
c7eaca84da 8011651: simplify LinkInfoImpl API
Reviewed-by: darcy
2013-05-14 10:14:52 -07:00
Jonathan Gibbons
f7e7f8d1bc 8011650: reduce use of RawHtml nodes in doclet
Reviewed-by: darcy
2013-05-14 10:14:52 -07:00
Jonathan Gibbons
f961eafe35 8011642: Remove LinkOutput in favor of direct use of Content
Reviewed-by: bpatel, darcy
2013-05-14 10:14:52 -07:00
Jonathan Gibbons
f2f747f475 8010440: Replace int constants in LinkInfoImpl with enum
Reviewed-by: bpatel, darcy
2013-05-14 10:14:51 -07:00
Vinnie Ryan
dd74360c62 Merge 2013-05-14 18:11:46 +01:00
Stephen Flores
c39030c7b3 7194075: Various classes of sunec.jar are duplicated in rt.jar
Reviewed-by: mullan, vinnie
2013-05-14 18:08:18 +01:00
Andreas Rieber
5ed0727b83 8014519: scriptpad sample does not work with nashorn
Reviewed-by: attila, jlaskey
2013-05-14 22:36:52 +05:30
Yumin Qi
98151c30c8 8012902: remove use of global operator new - take 2
The fix of 8010992, disable use of global operator new and new[] which caused failure on some tests. This takes two of the bugs also add ALLOW_OPERATOR_NEW_USAGE to prevent crash for third party code calling operator new of jvm on certain platforms.

Reviewed-by: coleenp, dholmes, zgu
2013-05-14 09:41:12 -07:00
Alexey Utkin
41b7094a94 8012453: (process) Runtime.exec(String) fails if command contains spaces [win]
Reviewed-by: alanb
2013-05-14 20:16:21 +04:00
Thomas Schatzl
9ce9586188 8014489: tests/gc/arguments/Test(Serial|CMS|Parallel|G1)HeapSizeFlags jtreg tests invoke wrong class
Some jtreg tests reference unknown classes in the @run and @build lines. This change fixes them.

Reviewed-by: stefank, ehelin
2013-05-14 17:08:31 +02:00
Jim Laskey
ac2472f0f8 Merge 2013-05-14 11:16:52 -03:00
James Laskey
df78dbbf73 8014512: Exclude testing and infrastructure packages from code coverage
Reviewed-by: sundar
2013-05-14 11:15:12 -03:00
Alan Bateman
6288fc0c48 8014500: bootcycle-images fails after upgrade to JAXP 1.5
Reviewed-by: lancea
2013-05-14 14:32:15 +01:00
Sergey Bylokhov
ec01b8e3e1 8014423: [macosx] The scrollbar's block increment performs incorrectly
Reviewed-by: anthony, art
2013-05-14 17:25:59 +04:00
Harold Seigel
3aa20631a9 8014138: Add VM option to facilitate the writing of CDS tests
Added the -XX:SharedArchiveFile option.

Reviewed-by: coleenp, ccheung, acorn, dcubed, zgu
2013-05-14 09:17:52 -04:00
Petr Pchelko
de7e7cb85b 8002045: Auto failed and threw exception:java.lang.UnsatisfiedLinkError:
Reviewed-by: serb, anthony
2013-05-14 16:39:55 +04:00
Jim Laskey
bfc562f5b0 Merge 2013-05-14 09:05:03 -03:00
David Holmes
4661adb2d0 8014460: Need to check for non-empty EXT_LIBS_PATH before using it
Reviewed-by: tbell, collins, sla, coleenp
2013-05-14 07:24:50 -04:00
Attila Szegedi
c83c87082a 8014492: Make NashornLinker public
Reviewed-by: hannesw, jlaskey
2013-05-14 12:39:02 +02:00
Aleksey Shipilev
b3675a00d9 8014448: Purge PrintCompactFieldsSavings
Remove obsolete debugging code.

Reviewed-by: dholmes, kvn
2013-05-14 11:34:30 +04:00
Joe Darcy
b281decb0a 8014365: Restore Objects.requireNonNull(T, Supplier<String>)
Reviewed-by: mduigou
2013-05-13 22:16:55 -07:00
Xueming Shen
288d98cbaa 8013386: (tz) Support tzdata2013c
Updated tz data to version 2013c

Reviewed-by: peytoia, okutsu
2013-05-13 20:35:36 -07:00
Valerie Peng
fe625d26a3 Merge 2013-05-13 16:52:33 -07:00
Vladimir Kozlov
2ed62e808c 8014286: failed java/lang/Math/DivModTests.java after 6934604 changes
Corrected escape state for the result of boxing method. Added force inlining executed boxing methods.

Reviewed-by: twisti
2013-05-13 14:36:39 -07:00
Kurchi Subhra Hazra
162500725a 8014254: Selector in HttpServer introduces a 1000 ms delay when using KeepAlive
Rearrange event-handling code to remove bottle-neck. Also reviewed by mhall@mhcomputing.net.

Reviewed-by: chegar, alanb
2013-05-13 13:48:58 -07:00
Mike Duigou
823dd51602 Merge 2013-05-13 13:15:20 -07:00
Christian Thalinger
2c7c39072c Merge 2013-05-13 12:43:10 -07:00
Coleen Phillimore
7a409b13e0 8005056: NPG: Crash after redefining java.lang.Object
Need to walk array class vtables replacing old methods too if j.l.o redefined

Reviewed-by: sspitsyn, dcubed, ctornqvi
2013-05-13 15:37:08 -04:00
Bharadwaj Yadavalli
c5150dac16 8008687: MethodHandle code: allow static and invokespecial calls to interface methods
Changes to support invocation of lambda methods compiled either as static interface methods and or private instance methods.

Reviewed-by: jrose, twisti
2013-05-13 12:26:28 -07:00
Yumin Qi
9a1cd52a0f Merge 2013-05-13 18:08:13 +00:00
Athijegannathan Sundararajan
53fafed923 8012975: Remove rhino from jdk8
Reviewed-by: alanb, tbell
2013-05-13 22:23:17 +05:30
Xue-Lei Andrew Fan
9d11c897d3 8005598: (reopened) Need to clone array of input/output parameters
Reviewed-by: weijun
2013-05-13 06:05:32 -07:00
Xue-Lei Andrew Fan
0abd396d42 8005535: SSLSessionImpl should have protected finalize()
Reviewed-by: weijun, wetmore
2013-05-13 05:41:51 -07:00
Bengt Rutisson
d3a0a48fbb 8014339: Improve assert and remove some dead code from parMarkBitMap.hpp/cpp
Reviewed-by: stefank, tschatzl
2013-05-13 14:09:05 +02:00
Thomas Schatzl
9cfde1acc3 8014058: Regression tests for 8006088
The patch for 8006088 misses regression tests after a merge error, this CR provides them.

Reviewed-by: jwilhelm, tamao, jmasa
2013-05-13 09:45:33 +02:00
Rickard Bäckman
2d6560721c Merge 2013-05-13 07:53:45 +02:00
Ivan Gerasimov
171fdabebb 7021870: GzipInputStream closes underlying stream during reading
Reviewed-by: mduigou
2013-05-10 23:56:24 +04:00
Yumin Qi
9b052f6f3e Merge 2013-05-10 19:30:12 +00:00
Joe Darcy
b1127b3050 8014357: Minor refactorings to sun.reflect.generics.reflectiveObjects.*
Reviewed-by: mchung
2013-05-10 12:25:16 -07:00
Alejandro Murillo
e732ebaa3e 8014279: new hotspot build - hs25-b33
Reviewed-by: jcoomes
2013-05-10 11:27:55 -07:00
Alejandro Murillo
0c58bd4bfd Added tag hs25-b32 for changeset bc27a3d4b35f 2013-05-10 11:14:09 -07:00
Alejandro Murillo
711e6b8bd8 Merge 2013-05-10 11:14:08 -07:00
Mike Duigou
d8751e2c7f Merge 2013-05-10 10:12:58 -07:00
Mike Duigou
386bb440ad 8014316: Use Method Refs in j.u.stream.MatchOps
Reviewed-by: dholmes
2013-05-10 09:51:14 -07:00
Joe Wang
8620b1e2d7 8014333: javadoc error in JAXP 1.5 patch
Reviewed-by: lancea
2013-05-10 09:23:22 -07:00
Roger Riggs
d5da33beea 8014296: DivModTests should not compare pointers
Reviewed-by: darcy
2013-05-10 09:06:21 -07:00
Joe Darcy
fdf90eaba2 8014249: Add Modifer.parameterModifiers()
Reviewed-by: mduigou, mchung
2013-05-10 08:53:38 -07:00
Yumin Qi
c6aa9c656f 8003557: NPG: Klass* const k should be const Klass* k
With NPG, const KlassOop klass which is in fact a definition converted to Klass* const, which is not the original intention. The right usage is converting them to const Klass*.

Reviewed-by: coleenp, kvn
2013-05-10 08:27:30 -07:00
Alan Bateman
6622dd4edf 8011128: (fs) Files.createDirectory fails if the resolved path is exactly 248 characters long
Reviewed-by: khazra, chegar
2013-05-10 14:53:33 +01:00
Jan Lahoda
921bd43131 8012929: Trees.getElement should work not only for declaration trees, but also for use-trees
Co-authored-by: Dusan Balek <dbalek@netbeans.org>
Reviewed-by: jjg
2013-05-10 15:15:50 +02:00
Jonathan Gibbons
c037757e7b 8014363: javac test class ToolTester handles classpath incorrectly
Reviewed-by: ksrini
2013-05-12 18:18:54 -07:00
Joe Darcy
8ea0284b13 8014365: Restore Objects.requireNonNull(T, Supplier<String>)
Reviewed-by: jjg
2013-05-10 14:31:42 -07:00
Alan Bateman
d4858d53df 8014318: tools/javac/profiles/ProfileOptionTest.java needs modifying now that javax.script is in compact1
Reviewed-by: mchung
2013-05-10 16:10:20 +01:00
Marcus Lagergren
1fbc1cbc43 8014329: Slim down the label stack structure in CodeGenerator
Reviewed-by: attila, jlaskey
2013-05-10 13:16:44 +02:00
Joel Borggrén-Franck
5d83fde0d1 8007073: Implement Core Reflection for Type Annotations on parameters
Reviewed-by: darcy, abuckley
2013-05-10 10:20:13 +02:00
Stefan Karlsson
4562f6539d Merge 2013-05-10 09:24:20 +02:00
Lana Steuck
17d9dc0227 Merge 2013-05-09 19:17:43 -07:00
Lana Steuck
1302967992 Merge 2013-05-09 18:42:30 -07:00
Vladimir Kozlov
d7176bf7f8 8014189: JVM crash with SEGV in ConnectionGraph::record_for_escape_analysis()
Add NULL checks and asserts for Type::make_ptr() returned value.

Reviewed-by: twisti
2013-05-09 17:28:04 -07:00
David Katleman
1b186bfddd 8014289: JDK8 b89 source with GPL header errors
Reviewed-by: mchung, mduigou, tbell, dsamersoff
2013-05-09 15:04:56 -07:00
Henry Jen
862e2f6a7d 8006884: (fs) Add Files.list, lines and find
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: briangoetz, mduigou
2013-05-09 14:44:56 -07:00
Mike Duigou
5a95645a18 8004015: Additional static and instance utils for functional interfaces
8011010: Spec j.u.f.Predicate doesn't specify NPEs thrown by the SE8's Reference Implementation

Reviewed-by: briangoetz, dholmes, chegar
2013-05-17 10:36:04 -07:00
Paul Sandoz
b175321e7d 8014133: Spliterator.OfPrimitive
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou, forax
2013-05-15 10:25:59 +02:00
Paul Sandoz
eb66929285 8013334: Spliterator behavior for LinkedList contradicts Spliterator.trySplit
This changeset also contains some minor, non spec, related fixes to tidy up other areas of the JavaDoc.

Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Mike Duigou <mike.duigou@oracle.com>
Reviewed-by: plevart, darcy
2013-05-15 10:15:28 +02:00
Lana Steuck
dfc792a1b8 Merge 2013-05-09 14:23:49 -07:00
Lana Steuck
45e4cc2b02 Merge 2013-05-09 14:23:39 -07:00
Lana Steuck
1d68dd9f45 Merge 2013-05-09 14:23:32 -07:00
Jiangli Zhou
fe9809cd8a Merge 2013-05-09 16:27:51 -04:00
John Cuthbertson
c38f8fc543 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
Refactor G1's hot card cache and card counts table into their own files. Simplify the card counts table, including removing the encoding of the card index in each entry. The card counts table now has a 1:1 correspondence with the cards spanned by heap. Space for the card counts table is reserved from virtual memory (rather than C heap) during JVM startup and is committed/expanded when the heap is expanded. Changes were also reviewed-by Vitaly Davidovich.

Reviewed-by: tschatzl, jmasa
2013-05-09 11:16:39 -07:00
David Katleman
b28e1d37e7 Added tag jdk8-b89 for changeset 36a256ff82cb 2013-05-09 10:04:38 -07:00
David Katleman
a8476a7787 Added tag jdk8-b89 for changeset 9336d45f8213 2013-05-09 10:04:34 -07:00
David Katleman
83957af600 Added tag jdk8-b89 for changeset b3459340dd1f 2013-05-09 10:04:20 -07:00
David Katleman
5ed4655142 Added tag jdk8-b89 for changeset 4945d5ca32c8 2013-05-09 10:04:08 -07:00
David Katleman
9e98214983 Added tag jdk8-b89 for changeset e3e2d366215b 2013-05-09 10:03:59 -07:00
David Katleman
02ee113df6 Added tag jdk8-b89 for changeset 67f1ddecad67 2013-05-09 10:03:35 -07:00
David Katleman
59a13fe659 Added tag jdk8-b89 for changeset 74ccf75aa7da 2013-05-09 10:03:24 -07:00
David Katleman
dbbcb98ba5 Added tag jdk8-b89 for changeset b77fd4a47faf 2013-05-09 10:03:08 -07:00
Jesper Wilhelmsson
3d6c526864 Merge 2013-05-09 12:23:43 +02:00
Lana Steuck
bc6e6c4432 Merge 2013-05-08 23:54:45 -07:00
Lana Steuck
fe8944db98 Merge 2013-05-08 23:53:35 -07:00
Joe Wang
f0330c4199 8011653: Upgrade JDK8 to JAXP 1.5
Reviewed-by: alanb, dfuchs
2013-05-08 23:38:03 -07:00
Lana Steuck
543e9aaba0 Merge 2013-05-08 22:12:51 -07:00
Mike Duigou
857550cad1 8014269: Add missing .PHONY targets to Main.gmk
Reviewed-by: mchung, tbell
2013-05-08 21:42:32 -07:00
David Holmes
8d3d80dbc9 Merge 2013-05-08 21:06:46 -04:00
Jon Masamitsu
bbff951f67 8013184: CMS: Call reset_after_compaction() only if a compaction has been done
Reviewed-by: mgerdin, johnc, tschatzl
2013-05-08 17:12:52 -07:00
David Holmes
49173becc7 Merge 2013-05-08 19:38:41 -04:00
Aleksey Shipilev
c24b224166 8006997: ContendedPaddingWidth should be range-checked
Constrain between zero and 8K

Reviewed-by: dholmes, rbackman
2013-05-08 19:28:54 -04:00
Jon Masamitsu
973d0400c4 8013032: CMS: assert(used() == used_after_gc && used_after_gc <= capacity()) failed: used: 0 used_after_gc: 292080 capacity: 1431699456
Reviewed-by: tschatzl, mgerdin, johnc
2013-05-08 16:28:03 -07:00
Vladimir Kozlov
b4977e887a 6934604: enable parts of EliminateAutoBox by default
Resurrected autobox elimination code and enabled part of it by default.

Reviewed-by: roland, twisti
2013-05-08 15:08:01 -07:00
Bharadwaj Yadavalli
6b031570b6 8013875: Incorrect vtable index being set during methodHandle creation for static
Set vtable index as appropriate for static interface methods and for interface methods invoked via invokespecial. To be improved in a later enhancement to CallInfo.

Reviewed-by: jrose, twisti
2013-05-08 14:18:03 -07:00
Alan Bateman
c426179250 8013652: (profiles) Add javax.script to compact1
Reviewed-by: mchung, dholmes
2013-05-08 18:00:10 +01:00
Attila Szegedi
52d2511fed 8014225: Rerun only failed 262 tests
Reviewed-by: jlaskey, lagergren
2013-05-08 16:48:33 +02:00
Staffan Larsen
3ea303118f Merge 2013-05-08 10:14:57 -04:00
Attila Szegedi
6a35e8c5a8 8013912: Nashorn needs to reuse temporary symbols
Reviewed-by: jlaskey, lagergren
2013-05-08 15:51:36 +02:00
Staffan Larsen
7a1ccbc48a 8013591: compiler/ciReplay/TestSA.sh fails in nightly
Reviewed-by: coleenp, rbackman, dholmes
2013-05-08 15:37:18 +02:00
Harold Seigel
dc96e028d2 8007018: RFE: -XX:+UseLargePages does not work with CDS
Remove command line restriction.  It should just work.

Reviewed-by: ctornqvi, coleenp, dholmes
2013-05-08 08:20:45 -04:00
Joel Borggrén-Franck
d5eeeb875b 8013485: javac can't handle annotations with a <clinit> from a previous compilation unit
Reviewed-by: mcimadamore
2013-05-08 14:10:53 +02:00
Sergey Bylokhov
20afd0e351 8013841: [macosx] Animations not disabled for CALayers used via JAWT
Reviewed-by: anthony, alexsch
2013-05-08 15:58:30 +04:00
Rickard Bäckman
654953bc9a 8008255: jvmtiExport.cpp::post_to_env() does not check malloc() return
Reviewed-by: coleenp, dholmes, sla
2013-05-08 11:21:56 +02:00
Coleen Phillimore
83b5203953 Merge 2013-05-07 18:46:47 -07:00
Weijun Wang
0c02ab3a5e 8012679: Let allow_weak_crypto default to false
Reviewed-by: valeriep
2013-05-08 08:25:34 +08:00
Coleen Phillimore
c7e1bd3c28 Merge 2013-05-07 16:17:43 -07:00
Coleen Phillimore
32df114e2a 8014024: NPG: keep compiled ic methods from being deallocated in redefine classes
Walk the compiledIC relocation records to keep Method* from being deallocated.

Reviewed-by: dlong, kvn
2013-05-07 18:51:31 -04:00
Coleen Phillimore
c4285d8505 Merge 2013-05-07 14:30:11 -07:00
Jonathan Gibbons
5b3642b5ce 8004082: test/tools/javac/plugin/showtype/Test.java fails on windows: jtreg can't delete plugin.jar
Reviewed-by: vromero, mcimadamore
2013-05-07 14:27:30 -07:00
Anthony Scarpino
2c0b00cbe0 8001284: Buffer problems with SunPKCS11-Solaris and CKM_AES_CTR
Changed output length calculation to include incomplete blocks for CTR mode.

Reviewed-by: valeriep
2013-05-07 14:13:53 -07:00
Valerie Peng
94c8fa5cb1 7196009: SunPkcs11 provider fails to parse config path containing parenthesis
Enhanced to allow quoted string as library path values.

Reviewed-by: weijun
2013-05-07 14:06:19 -07:00
Valerie Peng
3eaddd6868 8010134: A finalizer in sun.security.pkcs11.wrapper.PKCS11 perhaps should be protected
Change the finalize method of PKCS11 class to be protected.

Reviewed-by: xuelei
2013-05-07 14:04:53 -07:00
Kumar Srinivasan
0582038c10 8013736: [launcher] cleanup code for correctness
8005735: [parfait] False positive integer overflow in jdk/src/solaris/bin/jexec.c
8009873: [parfait] Memory leak at jdk/src/share/bin/wildcard.c
8005807: [parfait] Undefined return value at jdk/src/share/bin/java.c

Reviewed-by: alanb, martin
2013-05-07 13:15:28 -07:00
David Katleman
30d1e70fdb Merge 2013-05-07 13:13:12 -07:00
Christian Tornqvist
601071bc6d 8009577: Test test/closed/runtime/classunload broken
Fixed tests to use new way of utilizing the WB API, fixed issue with where custom classloader got the classes from

Reviewed-by: collins, mgerdin, zgu
2013-05-07 21:36:59 +02:00
Brandon Passanisi
aac9a477c2 4802647: Throw required NPEs from removeAll()/retainAll()
Reviewed-by: mduigou, chegar, dholmes
2013-05-07 12:05:52 -07:00
Naoto Sato
06036d34ef 8013086: NPE thrown by SimpleDateFormat with TimeZoneNameProvider supplied
Reviewed-by: okutsu
2013-05-07 11:31:08 -07:00
Staffan Larsen
dafdd3677f 8004007: test/sun/tools/jinfo/Basic.sh fails on when runSA is set to true
Reviewed-by: alanb, dsamersoff
2013-05-07 20:00:47 +02:00
Staffan Larsen
90294d0d6a 6980985: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage is not robust when getMax() returns -1
7181907: TEST_BUG: j/l/management/MemoryMXBean/ResetPeakMemoryUsage fails with NegativeArraySizeException
7148492: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java failing since update to hs23-b15 or b16

Reviewed-by: mchung, brutisso
2013-05-07 19:57:55 +02:00
David Katleman
80ce36c2e8 Merge 2013-05-07 10:51:07 -07:00
Eric McCorkle
32fa61ad54 8009729: Refix hotspot jni_<cpu>.h JNIEXPORT and JNIIMPORT definitions to match jdk version
Update JNIEXPORT and JNIIMPORT to work with other compilers that don't necessarily have the __attribute__ type qualifier

Reviewed-by: dholmes, dcubed, coleenp
2013-05-07 13:45:59 -04:00
Jennifer Godinez
6bae4c82a9 8011069: Printing: NullPointerException since jdk8 b82 showing native Page Setup Dialog
Reviewed-by: bae, prr
2013-05-07 09:32:37 -07:00
Vladimir Danushevsky
287a1617db Merge 2013-05-07 10:36:20 -04:00
Bill Pittore
de01ed0a09 8013633: Cleanup platform ifdefs in unsafe.cpp
Replace ifdefs with SUPPORTS_NATIVE_CX8 set in platform include file

Reviewed-by: dholmes, dlong
2013-05-07 10:19:33 -04:00
Coleen Phillimore
8320660846 8013063: nsk/jvmti/RetransformClasses/retransform001 failed debug version on os::free
Clear out class_file_bytes so they aren't deallocated twice

Reviewed-by: dcubed, sspitsyn
2013-05-07 09:46:15 -04:00
Robert Field
136b4bc9b2 8014023: When a method reference to a local class constructor is contained in a method whose number of parameters matches the number of constructor parameters compilation fails
Reviewed-by: mcimadamore
2013-05-07 06:39:34 -07:00
Marcus Lagergren
c668214703 8013914: Removed explicit LineNumberNodes that were too brittle when code moves around, and also introduced unnecessary footprint. Introduced the Statement node and fixed dead code elimination issues that were discovered by the absense of labels for LineNumberNodes
Reviewed-by: jlaskey, attila
2013-05-07 14:43:17 +02:00
Marcus Lagergren
a788347b73 8013913: Removed Source field from all nodes except FunctionNode in order to save footprint
Reviewed-by: jlaskey, attila
2013-05-07 14:36:57 +02:00
Staffan Larsen
edf88d3db7 8005038: remove crufty '_g' support from SA
Reviewed-by: coleenp, mgronlun, rbackman
2013-05-07 14:33:09 +02:00
Staffan Larsen
fd1ead19be 8014044: Spelling error in JDK-8009615: boostrapmethod
Reviewed-by: sspitsyn, coleenp
2013-05-07 14:04:26 +02:00
Daniel Fuchs
b317a8b992 8008738: Issue in com.sun.org.apache.xml.internal.serializer.Encodings causes some JCK tests to fail intermittently
Encodings.java sometimes creates EncodingInfo objects whose java names are not recognized by the Charset API. This patch fixes that issue.

Reviewed-by: joehw, alanb
2013-05-07 11:35:49 +02:00
Joel Borggrén-Franck
361312dcfe 8013541: Revise javadoc for Executable.getAnnotatedReturnType()
Reviewed-by: abuckley, darcy
2013-05-07 09:52:23 +02:00
Weijun Wang
5ec35be1d2 8010192: Enable native JGSS provider on Mac
Reviewed-by: valeriep
2013-05-07 12:30:36 +08:00
Xueming Shen
722199f9b2 8013252: Regex Matcher .start and .end should be accessible by group name
8013254: Constructor \w need update to add the support of \p{Join_Control}

Added the requested methods and updated the \w constructor

Reviewed-by: mchung, alanb
2013-05-06 21:24:37 -07:00
Brian Goetz
68101a98fd 8003258: BufferedReader.lines()
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: alanb, mduigou, psandoz
2013-05-06 20:54:54 -07:00
Akhil Arora
e41e09a670 8013150: Iterator.remove and forEachRemaining relationship not specified
Reviewed-by: mduigou
2013-05-06 20:54:48 -07:00
Mike Duigou
5001b55ff1 8013712: Add Objects.nonNull and Objects.isNull
Reviewed-by: mchung, darcy
2013-05-06 20:54:42 -07:00
Jiangli Zhou
7f4ae06bdb Merge 2013-05-06 20:11:18 -07:00
Christian Thalinger
7c367a6025 8008772: remove gamma launcher
Reviewed-by: kvn, neliasso, ctornqvi
2013-05-06 19:49:23 -07:00
Jiangli Zhou
ba80b3e045 8013067: Zero builds are broken after 8010862
Fixed broken Zero build.

Reviewed-by: twisti, coleenp, kvn
2013-05-06 19:57:35 -04:00
Staffan Larsen
db19e8b60f Merge 2013-05-07 01:25:21 +02:00
Dan Xu
c31fc852f1 8003992: File and other classes in java.io do not handle embedded nulls properly
Have every file operation done with File, FileInputStream, FileOutputStream, or RandomAccessFile that involves a file path containing NUL fail. Also reviewed by fweimer@redhat.com

Reviewed-by: alanb, sherman, ahgross, mduigou, dholmes, aph, plevart, martin
2013-05-06 14:17:59 -07:00
Christian Thalinger
149097fbb7 7196277: JSR 292: Two jck/runtime tests crash on java.lang.invoke.MethodHandle.invokeExact
Reviewed-by: jrose, kvn
2013-05-06 13:53:13 -07:00
Volker Simonis
dbb7fe4b2a 7191872: Xrender: No text displayed using 64 bit JDK on solaris11-sparc
Reviewed-by: prr, ceisserer
2013-05-06 12:57:42 -07:00
Karen Kinnear
a37bc54517 Merge 2013-05-06 12:36:20 -07:00
Bengt Rutisson
a8ad116e49 8013872: G1: HeapRegionSeq::shrink_by() has invalid assert
Refactored shrink_by() to only use region counts and not byte sizes

Reviewed-by: johnc, tschatzl
2013-05-06 21:30:34 +02:00
Lana Steuck
12203fae88 Merge 2013-05-06 11:53:58 -07:00
Lana Steuck
23b301d6d8 Merge 2013-05-06 11:53:44 -07:00
Lana Steuck
9bc20d4410 Merge 2013-05-06 11:50:13 -07:00
Lana Steuck
fd799b4af7 Merge 2013-05-06 11:41:40 -07:00
Lana Steuck
e2c0f714d5 Merge 2013-05-06 11:41:36 -07:00
Lana Steuck
8377d16722 Merge 2013-05-06 11:41:35 -07:00
Staffan Larsen
f4c589b895 8009615: JvmtiClassFileReconstituter does not create BootstrapMethod attributes
Reviewed-by: coleenp, sspitsyn
2013-05-06 19:49:18 +02:00
Karen Kinnear
409e738a07 Merge 2013-05-06 10:20:18 -07:00
Daniel Fuchs
c76e4b0e46 8008738: Issue in com.sun.org.apache.xml.internal.serializer.Encodings causes some JCK tests to fail intermittently
Encodings.java sometimes creates EncodingInfo objects whose java names are not recognized by the Charset API. This patch fixes that issue.

Reviewed-by: joehw, alanb
2013-05-06 18:50:16 +02:00
Zhengyu Gu
ce1df81ab9 Merge 2013-05-06 08:49:38 -07:00
Brian Goetz
15adfafa5b 8012664: Add tests for java.util.stream and lambda translation
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Mike Duigou <mike.duigou@oracle.com>
Co-authored-by: Robert Field <robert.field@oracle.com>
Co-authored-by: Jim Gish <jim.gish@oracle.com>
Reviewed-by: mduigou, briangoetz
2013-05-06 11:43:51 -04:00
Thomas Schatzl
9b9b515fb8 8006088: Incompatible heap size flags accepted by VM
Make processing of minimum, initial and maximum heap size more intiutive by removing previous limitations on allowed values, and make error reporting consistent. Further, fix errors in ergonomic heap sizing.

Reviewed-by: johnc, jwilhelm, tamao
2013-05-06 17:19:42 +02:00
Zhengyu Gu
c2330eb6b1 8013120: NMT: Kitchensink crashes with assert(next_region == NULL || !next_region->is_committed_region()) failed: Sanity check
Fixed NMT to deal with releasing virtual memory region when there are still committed regions within it

Reviewed-by: acorn, coleenp
2013-05-06 11:15:13 -04:00
Jan Lahoda
57d8a7fc0f 8009724: Enhance the DocTree API with DocTreePath
Adding DocTreePath and DocTreePathScanner similar to TreePath and TreePathScanner, respectively

Co-authored-by: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Reviewed-by: jjg
2013-05-06 16:22:45 +02:00
Harold Seigel
768a1b55cf 8013648: Guarantee(VerifyBeforeGC || VerifyDuringGC || VerifyBeforeExit || VerifyAfterGC) failed: too expensive
Fix code to call correct version of function find_class().

Reviewed-by: coleenp, rdurbin, dcubed
2013-05-06 09:10:21 -04:00
Sergey Bylokhov
c9775371ce 7161575: [macosx] On MacOSX port java.awt.Toolkit.is/setDynamicLayout() are not consistent
Reviewed-by: anthony, art
2013-05-06 16:23:36 +04:00
Jesper Wilhelmsson
0c4933f5b0 Merge 2013-05-06 13:03:46 +02:00
Bengt Rutisson
36c195270d 8013791: G1: G1CollectorPolicy::initialize_flags() may set min_alignment > max_alignment
Make sure max alignemnt is at least as large as min alignment

Reviewed-by: johnc, jmasa, tschatzl
2013-05-06 09:16:14 +02:00
Dag Wanvik
4d7fdabddb Merge 2013-05-06 06:05:06 +02:00
Joe Darcy
d606b9d0d6 8013909: Fix doclint issues in javax.lang.model
Reviewed-by: jjg
2013-05-05 21:04:41 -07:00
Dag Wanvik
d4f6e1c9d3 8013403: Update JDK8 with Java DB 10.10.1.1
Drop Java DB 10.10.1.1 bits into JDK 8 and update image builds

Reviewed-by: tbell
2013-05-06 05:51:01 +02:00
Andrew John Hughes
46da8f45a9 8011366: Enable debug info on all libraries for OpenJDK builds
The build should not be turning off debugging if it has been requested.

Reviewed-by: erikj, dholmes
2013-05-04 17:04:57 +01:00
Jonathan Gibbons
4b44fd7622 8008768: Using {@inheritDoc} in simple tag defined via -tag fails
Co-authored-by: Mike Duigou <mike.duigou@oracle.com>
Reviewed-by: jjg, mduigou
2013-05-03 17:44:38 -07:00
Daniel D. Daugherty
79f4c78a72 Merge 2013-05-03 15:51:16 -07:00
Vladimir Kozlov
1763afaec5 Merge 2013-05-03 15:35:30 -07:00
Jonathan Gibbons
cb5ef8cc5c 8000407: remove @GenerateNativeHeader
Reviewed-by: vromero, darcy
2013-05-03 15:08:47 -07:00
Jason Uh
b762ba9ab4 8005922: TEST_BUG: There is no /tmp directory for windows system
Reviewed-by: weijun
2013-05-03 15:04:54 -07:00
Hannes Wallnöfer
5504a220f7 8013874: Function argument's prototype seem cached and wrongly reused
Reviewed-by: jlaskey
2013-05-03 22:50:51 +02:00
Hannes Wallnöfer
253e421ec5 8013873: Regexp regression for escaped dash in character class
Reviewed-by: jlaskey
2013-05-03 22:48:53 +02:00
Hannes Wallnöfer
973d656320 8013878: ClassCastException in Regex
Reviewed-by: jlaskey
2013-05-03 22:47:23 +02:00
Zhengyu Gu
5948d45dd8 Merge 2013-05-03 13:00:28 -07:00
Mike Duigou
a90afa9d76 8013528: Provide SharedSecrets access to String(char[], boolean) constructor
Reviewed-by: martin, alanb, chegar, plevart
2013-05-03 10:57:28 -07:00
Jonathan Gibbons
ce05f1c8ec 8002387: Improve rendered HTML formatting for {@code}
Reviewed-by: ksrini
2013-05-03 10:17:12 -07:00
Jonathan Gibbons
155bd74411 8012728: Normalize @ignore comments on langtools tests
Reviewed-by: vromero, mcimadamore
2013-05-03 09:56:56 -07:00
Alejandro Murillo
5e8becfa39 8013800: new hotspot build - hs25-b32
Reviewed-by: jcoomes
2013-05-03 08:19:38 -07:00
Alejandro Murillo
73a8b2719a Added tag hs25-b31 for changeset 62f2a12da171 2013-05-03 08:10:11 -07:00
Alejandro Murillo
ec847be4fa Merge 2013-05-03 08:10:10 -07:00
Marcus Lagergren
87ff1bd751 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
Reviewed-by: jlaskey, hannesw
2013-05-03 16:01:33 +02:00
Marcus Lagergren
6f6ec2d9d1 8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
Reviewed-by: jlaskey, hannesw
2013-05-03 15:33:54 +02:00
Frederic Parain
7e7edc4cfa Merge 2013-05-03 05:17:15 -07:00
Frederic Parain
7c2fb49608 8004095: Add support for JMX interface to Diagnostic Framework and Commands
Reviewed-by: acorn, sla
2013-05-03 05:05:31 -07:00
Staffan Larsen
1f2075c0e4 8013785: Respect EXTRA_CFLAGS on windows
Reviewed-by: mgronlun, rbackman, kvn
2013-05-03 12:26:15 +02:00
Staffan Larsen
cd65b9e32e 8008453: JvmtiClassFileReconstituter does not recognize default methods
Reviewed-by: acorn, sspitsyn
2013-05-03 12:24:11 +02:00
Vladimir Kozlov
43fbbe98b7 Merge 2013-05-02 18:50:05 -07:00
Calvin Cheung
f88c429a69 8012641: Perf_CreateLong creates perf counter of incorrect type
Reviewed-by: mchung, hseigel, coleenp
2013-05-02 16:55:00 -07:00
Mikael Gerdin
94677d4faf Merge 2013-05-02 16:41:09 -07:00
David Katleman
cd39069cf4 Added tag jdk8-b88 for changeset ddfec66935ab 2013-05-02 13:35:59 -07:00
David Katleman
4cb79dcf34 Added tag jdk8-b88 for changeset a072db97da9b 2013-05-02 13:35:55 -07:00
David Katleman
0de3f3d975 Added tag jdk8-b88 for changeset a7caf0d4cb98 2013-05-02 13:35:34 -07:00
David Katleman
86ee3fb7f0 Added tag jdk8-b88 for changeset bc758d2252be 2013-05-02 13:35:21 -07:00
David Katleman
864cbe9a70 Added tag jdk8-b88 for changeset a53cf0f890db 2013-05-02 13:35:16 -07:00
Bengt Rutisson
d08bf8d1be 8013574: PrintMalloc conflicts with the command line parsing
Make sure that _num_jvm_args is not updated until the new entry to _jvm_args_array has been added

Reviewed-by: johnc, tamao, tschatzl
2013-05-02 22:35:15 +02:00
David Katleman
31e3e6051a Added tag jdk8-b88 for changeset e6d52b5fe8d1 2013-05-02 13:35:00 -07:00
David Katleman
11051daab3 Added tag jdk8-b88 for changeset 4752a2b59f2e 2013-05-02 13:34:46 -07:00
David Katleman
41ad8fa3f5 Added tag jdk8-b88 for changeset 53de314b1c30 2013-05-02 13:34:39 -07:00
Jiangli Zhou
668be30ae1 Merge 2013-05-02 13:12:33 -07:00
James Laskey
cd9c2c1bb2 8013796: load("fx:base.js") should not be in fx:bootstrap.js
Reviewed-by: sundar, lagergren
2013-05-02 15:01:16 -03:00
Mikael Gerdin
67b238b12d Merge 2013-05-02 19:28:59 +02:00
Jim Laskey
cfcdf2c4c1 Merge 2013-05-02 13:23:36 -03:00
James Laskey
6ee68537b6 8013794: JDK-8006220 caused an octane performance regression
Reviewed-by: lagergren, sundar
2013-05-02 13:22:46 -03:00
Jiangli Zhou
e009341957 Merge 2013-05-02 12:16:01 -04:00
Karen Kinnear
570af5a3dd 8010783: assert(s->refcount() != 0) failed: for create_overpasses
Reviewed-by: kvn, dcubed
2013-05-02 10:58:04 -04:00
Erik Joelsson
6ad3839543 8013552: Add build support for different man pages for OpenJDK and OracleJDK
Reviewed-by: tbell, omajid
2013-05-02 15:59:32 +02:00
Erik Joelsson
e1001e848f 8011687: Support correct dependencies from header files on windows and solaris
Reviewed-by: tbell
2013-05-02 15:56:39 +02:00
Erik Joelsson
e44f5ce0ae 8013786: JDK-8013480 broke configure on solaris
Reviewed-by: tbell
2013-05-02 15:46:38 +02:00
Jaroslav Bachorik
7c11aba793 7199324: Connection ID for IPv6 addresses is not generated accordingly to the specification
RemoteServer.getClientHost is returning a String with an IPv6 literal address and we need to enclose it in [] when building the connection id

Reviewed-by: alanb, sjiang
2013-05-02 13:21:09 +02:00
Weijun Wang
cd5050ea28 8013855: DigestMD5Client has not checked RealmChoiceCallback value
Reviewed-by: xuelei, mullan
2013-05-03 10:43:24 +08:00
Kurchi Subhra Hazra
3dbbc23195 8013140: Heap corruption with NetworkInterface.getByInetAddress() and long i/f name
Remove buffer overruns in native code

Reviewed-by: alanb, chegar
2013-05-02 14:26:51 -07:00
Alexander Zuev
ec8f960d21 8013155: [pack200] improve performance of pack200
Reviewed-by: ksrini, jrose
2013-05-02 21:23:44 +04:00
Akhil Arora
e9d3d7b789 8012645: Stream methods on BitSet, Random, ThreadLocalRandom, ZipFile
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou, henryjen, alanb, martin, psandoz
2013-05-02 09:18:56 -07:00
Albert Noll
317f9c229e 8013532: Remove unused parameter "compiler" from DTRACE_METHOD_COMPILE* macros
Remove unused parameter in dtrace macros

Reviewed-by: kvn, roland
2013-05-02 10:27:15 +02:00
Hannes Wallnöfer
323a923236 8013729: SwitchPoint invalidation not working over prototype chain
Reviewed-by: lagergren, sundar
2013-05-02 09:19:44 +02:00
Kumar Srinivasan
35b650e364 8013225: Refresh jdk's private ASM to the latest
Reviewed-by: mduigou, sundar
2013-05-01 15:08:31 -07:00
David Katleman
ed46a4d3bf Merge 2013-05-01 14:59:55 -07:00
Lana Steuck
890ea1852e Merge 2013-05-01 11:34:06 -07:00
Lana Steuck
d467408daf Merge 2013-05-01 11:27:12 -07:00
Paul Sandoz
b047746827 8012646: Pattern.splitAsStream
Co-authored-by: Ben Evans <benjamin.john.evans@gmail.com>
Reviewed-by: forax, plevart, alanb
2013-05-01 18:40:31 +02:00
Jason Uh
33196b314d 8007699: Move some tests from test/sun/security/provider/certpath/X509CertPath to closed repo
Reviewed-by: mullan
2013-05-09 12:00:46 -07:00
Lana Steuck
4cb70c3b15 Merge 2013-05-01 09:20:08 -07:00
Bharadwaj Yadavalli
dc96841053 Merge 2013-05-01 09:00:39 -07:00
Robert Field
0ab1bb68cc 8011591: BootstrapMethodError when capturing constructor ref to local classes
Reviewed-by: mcimadamore
2013-05-01 08:46:04 -07:00
Stuart Marks
73e9aec3c4 8012665: add CharSequence.chars, CharSequence.codePoints
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: martin, alanb, ulfzibis, mduigou
2013-05-01 08:35:09 -07:00
Bharadwaj Yadavalli
f631e3d253 8013418: assert(i == total_args_passed) in AdapterHandlerLibrary::get_adapter since 8-b87
Do not treat static methods as miranda methods.

Reviewed-by: dholmes, acorn
2013-05-01 08:07:59 -07:00
Vladimir Danushevsky
cd7d5cba42 Merge 2013-05-01 10:10:57 -04:00
Weijun Wang
905250cdfe 8012082: SASL: auth-conf negotiated, but unencrypted data is accepted, reset to unencrypt
Reviewed-by: vinnie
2013-05-01 21:05:10 +08:00
Chris Hegarty
efa5a06ca3 8013723: ProblemList.txt updates (5/2013)
Reviewed-by: alanb
2013-05-01 11:15:35 +01:00
Sergey Bylokhov
9272b07bd0 8009012: [macosx] DisplayChangedListener is not implemented in LWWindowPeer/CGraphicsEnvironment
Reviewed-by: anthony, bae
2013-05-01 12:19:25 +04:00
Lana Steuck
1e981ec895 Merge 2013-04-30 22:43:02 -07:00
Thomas Ng
08180c3c6e Merge 2013-04-30 21:49:38 -07:00
Lana Steuck
24b1af66cb Merge 2013-04-30 17:53:41 -07:00
Lana Steuck
1cc57f6d39 Merge 2013-04-30 17:53:30 -07:00
Lana Steuck
876bc1c753 Merge 2013-04-30 17:50:05 -07:00
Lana Steuck
884edbe425 Merge 2013-04-30 17:41:18 -07:00
Lana Steuck
20a2a6fdd6 Merge 2013-04-30 17:41:10 -07:00
Staffan Larsen
04fdba24b5 Merge 2013-05-01 01:07:50 +02:00
Mandy Chung
dc74edc516 8013531: Provide a utility class in com.sun.tools.classfile to find field/method references
Reviewed-by: alanb
2013-04-30 15:43:00 -07:00
David Katleman
42137c1751 Merge 2013-04-30 14:40:54 -07:00
David Katleman
68446ddbad Merge 2013-04-30 14:39:49 -07:00
Vladimir Danushevsky
867c30e1bd 8013398: Adjust number of stack guard pages on systems with large memory page size
Auto adjust number of stack guard pages on systems with large memory page size

Reviewed-by: bobv, coleenp
2013-04-30 17:36:01 -04:00
Staffan Larsen
e8848553b1 8013364: SA-JDI exceptions caused by lack of permissions on OSX should be more verbose about issue cause
Reviewed-by: coleenp, rbackman
2013-04-30 21:47:02 +02:00
Calvin Cheung
0f7adcc3d9 8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
Reviewed-by: coleenp, zgu, hseigel
2013-04-30 11:56:52 -07:00
Mark Sheppard
b09026494b 8007799: Base64.getEncoder(0, byte[]) returns an encoder that unexpectedly inserts line separators
Reviewed-by: sherman, iris
2013-04-30 16:24:08 +01:00
Chris Hegarty
49619272d0 6594296: NetworkInterface.getHardwareAddress returns zero length byte array
Reviewed-by: alanb
2013-05-01 10:03:39 +01:00
Lana Steuck
9286dd7a1b Merge 2013-04-30 17:51:31 -07:00
Mandy Chung
ecf27fe8fe 8013531: Provide a utility class in com.sun.tools.classfile to find field/method references
Reviewed-by: alanb
2013-04-30 15:42:16 -07:00
Alan Bateman
6878027374 8013647: JPRT unable to clean-up after tests that leave file trees with loops
Reviewed-by: chegar, tbell
2013-04-30 21:19:24 +01:00
Kumar Srinivasan
2a56d8fc8f 8009389: Unpack200 native library should be removed from profiles
Reviewed-by: alanb, bobv, jrose
2013-04-30 13:12:54 -07:00
Mike Duigou
eeb2dcdfe2 Merge 2013-04-30 12:32:49 -07:00
Mike Duigou
10f955e370 8011814: Add testng.jar to Netbeans projects test compile classpath
8013271: Add MacOS sources to J2SE Netbeans project
8013272: JDK Netbeans projects should use ASCII encoding for sources

Reviewed-by: lancea
2013-04-30 12:31:51 -07:00
Lance Andersen
785f0d2a94 8010416: Add a way for java.sql.Driver to be notified when it is deregistered
Reviewed-by: alanb, ulfzibis
2013-04-30 14:44:25 -04:00
Erik Helin
10be07bb9d 8008541: Remove old code in HotSpot that supported the jmap -permstat functionality
Reviewed-by: sla, brutisso
2013-04-30 16:36:24 +02:00
Sergey Bylokhov
eecd56482f 7166296: closed/java/awt/Frame/DisabledParentOfToplevel/DisabledParentOfToplevel.html failed since 1.8.0b36
Reviewed-by: anthony, art
2013-04-30 17:27:48 +04:00
Zhengyu Gu
a2f5f4ca1b 8013214: BigApps fails due to 'fatal error: Illegal threadstate encountered: 6'
Grab and drop SR_lock to get the thread to honor the safepoint protocol

Reviewed-by: dcubed, coleenp
2013-04-30 09:17:06 -04:00
James Laskey
ab18b431cb 8006220: Simplify PropertyMaps
Reviewed-by: hannesw, lagergren
2013-04-30 10:05:42 -03:00
Staffan Larsen
c8db53ce50 Merge 2013-04-30 02:28:42 -07:00
Mikhail Cherkasov
6eb1682ef6 8012004: JInternalFrame not being finalized after closing
Reviewed-by: alexsch, alexp
2013-04-30 13:24:14 +04:00
Staffan Larsen
60a56c2f06 8013466: SA crashes when attaching to a process on OS X
Reviewed-by: coleenp, rbackman, minqi
2013-04-30 10:53:58 +02:00
Marcus Lagergren
a2c222ef34 8013533: Increase code coverage report for types and logging
Reviewed-by: hannesw, sundar
2013-04-30 09:42:13 +02:00
Jim Laskey
5c0631d52b Merge 2013-04-29 21:38:08 -03:00
Mark Sheppard
8394ed673f 8007373: Inet6Address serialization incompatibility
Reviewed-by: alanb, chegar
2013-04-29 23:07:22 +01:00
Staffan Larsen
ab5d36141f 8003671: [findbugs] sun.management.AgentConfigurationError.getParams() may expose internal representation by returning AgentConfigurationError.params
Reviewed-by: mchung, rbackman, jbachorik
2013-04-30 10:48:25 +02:00
Brian Goetz
73fcb04231 8011917: Add java.util.stream.Collectors utilities
Reviewed-by: darcy, mduigou
2013-04-29 22:03:04 -07:00
Attila Szegedi
8c132a0300 8008814: Configurable ignore/warning/error behavior for function declaration as statement
Reviewed-by: jlaskey, sundar
2013-04-29 23:22:20 +02:00
Mike Duigou
7a7e17fa96 Merge 2013-04-29 14:21:14 -07:00
Mike Duigou
f18c58b0fd 8008632: Additional JavaDoc tags @apiNote, @implSpec and @implNote
Reviewed-by: briangoetz, alanb, rriggs
2013-04-29 14:20:02 -07:00
Mikael Vidstedt
9e8a3585b0 8012015: Use PROT_NONE when reserving memory
Reserved memory had PROT_READ+PROT_WRITE access on Linux/bsd, now changed to PROT_NONE.

Reviewed-by: dholmes, ctornqvi
2013-04-29 11:03:49 -07:00
Harold Seigel
c108e3a79f Merge 2013-04-29 16:36:17 -04:00
Harold Seigel
2a692f80bf 8011773: Some tests on Interned String crashed JVM with OOM
Instead of terminating the VM, throw OutOfMemoryError exceptions.

Reviewed-by: coleenp, dholmes
2013-04-29 16:13:57 -04:00
Chris Hegarty
2aaf545877 Merge 2013-04-29 18:12:28 +01:00
Johnny Chen
08b07cc598 8005302: [findbugs] public methods return internal arrays; may be private
Reviewed-by: bae, prr
2013-04-29 10:02:21 -07:00
Omair Majid
c3f688a4e2 8013480: fix zero build on arm
Reviewed-by: erikj
2013-04-29 12:34:53 -04:00
Athijegannathan Sundararajan
56129142b0 8013444: JSON.parse does not invoke "reviver" callback as per spec
Reviewed-by: jlaskey, hannesw
2013-04-29 18:40:40 +05:30
Dmeetry Degrave
f93211b1fa 8011986: [corba] idlj generates read/write union helper methods that throw wrong exception in some cases
Reviewed-by: lancea
2013-04-29 16:51:32 +04:00
Dmeetry Degrave
83a4efe565 4504275: CORBA boolean type unions do not generate compilable code from idlj
JLS doesn't allow boolean type in switch statement, hence substituted by if statement.

Reviewed-by: lancea
2013-04-29 16:44:32 +04:00
Sergey Malenkov
4eac739177 8007458: [findbugs] One more beans issue, with ReflectionUtils
Reviewed-by: art, alexsch
2013-04-29 16:42:22 +04:00
John Zavgren
db7849a34b 8012108: Memory leak in jdk/src/windows/native/java/net/NetworkInterface_winXP.c
Modified code to fix this leak and then proactively fixed improper calls to realloc() in the windows native code that can also cause leaks.

Reviewed-by: chegar, khazra, dsamersoff
2013-04-29 08:17:27 -04:00
David Holmes
e0cc6375d8 8010280: jvm.cfg needs updating for non-server builds
Generate jvm.cfg based on chosen VMs for non-"standard" builds and remove legacy entries from committed jvm.cfg files

Reviewed-by: mduigou, tbell
2013-04-29 07:40:04 -04:00
Attila Szegedi
a659fce8ff 8013419: Streamline handling of with and eval
Reviewed-by: hannesw, lagergren
2013-04-29 13:21:17 +02:00
Nils Eliasson
dedfcd5aa4 8012547: Code cache flushing can get stuck reclaming of memory
Keep sweeping regardless of if we are flushing

Reviewed-by: kvn, twisti
2013-04-29 13:20:19 +02:00
Mikael Gerdin
40531b2009 8013129: Possible deadlock with Metaspace locks due to mixed usage of safepoint aware and non-safepoint aware locking
Change Metaspace::deallocate to take lock with _no_safepoint_check_flag

Reviewed-by: coleenp, jmasa, dholmes
2013-04-29 13:07:27 +02:00
Alan Bateman
a06b5fe6d7 8013415: Changes for JDK-8005523 requires updates to refs.allowed
Reviewed-by: chegar
2013-04-29 10:28:22 +01:00
Jiangli Zhou
a4ca5b8a49 Merge 2013-04-29 01:58:43 -07:00
Mikael Gerdin
fa84ba4ba9 Merge 2013-04-29 09:31:59 +02:00
Carlos Lucasius
ab42e2c0ca 8010428: Special -agentpath checks needed with minimal VM to produce proper error message
Reviewed-by: dholmes, alanb, cjplummer, olagneau
2013-04-28 18:24:04 -04:00
Alan Bateman
9077ce999d 8013413: javadoc warnings
Reviewed-by: lancea, chegar
2013-04-28 21:06:36 +01:00
Weijun Wang
70b23a07be 8005523: Unbound krb5 for TLS
Reviewed-by: xuelei
2013-04-27 18:25:16 +08:00
Peter Levart
95aba47819 7123493: (proxy) Proxy.getProxyClass doesn't scale under high load
Reviewed-by: mchung
2013-04-26 16:09:53 -07:00
Jiangli Zhou
ffaac42580 Merge 2013-04-26 14:41:10 -07:00
Michael Fang
e3d2e3af08 Merge 2013-04-26 14:16:23 -07:00
Xueming Shen
115e610026 8007395: StringIndexOutofBoundsException in Match.find() when input String contains surrogate UTF-16 characters
Updated GroupCurly.match0() to backtrack correctly

Reviewed-by: mchung
2013-04-26 13:59:10 -07:00
Jiangli Zhou
b769cd296f Merge 2013-04-26 16:58:18 -04:00
Jiangli Zhou
955b42848e 8013036: vm/runtime/simpleThresholdPolicy.cpp: assert(mcs != NULL)
Change the assert to if check as MethodCounters could be NULL under TieredCompilation.

Reviewed-by: kvn, twisti
2013-04-26 16:21:03 -04:00
Alexander Harlap
4d86bd3503 8011152: Precision problems on sflt builds
Need to add global flag to the linker

Reviewed-by: tbell, dholmes
2013-04-26 15:54:12 -04:00
Bharadwaj Yadavalli
2c55e61e3a Merge 2013-04-26 14:50:23 -04:00
James Laskey
0a036d8c65 8013360: Should be using JavaFX 8 classes for -fx support
Reviewed-by: hannesw, sundar
2013-04-26 15:13:09 -03:00
John Cuthbertson
fefd60fcfd 8011898: gc/TestVerifyBeforeGCDuringStartup.java: java.lang.RuntimeException: '[Verifying' missing from stdout/stderr: [Error: Could not find or load main class]
System.getProperty("test.java.opts") can return NULL, which gets converted to to the empty string, and the child java command then interprets that as the name of the main class.

Reviewed-by: jmasa, brutisso
2013-04-26 10:57:57 -07:00
Bharadwaj Yadavalli
32b042e285 Merge 2013-04-26 10:52:26 -07:00
Athijegannathan Sundararajan
cae93c2746 8013369: nashorn build failure with jdk8 b84
Reviewed-by: hannesw
2013-04-26 22:29:11 +05:30
Michael Fang
558bfb0deb Merge 2013-04-26 09:19:58 -07:00
Daniel D. Daugherty
6a4aa00cc1 Merge 2013-04-26 08:40:24 -07:00
Hannes Wallnöfer
65661628af 8006559: Octane:pdfjs leaks memory, runs slower iteration to iteration
Reviewed-by: attila, sundar, jlaskey
2013-04-26 17:35:40 +02:00
Vladimir Ivanov
ddcc43f4b5 Merge 2013-04-26 08:33:39 -07:00
Vicente Romero
4c481aa87c 8010304: javac should detect all mutable implicit static fields in langtools using a plugin
Reviewed-by: jjg
2013-04-26 15:59:39 +01:00
Vladimir Kravets
4693d6568d 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
Use the _NET_WM_WINDOW_TYPE_DIALOG type for owned windows

Reviewed-by: anthony, art, serb
2013-04-26 18:48:11 +04:00
Igor Ignatyev
25dd2eda88 8012322: Tiered: CompilationPolicy::can_be_compiled(CompLevel_all) mistakenly return false
Reviewed-by: kvn, vlivanov
2013-04-26 07:21:41 -07:00
Athijegannathan Sundararajan
b165a1a882 8013337: Issues with Date.prototype's get, set functions
Reviewed-by: jlaskey, hannesw, lagergren
2013-04-26 18:31:42 +05:30
James Laskey
806256d657 8013208: Octane performance regression
Reviewed-by: hannesw, sundar
2013-04-26 09:48:41 -03:00
Eric McCorkle
287d1c2caa 8007154: Remove support for u4 MethodParameter flags fields
Remove support for parsing class files with four-byte flags fields in MethodParameters attributes

Reviewed-by: jrose, coleenp
2013-04-26 07:34:02 -04:00
Vicente Romero
a20460d6cb 8008562: javac, a refactoring to Bits is necessary in order to provide a change history
Reviewed-by: mcimadamore
2013-04-26 10:17:01 +01:00
Vicente Romero
625f8df5f5 8012723: strictfp interface misses strictfp modifer on default method
Reviewed-by: mcimadamore
2013-04-26 10:04:01 +01:00
Stefan Karlsson
ad20a6bd76 8013160: NPG: Remove unnecessary mark stack draining after CodeCache::do_unloading
Reviewed-by: coleenp, mgerdin
2013-04-26 10:40:36 +02:00
Bengt Rutisson
a6a565abdf 8012915: ReservedSpace::align_reserved_region() broken on Windows
Remove unused constructors and helper methods for ReservedHeapSpace and ReservedSpace

Reviewed-by: mgerdin, jmasa, johnc, tschatzl
2013-04-26 09:53:22 +02:00
Alejandro Murillo
94ea3eeac2 8013227: new hotspot build - hs25-b31
Reviewed-by: jcoomes
2013-04-26 00:40:22 -07:00
Alejandro Murillo
dcb3f25f45 Added tag hs25-b30 for changeset 18be17ecfd6c 2013-04-26 00:29:12 -07:00
Alejandro Murillo
70e4fcb88c Merge 2013-04-26 00:29:11 -07:00
Attila Szegedi
08a8593cd6 8013325: function named 'arguments' should set DEFINES_ARGUMENTS flag in its parent, not itself
Reviewed-by: hannesw, sundar
2013-04-26 09:20:37 +02:00
Athijegannathan Sundararajan
76c993b302 8013295: ScriptEngineTest.java fails with compilation error when running under jtreg
Reviewed-by: attila, hannesw
2013-04-26 12:17:11 +05:30
Jonathan Gibbons
2c4b48dced 8013256: javac test failing after Lambda changes to java.util.List
Reviewed-by: mduigou
2013-04-25 17:45:36 -07:00
Bharadwaj Yadavalli
adf181d9c3 Merge 2013-04-25 13:10:03 -07:00
Ioi Lam
4e19360f89 8008962: NPG: Memory regression: One extra Monitor per ConstantPool
Re-use InstanceKlass::_init_lock locking ConstantPool as well.

Reviewed-by: dholmes, coleenp, acorn
2013-04-25 12:55:49 -07:00
Sean Mullan
a618ff7cf9 8013228: Create new system properties to control allowable OCSP clock skew and CRL connection timeout
Reviewed-by: vinnie
2013-04-25 15:48:11 -04:00
Igor Ignatyev
0a434e425b 8011675: adding compilation level to replay data
Reviewed-by: kvn, vlivanov
2013-04-25 11:09:24 -07:00
Igor Ignatyev
5733943877 8012337: Change Whitebox implementation to make absence of method in Whitebox.class not fatal
Reviewed-by: kvn, vlivanov
2013-04-25 11:04:36 -07:00
Vladimir Ivanov
f26c1a6c88 8012260: ciReplay: Include PID into the name of replay data file
Reviewed-by: kvn, twisti
2013-04-25 11:02:32 -07:00
Jennifer Godinez
cd7abd927f 8009199: Printed text become garbage on Mac OSX
Reviewed-by: bae, prr
2013-04-25 10:14:24 -07:00
David Katleman
1418f59c79 Added tag jdk8-b87 for changeset 5884314a2095 2013-04-25 09:24:44 -07:00
David Katleman
080fcf080e Added tag jdk8-b87 for changeset c4b5ab25b20c 2013-04-25 09:24:40 -07:00
David Katleman
a664982c79 Added tag jdk8-b87 for changeset 2871326c0383 2013-04-25 09:24:24 -07:00
David Katleman
b5ab96c56a Added tag jdk8-b87 for changeset 76e8f6a063b4 2013-04-25 09:24:14 -07:00
David Katleman
6a018e8d70 Added tag jdk8-b87 for changeset ed19c1288d5b 2013-04-25 09:24:11 -07:00
David Katleman
5863dae579 Added tag jdk8-b87 for changeset b6607ce9fa8d 2013-04-25 09:24:00 -07:00
David Katleman
45a0a50f2d Added tag jdk8-b87 for changeset c11b147126a1 2013-04-25 09:23:53 -07:00
David Katleman
460b288196 Added tag jdk8-b87 for changeset faa51a420c63 2013-04-25 09:23:51 -07:00
Sean Mullan
03a7499322 8011313: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout not defined
Reviewed-by: vinnie
2013-04-25 11:18:29 -04:00
Jesper Wilhelmsson
6b7ee7010a 7074926: create Solaris Studio IDE (Netbeans) project for hotspot sources
Project files for hotspot delevopment in Solaris Studio and NetBeans. Also reviewed by vladimir.voskresensky@oracle.com

Reviewed-by: erikj, dsamersoff
2013-04-25 16:00:40 +02:00
Omair Majid
cfb277ad09 8013480: fix zero build on arm
Reviewed-by: erikj
2013-04-29 12:34:30 -04:00
Attila Szegedi
dc20ce76ca 8013167: Vararg constructor not found
Reviewed-by: jlaskey, lagergren, sundar
2013-04-25 15:31:23 +02:00
Attila Szegedi
d32994d944 8013203: A collection of smaller speedups to compilation pipeline
Reviewed-by: hannesw, jlaskey
2013-04-25 14:47:17 +02:00
Hannes Wallnöfer
1ac0e870a1 8013131: Various compatibility issues in String.prototype.split()
Reviewed-by: lagergren, jlaskey
2013-04-25 14:20:23 +02:00
Serguei Spitsyn
333cf9a756 8007037: JSR 292: the VM_RedefineClasses::append_entry() should do cross-checks with indy operands
References from operands to CP entries and back must be correct after CP merge

Reviewed-by: coleenp, twisti
2013-04-25 03:58:53 -07:00
Mike Duigou
0039dac2a3 Merge 2013-04-24 21:46:57 -07:00
Henry Jen
a5020f1d41 8013185: Add java.util.stream to CORE_PKGS.gmk in root repo
Reviewed-by: mduigou
2013-04-24 21:46:35 -07:00
Dean Long
9c966207ef Merge 2013-04-24 21:11:02 -04:00
Goetz Lindenmaier
3f42e9e118 8003853: specify offset of IC load in java_to_interp stub
Refactored code to allow platform-specific differences

Reviewed-by: dlong, twisti
2013-04-24 20:55:28 -04:00
Mike Duigou
606acc7c0b 8011920: Main streams implementation
8012542: Stream methods on Collection

Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: dholmes, mduigou
2013-04-24 16:15:47 -07:00
Coleen Phillimore
db8bc15dd2 Merge 2013-04-24 15:57:17 -07:00
Jiangli Zhou
670aea401a 8013041: guarantee(this->is8bit(imm8)) failed: Short forward jump exceeds 8-bit offset
Change jmpb() to jmp().

Reviewed-by: coleenp, rdurbin, dcubed
2013-04-24 18:20:04 -04:00
Xueming Shen
0872993c6c 8012638: test/java/time/test/java/util/TestFormatter fails in UTC TZ
Updated the offending test case

Reviewed-by: alanb
2013-04-24 21:27:52 +00:00
Coleen Phillimore
cd7d504d54 8011803: release_C_heap_structures is never called for anonymous classes
Call this function from the ClassLoaderData destructor instead of the system dictionary walk.

Reviewed-by: stefank, mgerdin
2013-04-24 16:19:35 -04:00
Zhengyu Gu
3a817dc8b4 8011218: Kitchensink hanged, likely NMT is to blame
Made NMT query safepoint aware.

Reviewed-by: dholmes, coleenp
2013-04-24 14:55:04 -04:00
Stefan Karlsson
f0ae855b07 8013132: Add a flag to turn off the output of the verbose verification code
Reviewed-by: johnc, brutisso
2013-04-24 20:13:37 +02:00
Martin Doerr
19d99e3d92 8012715: G1: GraphKit accesses PtrQueue::_index as int but is size_t
In graphKit INT operations were generated to access PtrQueue::_index which has type size_t. This is 64 bit on 64-bit machines. No problems occur on little endian machines as long as the index fits into 32 bit, but on big endian machines the upper part is read, which is zero. This leads to unnecessary branches to the slow path in the runtime.

Reviewed-by: twisti, johnc
2013-04-24 14:48:43 -07:00
Alan Bateman
3db24cefee 8005555: TEST_BUG: java/io/Serializable/accessConstants/AccessConstants.java should be removed
Reviewed-by: chegar
2013-04-24 19:03:07 +01:00
Mikael Gerdin
316993b3db 8013136: NPG: Parallel class loading tests fail after fix for JDK-8011802
Move initialization of dependencies to before allocation of CLD

Reviewed-by: stefank, coleenp
2013-04-24 19:55:02 +02:00
James Laskey
9f005902b9 8012251: jjs should support -fx option
Reviewed-by: sundar, attila, lagergren
2013-04-24 14:25:28 -03:00
Harold Seigel
d567edd809 8012695: Assertion message displays %u and %s text instead of actual values
USe err_msg() to create a proper assertion message.

Reviewed-by: twisti, coleenp, iklam
2013-04-24 09:00:04 -04:00
Peter Allwin
830c248500 8009985: [parfait] Uninitialised variable at jdk/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c
Reviewed-by: sla, rbackman, alanb, dholmes, rdurbin
2013-04-24 14:49:49 +02:00
Gilles Duboscq
34da1742ef 8012292: optimized build with GCC broken
Some #ifndef PRODUCT should be #ifdef ASSERT

Reviewed-by: kvn, twisti
2013-04-24 14:26:09 +02:00
Roland Westrelin
20b5d3aa4f 8012037: Test8009761.java "Failed: init recursive calls: 7224. After deopt 58824"
Test shouldn't be run with a modified CompileThreshold

Reviewed-by: kvn
2013-05-03 09:32:50 +02:00
Hannes Wallnöfer
512740c397 8008238: Labeled break in finally causes stack overflow in Node copy
Reviewed-by: lagergren, attila
2013-04-24 13:36:31 +02:00
Hannes Wallnöfer
48b0c0e8f3 8012931: NativeDate.safeToString() throws RangeError for invalid date
Reviewed-by: lagergren, attila
2013-04-24 13:34:22 +02:00
Hannes Wallnöfer
77d7f14b96 8012334: ToUint32, ToInt32, and ToUint16 don't conform to spec
Reviewed-by: lagergren, attila
2013-04-24 13:28:25 +02:00
Roland Westrelin
6ae26f2e94 8010460: Interpreter on some platforms loads ConstMethod::_max_stack and misses extra stack slots for JSR 292
ConstMethod::max_stack() doesn't account for JSR 292 appendix.

Reviewed-by: kvn
2013-04-24 11:49:38 +02:00
Albert Noll
34f8be0bc9 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm
Moved check that ReservedCodeCacheSize >= InitialCodeCacheSize to Arguments::check_vm_args_consistency(). As a result, the ordering in which the two parameters are given to the VM is not relevant. Added a regression test.

Reviewed-by: kvn, twisti
2013-05-31 06:41:50 +02:00
Vladimir Kozlov
ff008d0615 8015441: runThese crashed with assert(opcode == Op_ConP || opcode == Op_ThreadLocal || opcode == Op_CastX2P ..) failed: sanity
Relax the assert to accept any raw ptr types.

Reviewed-by: roland
2013-05-31 13:54:47 -07:00
Roland Westrelin
6a17746b6c 8009981: nashorn tests fail with -XX:+VerifyStack
Nmethod::preserve_callee_argument_oops() must take appendix into account.

Reviewed-by: kvn, twisti
2013-05-31 14:40:26 +02:00
Christian Thalinger
337a9c1432 8015266: fix some -Wsign-compare warnings in adlc
Reviewed-by: kvn
2013-05-30 08:37:08 -07:00
Roland Westrelin
2e5f473752 8015585: Missing regression test for 8011771
Missing regression test

Reviewed-by: kvn
2013-05-30 11:21:01 +02:00
Konstantin Shefov
19779230c9 8011186: [TEST_BUG] java/awt/Focus/OverrideRedirectWindowActivationTest/OverrideRedirectWindowActivationTest.java failed on windows 8
Reviewed-by: anthony, serb, ant
2013-04-24 11:48:54 +04:00
Roland Westrelin
95ce391b51 8011771: runThese crashed with EAV
Array bound check elimination's in block motion doesn't always reset its data structures from one step to the other.

Reviewed-by: kvn, twisti
2013-04-24 09:42:08 +02:00
David Katleman
8b7ccb804f 8012643: JDK8 b86 source with GPL header errors
Reviewed-by: dholmes, alanb
2013-04-23 18:33:20 -07:00
David Katleman
05f3d6ab4b 8012643: JDK8 b86 source with GPL header errors
Reviewed-by: dholmes, alanb
2013-04-23 18:25:52 -07:00
Lana Steuck
5271b95f85 Merge 2013-04-23 15:17:39 -07:00
Lana Steuck
d67eee0ece Merge 2013-04-23 15:09:23 -07:00
Lana Steuck
cdf9c2dc11 Merge 2013-04-23 15:09:12 -07:00
Lana Steuck
843e6e05e2 Merge 2013-04-23 15:07:48 -07:00
Lana Steuck
2426d317ce Merge 2013-04-23 15:03:19 -07:00
Jiangli Zhou
8c2c17a067 8012927: 'assert(nbits == 32 || (-(1 << nbits-1) <= x && x < ( 1 << nbits-1))) failed: value out of range' in interpreter initialization
Change br_null_short() to br_null().

Reviewed-by: coleenp, hseigel
2013-04-23 12:32:17 -04:00
Lana Steuck
aa18572940 Merge 2013-04-23 09:28:19 -07:00
Lana Steuck
aff559a660 Merge 2013-04-23 09:27:28 -07:00
Lana Steuck
7e76a279b5 Merge 2013-04-23 09:27:25 -07:00
Lana Steuck
f8553ae33c Merge 2013-04-23 09:27:07 -07:00
Lana Steuck
1a02bb2353 Merge 2013-04-23 09:27:01 -07:00
Lana Steuck
a177bbde67 Merge 2013-04-23 09:26:52 -07:00
Lana Steuck
69a05976a8 Merge 2013-04-23 09:26:43 -07:00
Albert Noll
0bfc34cfd5 8012157: removed unused code in SharedRuntime::handle_wrong_method
Reviewed-by: kvn, roland, rbackman
2013-04-23 18:06:54 +02:00
Lance Andersen
558346471c 8011620: adding free form netbeans project for jdbc to jdk/make/netbeans
Reviewed-by: chegar
2013-04-23 11:17:43 -04:00
Bharadwaj Yadavalli
cadadd73c2 8012961: Do not restrict static interface methods to be private
Lambda changes; spec 0.6.2 - remove the restriction that was added as part of recent changes made to support upcoming changes to compilation of lambda methods.

Reviewed-by: dholmes, acorn
2013-04-23 08:12:14 -07:00
Attila Szegedi
491404586d 8010731: Don't expose internal symbols to scripts
Reviewed-by: jlaskey, lagergren
2013-04-23 16:48:57 +02:00
Alan Bateman
1dea05c94f 8012930: (fs) Eliminate recursion from FileTreeWalker
Reviewed-by: chegar
2013-04-23 15:01:44 +01:00
Albert Noll
ca3a625f1e 8010332: removed unused method: ciMethod::uses_monitors
Reviewed-by: twisti, roland
2013-04-23 13:48:02 +02:00
Attila Szegedi
f5b57754c3 8011065: Problems when script implements an interface with variadic methods
Reviewed-by: jlaskey, hannesw, sundar
2013-04-23 12:52:29 +02:00
Michael Fang
6b0d884a17 Merge 2013-04-22 23:17:22 -07:00
Naoto Sato
79174472a1 8010666: Implement Currency/LocaleNameProvider in Windows Host LocaleProviderAdapter
Reviewed-by: okutsu
2013-04-22 13:37:07 -07:00
Leonid Romanov
c7f421eaa1 8008366: [macosx] ActionListener called twice for JMenuItem using ScreenMenuBar
Reviewed-by: anthony, serb
2013-04-22 19:24:41 +04:00
Konstantin Shefov
6b2fcd1c77 8011230: [TEST_BUG] java/awt/Toolkit/BadDisplayTest/BadDisplayTest.java failed on solaris
Reviewed-by: serb, anthony
2013-04-22 18:39:04 +04:00
Athijegannathan Sundararajan
ae84082ad8 Merge 2013-04-22 19:57:57 +05:30
James Laskey
6004d46935 8012919: findMegaMorphicSetMethod should not cast result type
Reviewed-by: attila, sundar
2013-04-22 10:37:58 -03:00
Athijegannathan Sundararajan
3722b6d434 8012673: Nashorn's package name vs class name inferring logic is wrong
Reviewed-by: hannesw, jlaskey, attila
2013-04-22 18:09:04 +05:30
Joel Borggrén-Franck
16bec05e63 8011027: Type parameter annotations not passed through to javax.lang.model
Reviewed-by: jjg, darcy
2013-04-22 10:24:19 +02:00
Daniel D. Daugherty
2cb874268e Merge 2013-04-21 21:05:02 -07:00
Daniel D. Daugherty
138bab2963 8012907: anti-delta fix for 8010992
Anti-delta fix for 8010992 until 8012902 can be fixed

Reviewed-by: acorn, minqi, rdurbin
2013-04-21 20:41:04 -07:00
Brian Goetz
8d5c8613fc 8012650: Arrays streams methods
8011918: java.util.stream.Streams

Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: alanb, mduigou, darcy, henryjen
2013-04-20 18:53:26 -04:00
Peter Allwin
a5c3cd8ee3 6729929: I18N - Taking Heap Dump failed if project path contains multibyte characters
Reviewed-by: dholmes, rbackman
2013-04-20 19:02:11 +02:00
James Laskey
1334460008 8011578: -Dnashorn.unstable.relink.threshold=1 causes tests to fail
Reviewed-by: sundar, lagergren
2013-04-20 08:54:13 -03:00
Serguei Spitsyn
87f3086e13 8008511: JSR 292: MemberName vmtarget refs to methods must be updated at class redefinition
Lazily create and maintain the MemberNameTable to be able to update MemberName's

Reviewed-by: coleenp, jrose, dholmes
2013-04-20 04:07:08 -07:00
Daniel D. Daugherty
46b3969016 Merge 2013-04-19 16:51:27 -07:00
Daniel D. Daugherty
dec02ae201 Merge 2013-04-19 13:48:54 -07:00
Jonathan Gibbons
2e806d1c3e 8012661: remove langtools Makefile-classic
Reviewed-by: erikj, tbell
2013-04-19 11:10:40 -07:00
Yumin Qi
735ab2cd1c 8010992: Remove calls to global ::operator new[] and new
Disable use of global operator new and new[] which could cause unexpected exception and escape from NMT tracking.

Reviewed-by: coleenp, dholmes, zgu
2013-04-19 11:08:52 -07:00
Alejandro Murillo
94d9107a7b 8012559: new hotspot build - hs25-b30
Reviewed-by: jcoomes
2013-04-19 10:09:11 -07:00
Alejandro Murillo
3f90a08c13 Added tag hs25-b29 for changeset 4beed8bc9715 2013-04-19 09:58:06 -07:00
Alejandro Murillo
d60d7014ed Merge 2013-04-19 09:58:05 -07:00
Daniel Fuchs
911f441787 8010495: Update JAXP NetBeans project - add support for generating javadoc
Make it possible to use NetBeans to edit the jaxp sources and to generate a preview of the associated javadoc.

Reviewed-by: joehw, alanb
2013-04-19 17:22:36 +02:00
Marcus Lagergren
fb7a325141 8010701: Immutable nodes - final iteration
Reviewed-by: sundar, hannesw, jlaskey
2013-04-19 16:11:16 +02:00
Athijegannathan Sundararajan
f9a53d819f 8012593: JSAdapter overrides impacts strongly construction time
Reviewed-by: jlaskey, attila
2013-04-19 18:23:00 +05:30
Athijegannathan Sundararajan
865a11d502 8012612: Compile failed
Reviewed-by: hannesw, jlaskey, attila
2013-04-19 17:46:01 +05:30
Joel Borggrén-Franck
51d2ddd790 8012681: Commit for JDK-8012656 breaks tl build
Reviewed-by: vromero, chegar, alanb
2013-04-19 11:57:46 +02:00
Bharadwaj Yadavalli
b32dc11760 Merge 2013-04-19 03:13:04 -04:00
Jonathan Gibbons
3c7d12fc05 8012656: cache frequently used name strings for DocImpl classes
Reviewed-by: darcy
2013-04-18 20:00:14 -07:00
Jonathan Gibbons
66dde86ad0 8012658: Change default langtools source level to 7
Reviewed-by: darcy
2013-04-18 19:58:45 -07:00
Bharadwaj Yadavalli
824a51963f Merge 2013-04-18 16:04:33 -07:00
Jiangli Zhou
a86e7e948c Merge 2013-04-18 17:00:16 -04:00
Bharadwaj Yadavalli
8206331fb9 Merge 2013-04-18 14:03:37 -04:00
David Katleman
c00ad9959f Added tag jdk8-b86 for changeset 6ee429aebbde 2013-04-18 10:30:34 -07:00
David Katleman
b88db65011 Added tag jdk8-b86 for changeset 29071bf3de15 2013-04-18 10:30:32 -07:00
David Katleman
93c2ae0ff2 Added tag jdk8-b86 for changeset 8344675901d3 2013-04-18 10:30:25 -07:00
David Katleman
da15ff63ad Added tag jdk8-b86 for changeset 41918e176381 2013-04-18 10:30:21 -07:00
David Katleman
1026125334 Added tag jdk8-b86 for changeset 6733de0488b4 2013-04-18 10:30:19 -07:00
David Katleman
28c4fc4666 Added tag jdk8-b86 for changeset b1cf5aefa461 2013-04-18 10:30:11 -07:00
David Katleman
146af42db6 Added tag jdk8-b86 for changeset ec149fe77498 2013-04-18 10:30:06 -07:00
David Katleman
af106dbe56 Added tag jdk8-b86 for changeset 02ed1673d56f 2013-04-18 10:30:04 -07:00
Bharadwaj Yadavalli
f63b13e379 8006267: InterfaceMethod_ref should allow invokestatic and invokespecial
Lambda changes; spec 0.6.2 - Allow static invokestatic and invokespecial calls to InterfaceMethod_ref

Reviewed-by: dholmes, acorn
2013-04-18 08:05:35 -07:00
Markus Persson
8dbd66cd8f 8011686: AWT accidentally disables the NSApplicationDelegate of SWT, causing loss of OS X integration functionality
Reviewed-by: anthony, serb
2013-04-18 15:09:59 +01:00
Zhengyu Gu
cfaea9fe7d 8012464: NMT: classes should not derive from _ValueObj, use VALUE_OBJ_CLASS_SPEC instead
NMT value objects should use VALUE_OBJ_CLASS_SPEC instead of deriving from _ValueObj

Reviewed-by: coleenp, hseigel, dholmes
2013-04-18 10:04:44 -04:00
Mikael Gerdin
f01ea84a24 Merge 2013-04-18 14:38:31 +02:00
Hannes Wallnöfer
4239700710 8012460: RegExp regression
Reviewed-by: jlaskey, sundar
2013-04-18 14:25:45 +02:00
Athijegannathan Sundararajan
649b7e005b 8012462: Date.prototype.toJSON does not handle non-Date 'this' as per the spec
Reviewed-by: jlaskey, hannesw
2013-04-18 15:50:30 +05:30
Athijegannathan Sundararajan
f1776e109b Merge 2013-04-18 15:47:45 +05:30
Lana Steuck
5795e80ed6 Merge 2013-04-17 21:50:54 -07:00
Lana Steuck
0285880f3d Merge 2013-04-17 21:50:43 -07:00
Bengt Rutisson
687b6a8d44 8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime
Also reviewed by: kirk@kodewerk.com, brandon@twitter.com

Reviewed-by: tschatzl, stefank, johnc
2013-04-18 06:50:35 +02:00
Lana Steuck
8afbe69644 Merge 2013-04-17 21:48:04 -07:00
Lana Steuck
3833eb9c78 Merge 2013-04-17 21:33:05 -07:00
Lana Steuck
baaa166dc8 Merge 2013-04-17 21:32:47 -07:00
Lana Steuck
a33f306c8f Merge 2013-04-17 21:32:11 -07:00
Lana Steuck
878e613542 Merge 2013-04-17 21:30:28 -07:00
David Katleman
738e12d844 Merge 2013-04-17 12:38:58 -07:00
Lana Steuck
acfca9881a Merge 2013-04-17 12:30:18 -07:00
James Laskey
b8f4f275b4 8012529: Remove -esa from testing jvmargs
Reviewed-by: sundar
2013-04-17 15:36:48 -03:00
Lana Steuck
16504b35d7 Merge 2013-04-17 11:24:40 -07:00
Martin Doerr
d61a4656e4 8012335: G1: Fix bug with compressed oops in template interpreter on x86 and sparc
In do_oop_store the uncompressed value of the oop being stored needs to be preserved and passed to g1_write_barrier_post. This is necessary for the heap region cross check to work correctly.

Reviewed-by: coleenp, johnc
2013-04-17 10:57:02 -07:00
Lana Steuck
546c9ecda0 Merge 2013-04-17 10:31:06 -07:00
Lana Steuck
38909b134a Merge 2013-04-17 10:31:01 -07:00
Lana Steuck
84c7eb03ae Merge 2013-04-17 10:13:32 -07:00
Lana Steuck
1b5f599819 Merge 2013-04-17 10:12:42 -07:00
Lana Steuck
fae0f7f157 Merge 2013-04-17 10:05:57 -07:00
Jan Lahoda
77b43bacfd 8008174: DocTree API should provide start and end positions for tree nodes
Adding DocSourcePositions to allow access to DocTree starting/ending position

Co-authored-by: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Reviewed-by: jjg, darcy
2013-04-17 15:54:24 +02:00
Daniel Fuchs
9a94591b8e 8005954: JAXP Plugability Layer should use java.util.ServiceLoader
This fix replaces manual processing of files under META-INF/services in JAXP factories by calls to java.util.ServiceLoader.

Reviewed-by: alanb, joehw, mchung
2013-04-17 15:23:19 +02:00
Harold Seigel
54b7ae1ff9 8009928: PSR:PERF Increase default string table size
Increase default string table size to 60013 for 64-bit platforms.

Reviewed-by: coleenp, dholmes
2013-04-17 08:20:02 -04:00
Jim Laskey
c72bd85140 Merge 2013-04-17 08:48:00 -03:00
Athijegannathan Sundararajan
49eb3c0de1 8012457: Function.prototype.apply should accept any array-like argument for function arguments
Reviewed-by: lagergren, jlaskey
2013-04-17 16:52:06 +05:30
Vicente Romero
0e9ad4439a 8011181: javac, empty UTF8 entry generated for inner class
Reviewed-by: jjg
2013-04-17 11:11:33 +01:00
Paul Sandoz
3b5f4fc54a 8011426: java.util collection Spliterator implementations
Spliterator implementations for collection classes in java.util.

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: mduigou, briangoetz
2013-04-17 11:34:31 +02:00
Brian Goetz
1bde2fd87e 8008682: Inital Streams public API
Co-authored-by: Mike Duigou <mike.duigou@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: JSR-335 EG <lambda-libs-spec-experts@openjdk.java.net>
Reviewed-by: mduigou, dholmes, darcy
2013-04-17 14:39:04 -04:00
Akhil Arora
4fa1f1f4fc 8001647: default methods for Collections - forEach, removeIf, replaceAll, sort
Co-authored-by: Arne Siegel <v.a.ammodytes@googlemail.com>
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: alanb, dholmes, mduigou, psandoz, smarks
2013-04-22 09:19:34 -07:00
Weijun Wang
0ec3fd796b 8005527: [TEST_BUG] console.sh failed Automatically with exit code 1
Reviewed-by: xuelei
2013-04-22 11:39:53 +08:00
Jim Gish
8f316cc40e 8010939: Deadlock in LogManager
Re-order locks to avoid deadlock

Reviewed-by: mchung
2013-04-19 16:50:10 -07:00
Mandy Chung
88e1b69223 8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
Reviewed-by: jrose, alanb, twisti, sundar
2013-04-16 22:11:33 -07:00
Brian Goetz
c1b4063c0e 8008670: Initial java.util.stream putback -- internal API classes
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: mduigou, dholmes
2013-04-16 22:50:48 -04:00
John Zavgren
37958d6203 8010505: HTTP DIGEST implementation incorrectly quotes header values, fails auth
The extraneous quotes were removed.

Reviewed-by: chegar
2013-04-17 11:47:18 -04:00
Weijun Wang
ab7ecdd1b3 8009636: JARSigner including TimeStamp PolicyID (TSAPolicyID) as defined in RFC3161
Reviewed-by: mullan
2013-04-19 15:41:11 +08:00
Xue-Lei Andrew Fan
b56c6130ff 8006935: Need to take care of long secret keys in HMAC/PRF compuation
Reviewed-by: valeriep
2013-04-18 22:23:56 -07:00
Jim Gish
30e93b56e3 8012005: LogManager needs test to ensure stack trace is not being done to find bundle
Reviewed-by: mchung
2013-04-18 16:33:11 -04:00
Yasumasa Suenaga
fab6405961 8011934: sun.misc.PerfCounter calls Perf.createLong with incorrect parameters
Reviewed-by: mchung
2013-04-18 13:02:58 -07:00
Mandy Chung
2d5e636c88 8012624: Add sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java in ProblemList.txt
Reviewed-by: lancea, alanb
2013-04-18 11:14:39 -07:00
Dan Xu
a5d52ed739 8011946: java.util.Currency javadoc has broken link to iso.org
Reviewed-by: mduigou
2013-04-18 10:22:53 -07:00
Roger Riggs
167854b5ab 8009648: Tests fail in -agentvm -concurrency mode
Reviewed-by: alanb
2013-04-18 12:24:55 +01:00
Alan Bateman
6c1e93b7c6 8011536: (fs) BasicFileAttributes.creationTime() should return birth time (mac)
Reviewed-by: chegar
2013-04-18 11:13:18 +01:00
David Katleman
09a38fa260 Merge 2013-04-16 15:00:54 -07:00
David Katleman
bae256e87f Merge 2013-04-16 15:00:49 -07:00
David Katleman
24ec30a8e7 Merge 2013-04-16 15:00:19 -07:00
David Katleman
f877598462 Merge 2013-04-16 14:57:57 -07:00
Brian Goetz
95fadac5c6 8010096: Initial java.util.Spliterator putback
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: mduigou, alanb, chegar, darcy
2013-04-16 13:51:53 -04:00
Lana Steuck
35ff6ba00e Merge 2013-04-17 12:31:34 -07:00
Lana Steuck
04d4410fb9 Merge 2013-04-17 12:14:16 -07:00
Coleen Phillimore
4b1fc01e88 Merge 2013-04-17 15:06:17 -04:00
Mandy Chung
fa54d97a10 8004260: dynamic proxy class should have the same Java language access as the proxy interfaces
Reviewed-by: alanb, jrose, jdn
2013-04-17 12:04:15 -07:00
Brian Goetz
25b15c7837 8010953: Add primitive summary statistics utils
Reviewed-by: mduigou, dholmes, chegar, darcy
2013-04-17 11:39:52 -07:00
Lana Steuck
babbf21e37 Merge 2013-04-17 10:30:02 -07:00
Coleen Phillimore
bdcf6abb46 8009531: Crash when redefining class with annotated method
Add code to annotated methods and command line flags to the tests to verify bug above

Reviewed-by: acorn, sspitsyn, dcubed, dholmes, alanb
2013-04-17 12:50:45 -04:00
Alan Bateman
aefbf5bd89 8012019: (fc) Thread.interrupt triggers hang in FileChannelImpl.pread (win)
Reviewed-by: chegar
2013-04-17 16:11:19 +01:00
Vinnie Ryan
74d720c7b5 Merge 2013-04-17 02:53:02 -07:00
Yong Jeffrey Huang
944c9a65b2 Merge 2013-04-17 01:04:45 -07:00
Yong Jeffrey Huang
fc3e45929e 8011977: ISO 4217 Amendment Number 155
Reviewed-by: naoto
2013-04-16 22:28:47 -07:00
Mandy Chung
176ed8d94c 8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
Reviewed-by: jrose, alanb, twisti
2013-04-16 21:39:52 -07:00
Weijun Wang
dfcf6055a7 8011124: Make KerberosTime immutable
Reviewed-by: xuelei
2013-04-17 10:15:33 +08:00
Chris Hegarty
320776832e Merge 2013-04-16 21:04:33 +01:00
Mike Duigou
12cfd3e1b4 8004518: Add in-place operations to Map
8010122: Add defaults for ConcurrentMap operations to Map

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Co-authored-by: Akhil Arora <akhil.arora@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: darcy, briangoetz, mduigou, dholmes, ulfzibis
2013-04-16 11:17:19 -07:00
Jim Gish
2c3899554f 8011347: JKD-8009824 has broken webrev with some ksh versions
Reviewed-by: mduigou
2013-04-16 13:25:39 -04:00
Ron Durbin
2b3d514995 Merge 2013-04-16 08:59:29 -07:00
Lana Steuck
53ae5516ff Merge 2013-04-16 08:16:17 -07:00
Lana Steuck
2775a21b88 Merge 2013-04-16 08:16:07 -07:00
Lana Steuck
42e3b17300 Merge 2013-04-16 08:14:53 -07:00
Lana Steuck
e730e5ccfe Merge 2013-04-16 08:11:41 -07:00
Lana Steuck
25ae8ed67d Merge 2013-04-16 08:10:59 -07:00
Roland Westrelin
bad6728ea4 8011901: Unsafe.getAndAddLong(obj, off, delta) does not work properly with long deltas
Instruct xaddL_no_res shouldn't allow 64 bit constants.

Reviewed-by: kvn
2013-04-16 17:06:39 +02:00
Vinnie Ryan
f136599134 Merge 2013-04-16 05:32:39 -07:00
Chris Hegarty
c0de159c91 Merge 2013-04-16 13:30:19 +01:00
Chris Hegarty
dc668d18a3 8012244: java/net/Socket/asyncClose/Race.java fails intermittently on Windows
Reviewed-by: alanb, dsamersoff
2013-04-16 13:26:30 +01:00
Vinnie Ryan
76bcd2b3f6 Merge 2013-04-16 05:11:50 -07:00
Chris Hegarty
0a5657be1c 8012237: CompletableFuture/Basic.java still fails intermittently
Reviewed-by: martin
2013-04-16 12:51:22 +01:00
Chris Hegarty
23d10238b1 8012343: Objects.requireNonNull(Object,Supplier) breaks genstubs build
Reviewed-by: alanb
2013-04-16 12:23:16 +01:00
Vinnie Ryan
7298912ab0 Merge 2013-04-16 01:44:58 -07:00
Joe Darcy
dbb722dfb0 8011800: Add java.util.Objects.requireNonNull(T, Supplier<String>)
Reviewed-by: alanb, dholmes, mduigou
2013-04-15 18:31:48 -07:00
Jiangli Zhou
2f703b2613 Merge 2013-04-15 21:25:23 -04:00
David Katleman
9d3be8c928 Merge 2013-04-15 14:21:08 -07:00
David Katleman
64059dd1e1 Merge 2013-04-15 14:21:06 -07:00
David Katleman
1a0a2e5534 Merge 2013-04-15 14:20:45 -07:00
David Katleman
fd2735329e Merge 2013-04-15 14:19:58 -07:00
David Katleman
effa34e5cd Merge 2013-04-15 14:19:34 -07:00
Martin Buchholz
67e05359fc 8008509: 6588413 changed JNIEXPORT visibility for GCC on HSX, jdk's jni_md.h needs similar change
Define JNIEXPORT to use "default" visibility where possible.

Reviewed-by: coleenp, ddehaven, dcubed, anthony
2013-04-15 14:07:17 -07:00
Athijegannathan Sundararajan
a4bf4b9be6 8012240: Array.prototype.map.call({length: -1, get 0(){throw 0}}, function(){}).length does not throw error
Reviewed-by: lagergren, jlaskey
2013-04-15 20:12:50 +05:30
Andrew Brygin
92069b97d0 8011622: Use lcms as the default color management module in jdk8
Reviewed-by: prr, vadim
2013-04-15 18:10:55 +04:00
Maurizio Cimadamore
8ab167f0ed 8010923: Avoid redundant speculative attribution
Add optimization to avoid speculative attribution for certain argument expressions

Reviewed-by: jjg
2013-04-15 14:18:30 +01:00
Maurizio Cimadamore
8b680bdde2 8011392: Missing checkcast when casting to intersection type
Javac should emit a checkcast for each additional target type specified in an intersection type cast

Reviewed-by: jjg
2013-04-15 14:17:30 +01:00
Maurizio Cimadamore
8f2d47cf79 8011028: lang/INFR/infr001/infr00101md/infr00101md.java fails to compile after switch to JDK8-b82
Fix bug in Types.removeWildcards

Reviewed-by: jjg
2013-04-15 14:16:05 +01:00
Maurizio Cimadamore
e59fd44a73 8011376: Spurious checked exception errors in nested method call
Fallback attribution logic doesn't work properly when lambda throws checked exceptions

Reviewed-by: jjg
2013-04-15 14:15:07 +01:00
Maurizio Cimadamore
2b94dbb504 8011377: Javac crashes when multiple lambdas are defined in an array
Wrong attribution environment used by DeferredAttr

Reviewed-by: jjg
2013-04-15 14:12:17 +01:00
Maurizio Cimadamore
efc501257b 8011383: Symbol.getModifiers omits ACC_ABSTRACT from interface with default methods
Fixup for default method modifiers erroneously applies to class-level modifiers

Reviewed-by: jjg
2013-04-15 14:11:29 +01:00
Andrew Brygin
d9216cb5e1 8005930: [lcms] ColorConvertOp: Alpha channel is not transferred from source to destination
Reviewed-by: prr
2013-04-15 16:57:01 +04:00
Jim Laskey
835ab2e91d Merge 2013-04-15 08:39:48 -03:00
Anton Tarasov
68645ed1ca 7147075: JTextField doesn't get focus or loses focus forever
Reviewed-by: anthony
2013-04-15 13:02:31 +04:00
Chris Hegarty
7d3f26a18f 8011799: CompletableFuture/Basic.java fails intermittently
Reviewed-by: martin, alanb
2013-04-14 19:17:30 +01:00
Bhavesh Patel
56d97d6507 8009686: Generated javadoc documentation should be able to display type annotation on an array
Reviewed-by: jjg
2013-04-13 18:48:29 -07:00
Chris Hegarty
cd4711df4d Merge 2013-04-13 21:51:36 +01:00
Chris Hegarty
be8d5c723d Merge 2013-04-13 20:16:00 +01:00
Maurizio Cimadamore
3044b19d21 8010659: Javac Crashes while building OpenJFX
Reviewed-by: jjg
2013-04-13 12:25:44 +01:00
David Katleman
e574671868 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:56 -07:00
David Katleman
9261edec97 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:47 -07:00
David Katleman
930dcf7d28 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:33 -07:00
David Katleman
6e2f758312 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:22:08 -07:00
David Katleman
3b3b7d1f73 8012048: JDK8 b85 source with GPL header errors
Reviewed-by: iris, mduigou, jjg
2013-04-12 15:21:17 -07:00
Vinnie Ryan
fb29205c82 Merge 2013-04-12 10:42:50 -07:00
Robert Field
47686a92e0 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries
Reviewed-by: mduigou, alanb
2013-04-12 10:02:33 -07:00
Xueming Shen
dbdbff1445 8012123: hijrah-config-umalqura.properties is missing from makefiles/profile-includes.txt
Added the hijrah-config-umalqura.properties into the list

Reviewed-by: alanb
2013-04-12 09:51:04 -07:00
Sergey Bylokhov
aa9a92ce9c 8004866: [macosx] HiDPI support in Aqua L&F
Reviewed-by: swingler, alexsch
2013-04-12 20:39:48 +04:00
Stephen Colebourne
58af157d96 8011172: JSR 310 DateTime API Updates II
Integration of JSR310 Date/Time API update

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Reviewed-by: alanb, naoto, dholmes
2013-04-12 07:57:35 -07:00
Hannes Wallnöfer
3e3d516b78 8011885: Switch to Joni as default Regexp engine
Reviewed-by: lagergren, sundar
2013-04-12 16:32:24 +02:00
Hannes Wallnöfer
f88be03f6b 8011884: Regexp literals are compiled twice
Reviewed-by: lagergren, sundar
2013-04-12 16:31:16 +02:00
Sergey Bylokhov
e227299954 8000629: [macosx] Blurry rendering with Java 7 on Retina display
Reviewed-by: anthony, prr, flar
2013-04-12 15:28:49 +04:00
Laurent Bourges
2e5ce05576 8010297: Missing isLoggable() checks in logging code
Add isLoggable() checks

Reviewed-by: anthony, mchung, serb
2013-04-12 14:33:38 +04:00
Petr Pchelko
32995a0452 8010009: [macosx] Unable type into online word games on MacOSX
Reviewed-by: anthony, dcherepanov
2013-04-12 14:09:03 +04:00
Joel Borggrén-Franck
6f2f8b14be 7015104: use new subtype of TypeSymbol for type parameters
Reviewed-by: jjg, mcimadamore
2013-04-12 12:05:04 +02:00
Chris Hegarty
b10f2efea3 Merge 2013-04-12 10:20:32 +01:00
Chris Hegarty
3e4b951e98 Merge 2013-04-12 10:14:42 +01:00
Alejandro Murillo
6aa1ba2f50 8011949: new hotspot build - hs25-b29
Reviewed-by: jcoomes
2013-04-11 21:54:46 -07:00
Alejandro Murillo
2a029f80ad Added tag hs25-b28 for changeset cd2648ba846b 2013-04-11 21:45:21 -07:00
Alejandro Murillo
f70baf4c46 Merge 2013-04-11 21:45:20 -07:00
Bradford Wetmore
63a6638ebf 6425477: Better support for generation of high entropy random numbers
Reviewed-by: xuelei, weijun, mullan
2013-04-11 21:03:24 -07:00
Jiangli Zhou
9ce964ad38 8012052: java/lang/invoke/6987555/Test6987555.java crashes with assert(mcs != NULL) failed: MethodCounters cannot be NULL
Skip counter decay if the MethodCounters is NULL in NonTieredCompPolicy::delay_compilation().

Reviewed-by: kvn, dholmes
2013-04-11 23:06:33 -04:00
Bradford Wetmore
d1599927b6 Merge 2013-04-11 19:36:52 -07:00
Lana Steuck
700185e334 Merge 2013-04-11 19:16:01 -07:00
Lana Steuck
91a3ea7554 Merge 2013-04-11 19:15:56 -07:00
Lana Steuck
87f02e1e5a Merge 2013-04-11 19:15:24 -07:00
Lana Steuck
4442e9fa7f Merge 2013-04-11 19:15:06 -07:00
Lana Steuck
78667dcfe9 Merge 2013-04-11 19:13:13 -07:00
Xue-Lei Andrew Fan
a973a4d533 8011680: Re-integrate AEAD implementation of JSSE
It is a re-merge of JDK-7030966.

Reviewed-by: wetmore
2013-04-11 18:57:14 -07:00
Anthony Scarpino
b1d5a4f3ab 8012056: SunJCEInstance needs to run in it's own vm
Reviewed-by: wetmore
2013-04-11 17:29:43 -07:00
Bharadwaj Yadavalli
c660647bfa Merge 2013-04-11 17:16:39 -07:00
Alejandro Murillo
8a2ec195f6 Merge 2013-04-11 16:35:19 -07:00
Erik Joelsson
d0e1727ce6 8011812: JDK-8011278 breaks the old build
Reviewed-by: tbell, wetmore
2013-04-11 14:47:54 -07:00
Vladimir Ivanov
9e673d1cc1 Merge 2013-04-11 11:42:41 -07:00
Tony Scarpino
dbfbe6ca61 8001596: Incorrect condition check in PBKDF2KeyImpl.JAVA
Reviewed-by: wetmore
2013-04-11 18:00:23 +01:00
Tony Scarpino
080470408b 7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
Reviewed-by: vinnie, wetmore
2013-04-11 17:57:08 +01:00
David Katleman
0ce8d41fad Added tag jdk8-b85 for changeset 769940c9fbc4 2013-04-11 09:40:24 -07:00
David Katleman
965bf390d4 Added tag jdk8-b85 for changeset 575b651b1b3c 2013-04-11 09:40:22 -07:00
David Katleman
488df13558 Added tag jdk8-b85 for changeset c62699ce4007 2013-04-11 09:40:13 -07:00
David Katleman
8cd8160347 Added tag jdk8-b85 for changeset 38a3aebc07ce 2013-04-11 09:40:09 -07:00
David Katleman
0e4fa44bde Added tag jdk8-b85 for changeset cacf7ffa3281 2013-04-11 09:40:07 -07:00
David Katleman
3a62b96673 Added tag jdk8-b85 for changeset 462779762d8a 2013-04-11 09:39:57 -07:00
David Katleman
fcf8d60f4e Added tag jdk8-b85 for changeset ad477d409ae8 2013-04-11 09:39:48 -07:00
David Katleman
40143847f5 Added tag jdk8-b85 for changeset f53ea98c2a4b 2013-04-11 09:39:46 -07:00
John Zavgren
f82212cd86 8008118: (process) Possible null pointer dereference in jdk/src/solaris/native/java/lang/UNIXProcess_md.c
Modified the path processing code so that it detects and handles out of memory errors.

Reviewed-by: chegar, martin, christos, alanb, msheppar
2013-04-11 12:33:33 -04:00
Robert Field
60fae99960 8012028: Metafactory-generated lambda classes should be final
8008941: isSynthetic() returns false for lambda instances

Reviewed-by: mduigou
2013-04-12 20:23:13 -07:00
Henry Jen
3273287f58 8010279: java.util.Stream.min/max((Comparator)null) is not consistent in throwing (unspecified) NPE
Reviewed-by: alanb, mduigou
2013-04-12 12:41:18 -07:00
Mark Sheppard
6b4d627414 8002390: (zipfs) Problems moving files between zip file systems
Fixed the corner cases in zipfs

Reviewed-by: sherman
2013-04-12 12:12:53 -07:00
Xueming Shen
38e4efd784 8011647: Add java.time.Instant methods to java.nio.file.attribute.FileTime
Added the toInstant()/from(Instant) to FileTime

Reviewed-by: alanb
2013-04-12 12:03:00 -07:00
Vladimir Ivanov
50821686b5 8011972: Field can be erroneously marked as contended when @Contended annotation isn't present
Reviewed-by: kvn, kmo, shade
2013-04-11 09:08:15 -07:00
Sergey Malenkov
c1409aacef 4683761: Incomplete Introspection on nonpublic classes lead to IllegalAccessExceptions
Reviewed-by: alexsch
2013-04-11 19:12:59 +04:00
Mikael Gerdin
0393fa9b49 Merge 2013-04-11 16:35:34 +02:00
Krystal Mo
fe4b74edc7 8011952: Missing ResourceMarks in TraceMethodHandles
Add missing ResourceMark under TraceMethodHandles in LinkResolver

Reviewed-by: dholmes
2013-04-11 07:12:09 -07:00
Nils Eliasson
92ef5fe748 8006952: Slow VM due to excessive code cache freelist iteration
Remove continous free block requirement

Reviewed-by: kvn
2013-04-11 13:57:44 +02:00
Igor Ignatyev
33e3f6b59b 8011971: WB API doesn't accept j.l.reflect.Constructor
Reviewed-by: kvn, vlivanov
2013-04-16 10:04:01 -07:00
Nils Eliasson
23e34191a6 Merge 2013-04-16 10:37:16 -04:00
Niclas Adlertz
09fdc18edc 8011621: live_ranges_in_separate_class.patch
Reviewed-by: kvn, roland
2013-04-16 10:08:41 +02:00
Roland Westrelin
115caa72a0 Merge 2013-04-15 18:42:42 -07:00
Christian Thalinger
fbdab16d85 7172922: export_ makefile targets do not work unless all supported variants are built
Reviewed-by: dholmes, kvn
2013-04-15 16:20:05 -07:00
Roland Westrelin
9f96eb3ed5 8011648: C1: optimized build is broken after 7153771
Missing #ifdef ASSERT

Reviewed-by: kvn
2013-04-15 17:17:11 +02:00
Roland Westrelin
361d401c11 8011582: assert(nbits == 32 || (-(1 << nbits-1) <= x && x < ( 1 << nbits-1))) failed: value out of range
C1 runtime's predicate_failed_trap should use jump_to on sparc

Reviewed-by: kvn
2013-04-15 09:42:46 +02:00
David Chase
25c31f3742 6443505: Ideal() function for CmpLTMask
Repair wrong code generation, added new matching rule

Reviewed-by: kvn, twisti
2013-04-12 19:14:47 -07:00
Vladimir Kozlov
cb85043f25 Merge 2013-04-12 20:37:18 -04:00
David Chase
55c4ce1ca1 7104565: trim jprt build targets
Remove JPRT debug builds, remove -DDEBUG -DFASTDEBUG and use ASSERT instead in sources

Reviewed-by: dholmes, kvn, coleenp
2013-04-12 15:53:30 -07:00
Christian Thalinger
4ac4649aab 8011678: test/Makefile should pick up JT_HOME environment variable
Reviewed-by: kvn
2013-04-12 15:43:07 -07:00
Christian Thalinger
01e43be718 8011933: add number of classes, methods and time spent to CompileTheWorld
Reviewed-by: jrose, kvn
2013-04-12 12:22:59 -07:00
Hannes Wallnöfer
0e49b64b83 8011980: Allow NUL character in character class
Reviewed-by: sundar, lagergren
2013-04-11 12:16:39 +02:00
Athijegannathan Sundararajan
9170d68b5a 8011974: Comparator function returning negative and positive Infinity does not work as expected with Array.prototype.sort
Reviewed-by: hannesw, lagergren
2013-04-11 15:04:55 +05:30
Alejandro Murillo
06a29c1417 8011948: new hotspot build - hs25-b28
Reviewed-by: jcoomes
2013-04-11 01:14:31 -07:00
Alejandro Murillo
2d0bb26480 Added tag hs25-b27 for changeset ea5bba2e47e9 2013-04-11 01:03:41 -07:00
Athijegannathan Sundararajan
30fdece570 8011960: [2,1].sort(null) should throw TypeError
Reviewed-by: hannesw, lagergren
2013-04-11 13:20:03 +05:30
Yuka Kamiya
5f73008cc0 8009638: Wrong comment for PL in LocaleISOData, 1989 forward Poland is Republic of Poland
Reviewed-by: okutsu
2013-04-11 12:22:23 +09:00
Weijun Wang
3d44ddefd6 8011745: Unknown CertificateChoices
Reviewed-by: vinnie
2013-04-11 11:10:03 +08:00
Weijun Wang
b02989edef 8011867: Accept unknown PKCS #9 attributes
Reviewed-by: vinnie
2013-04-11 11:09:50 +08:00
Weijun Wang
7d8e86633a 8005460: [findbugs] Probably returned array should be cloned
Reviewed-by: xuelei
2013-04-11 10:58:17 +08:00
Joe Darcy
6b6510941e 8011930: Long.parseLong(String, int) has inaccurate limit on radix for using 'L'
Reviewed-by: smarks
2013-04-10 16:38:26 -07:00
Brian Goetz
87e056aa00 8010948: Add conversion functional interfaces
Reviewed-by: mduigou, dholmes
2013-04-10 14:06:21 -07:00
Mike Duigou
8b4ed5f8cc 8011200: (coll) Optimize empty HashMap and ArrayList
Co-authored-by: Sergey Linetskiy <sergey.linetskiy@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: mduigou, alanb, bchristi, martin
2013-04-10 12:43:18 -07:00
Zhengyu Gu
37fe1421a8 8010151: nsk/regression/b6653214 fails "assert(snapshot != NULL) failed: Worker should not be started"
Fixed a racing condition when shutting down NMT while worker thread is being started, also fixed a few mis-declared volatile pointers.

Reviewed-by: dholmes, dlong
2013-04-10 08:55:50 -04:00
Stefan Karlsson
e96efdaa1a 8011872: Include Bit Map addresses in the hs_err files
Reviewed-by: brutisso, jmasa
2013-04-10 14:26:49 +02:00
Hannes Wallnöfer
ad7e2cd8de 8011756: Wrong characters supported in RegExp \c escape
Reviewed-by: lagergren, attila
2013-04-10 14:08:00 +02:00
Hannes Wallnöfer
3c60983c02 8011749: Bugs with empty character class handling
Reviewed-by: lagergren, attila
2013-04-10 14:05:11 +02:00
Hannes Wallnöfer
ab923e74bf 8011714: Regexp decimal escape handling still not correct
Reviewed-by: lagergren, attila
2013-04-10 14:00:11 +02:00
Vicente Romero
cde5be4904 8011432: javac, compiler regression iterable + captured type
Reviewed-by: mcimadamore
2013-04-10 12:31:02 +01:00
Mikael Gerdin
0edccc9e61 8010196: NPG: Internal Error: Metaspace allocation lock -- possible deadlock
Refactor the CLD dependency list into a separate class. Use an ObjectLocker to synchronize additions to the CLD dependency list.

Reviewed-by: stefank, coleenp
2013-04-10 13:27:35 +02:00
Roland Westrelin
c99c99aa36 8011706: specjvm2008 test xml.transform gets array bound exception with c1
Loop invariant code motion may move load before store to the same field

Reviewed-by: kvn
2013-04-10 09:52:49 +02:00
David Katleman
49d673993d Merge 2013-04-09 15:17:51 -07:00
David Katleman
7e20601e0a Merge 2013-04-09 15:16:41 -07:00
Lana Steuck
a10b11c7fe Merge 2013-04-09 15:14:31 -07:00
Lana Steuck
e3502fe80f Merge 2013-04-09 15:01:07 -07:00
Lana Steuck
d71c1e8a6c Merge 2013-04-09 14:59:22 -07:00
Bhavesh Patel
b82442a565 8005091: javadoc should be able to return the receiver type
Reviewed-by: jjg
2013-04-09 14:18:22 -07:00
Jiangli Zhou
56370657b9 8010862: The Method counter fields used for profiling can be allocated lazily
Allocate the method's profiling related metadata until they are needed.

Reviewed-by: coleenp, roland
2013-04-09 17:17:41 -04:00
Tim Bell
0a6c65bc99 8011348: use of which in common/autoconf/autogen.sh is not portable
Reviewed-by: erikj, katleman, mduigou
2013-04-09 13:05:22 -07:00
Igor Ignatyev
ca90185607 8007288: Additional WB API for compiler's testing
Reviewed-by: kvn, vlivanov
2013-04-09 09:54:17 -07:00
Chris Hegarty
dc6fd2d5dd 8005696: Add CompletableFuture
Reviewed-by: chegar, martin
2013-04-09 17:27:47 +01:00
Bharadwaj Yadavalli
be10521e31 8011671: JCK tests on static interface methods fail under b84: Illegal type at constant pool entry 5
Restore incorrect removal of support for static interface method verification in Java 8

Reviewed-by: kvn, coleenp
2013-04-09 08:52:32 -07:00
Alan Bateman
cce2911c19 8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: mullan
2013-04-09 15:51:50 +01:00
Miroslav Kos
91a27900ed 8010393: Update JAX-WS RI to 2.2.9-b12941
Co-authored-by: Martin Grebac <martin.grebac@oracle.com>
Reviewed-by: alanb, erikj
2013-04-09 14:51:13 +01:00
Leonid Mesnik
6f3fdce7b3 8009808: TEST-BUG : test case is using bash style tests. Default shell for jtreg is bourne. thus failure
Rewrite test to use Java only instead of shell script

Reviewed-by: mgerdin, brutisso
2013-04-09 15:32:45 +02:00
Jim Laskey
c590589054 Merge 2013-04-09 08:36:32 -03:00
Erik Joelsson
80b7d8cf99 8010465: Can't enable sjavac when building in jprt
Reviewed-by: ohair, tbell
2013-04-09 09:45:48 +02:00
Erik Joelsson
21711140e2 8006288: build-infra: Use solaris nm and not gnm on solaris
Reviewed-by: tbell
2013-04-09 09:42:20 +02:00
Joe Darcy
2c7f3d292f 6298888: Add toGenericString to j.l.Class and getTypeName to j.l.reflect.Type
6992705: Include modifiers in Class.toGenericString()

Class.toGenericString and supporting changes; additional reviews by Peter Levart

Reviewed-by: alanb
2013-04-08 17:06:20 -07:00
Martin Buchholz
35d38242d2 8010849: (str) Optimize StringBuilder.append(null)
Append 4 chars instead of the string "null"

Reviewed-by: mduigou, forax, jgish
2013-04-08 16:37:35 -07:00
Jim Gish
4b5d81c510 8006036: (process) cleanup code in java/lang/Runtime/exec/WinCommand.java
Reviewed-by: lancea
2013-04-08 15:29:24 -04:00
Jonathan Gibbons
a45f8e0ef9 8011677: EndPosTables should avoid hidden references to Parser
Reviewed-by: mcimadamore
2013-04-08 11:57:37 -07:00
Jonathan Gibbons
876df30973 8011676: Instances of Tokens.Comment should not be defined in inner classes
Reviewed-by: mcimadamore
2013-04-08 11:54:26 -07:00
Omair Majid
7f1fd4ecb9 8011388: Support building zero and zeroshark with the new build
Co-authored-by: Roman Kennke <rkennke@redhat.com>
Reviewed-by: andrew, dholmes, erikj
2013-04-08 14:09:01 -04:00
Omair Majid
ca98a33db4 8011388: Support building zero and zeroshark with the new build
Co-authored-by: Roman Kennke <rkennke@redhat.com>
Reviewed-by: andrew, dholmes, erikj
2013-04-08 14:07:32 -04:00
Maurizio Cimadamore
da9dd76b20 8010822: Intersection type cast for functional expressions does not follow spec EDR
Remove support for marker interfaces; redefine intersection type casts to be order-independent

Reviewed-by: jjg
2013-04-08 15:59:29 +01:00
Maurizio Cimadamore
ea55015155 8009131: Overload: javac should discard methods that lead to errors in lambdas with implicit parameter types
Lambdas that have errors in their bodies should make enclosing overload resolution fail

Reviewed-by: jjg
2013-04-08 15:57:10 +01:00
Maurizio Cimadamore
b4b6e4f82e 8010404: Lambda debugging: redundant LineNumberTable entry for lambda capture
Ignore indy entries in LineNumberTable

Reviewed-by: jjg
2013-04-08 15:53:08 +01:00
Maurizio Cimadamore
08df98aa3c 8010823: DefaultMethodTest.testReflectCall fails with new lambda VM
Fix lambda test

Reviewed-by: jjg
2013-04-08 15:52:05 +01:00
Maurizio Cimadamore
f298073f33 8010922: Cleanup: add support for ad-hoc method check logic
Support pluggable method checkers

Reviewed-by: jjg
2013-04-08 15:51:41 +01:00
David Chase
12be356d81 8010913: compiler/6863420 often exceeds timeout
Add longer timeout for jtreg, add internal timeout thread to prevent spurious timeouts

Reviewed-by: twisti, kvn
2013-04-08 07:40:08 -07:00
Konstantin Shefov
d7081aaf76 7153702: [TEST_BUG] [macosx] Synchronization problem in test javax/swing/JPopupMenu/6827786/bug6827786.java
Reviewed-by: serb, alexsch
2013-04-08 17:18:16 +04:00
Bengt Rutisson
4a685f181b 7197666: java -d64 -version core dumps in a box with lots of memory
Allow task queues to be mmapped instead of malloced on Solaris

Reviewed-by: coleenp, jmasa, johnc, tschatzl
2013-04-08 07:49:28 +02:00
Zhengyu Gu
e722199fc0 Merge 2013-04-05 23:10:04 -07:00
Joe Darcy
76a59cf150 8011590: More tests for core reflection modeling of default methods
Reviewed-by: mduigou
2013-04-05 18:20:12 -07:00
Dan Xu
963eb2f9d7 8011602: jobjc build failure on Mac
Remove @Native annotation from macosx/native/jobjc/src/core/java/com/apple/jobjc/Coder.java

Reviewed-by: mchung, dholmes
2013-04-05 17:15:59 -07:00
Daniel D. Daugherty
b548db1e6d Merge 2013-04-05 16:16:18 -07:00
Lana Steuck
a8231f55a8 Merge 2013-04-05 14:52:00 -07:00
Lana Steuck
2736fc31a9 Merge 2013-04-05 14:51:55 -07:00
Lana Steuck
0be9644c6a Merge 2013-04-05 14:51:24 -07:00
Lana Steuck
7066a75e51 Merge 2013-04-05 14:49:54 -07:00
Christos Zoulas
a7b0073f5a 5001942: Missings SOCKS support for direct connections
Add support for socksNonProxyHosts

Reviewed-by: chegar, khazra
2013-04-05 12:12:34 -07:00
Calvin Cheung
a72b5d24e6 8006001: [parfait] Possible file leak in hotspot/src/os/linux/vm/perfMemory_linux.cpp
Reviewed-by: zgu, coleenp, hseigel, dholmes
2013-04-05 11:15:13 -07:00
Hannes Wallnöfer
bc7905ab3a 8009230: Nashorn rejects extended RegExp syntax accepted by all major JS engines
Reviewed-by: jlaskey, lagergren
2013-04-05 19:50:10 +02:00
Mandy Chung
efdece0bc7 8011380: FX dependency on PlatformLogger broken by 8010309
Reviewed-by: alanb
2013-04-05 10:41:46 -07:00
Daniel D. Daugherty
78339229bb Merge 2013-04-05 10:38:08 -07:00
Petr Pchelko
9ff5db6260 8006941: [macosx] Deadlock in drag and drop
7199783: Setting cursor on DragSourceContext does not work on OSX

Reviewed-by: anthony, serb
2013-04-05 18:29:53 +01:00
Zhengyu Gu
28e33e673a 8011161: NMT: Memory leak when encountering out of memory error while initializing memory snapshot
Fix memory leaks when NMT fails to initialize snapshot and worker thread

Reviewed-by: dcubed, ccheung, rdurbin
2013-04-05 12:19:19 -04:00
Niclas Adlertz
340226f16a 8006016: Memory leak at hotspot/src/share/vm/adlc/output_c.cpp
Reviewed-by: kvn, roland
2013-04-05 11:09:43 +02:00
Erik Joelsson
989cb5b8fc 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
Reviewed-by: tbell
2013-04-05 09:39:10 +02:00
Erik Joelsson
6cb72b3aab 8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
Reviewed-by: tbell
2013-04-05 09:38:54 +02:00
Alejandro Murillo
0afa77628c 8011584: new hotspot build - hs25-b27
Reviewed-by: jcoomes
2013-04-04 21:15:43 -07:00
Alejandro Murillo
fe9ae80e5d Added tag hs25-b26 for changeset 7d026deaf1db 2013-04-04 21:06:39 -07:00
Alejandro Murillo
de822f9a8e Merge 2013-04-04 21:06:38 -07:00
Valerie Peng
4ce74c065e 7155720: PKCS11 minor issues in native code
Added OOM handling to address the two issues found by parfait.

Reviewed-by: weijun
2013-04-04 20:05:47 -07:00
David Katleman
403f66ad1d Added tag jdk8-b84 for changeset c3a8125548f0 2013-04-04 19:05:46 -07:00
David Katleman
f4cf1435ed Added tag jdk8-b84 for changeset 5e63bda2ec36 2013-04-04 19:05:42 -07:00
David Katleman
1234f8529c Added tag jdk8-b84 for changeset 9c96ead03162 2013-04-04 19:05:32 -07:00
David Katleman
188c36b378 Added tag jdk8-b84 for changeset 0ee966fccbc1 2013-04-04 19:05:24 -07:00
David Katleman
0f87989600 Added tag jdk8-b84 for changeset 545ba3c9bf47 2013-04-04 19:05:21 -07:00
David Katleman
c8755701ef Added tag jdk8-b84 for changeset df190a3da0e2 2013-04-04 19:05:12 -07:00
David Katleman
3cf1973527 Added tag jdk8-b84 for changeset 8d11dc7a1d97 2013-04-04 19:05:06 -07:00
David Katleman
2c9fb2de3e Added tag jdk8-b84 for changeset aec7eec37b03 2013-04-04 19:05:04 -07:00
Bharadwaj Yadavalli
4b9150eaf7 Merge 2013-04-04 17:01:34 -07:00
Dan Xu
209e92f4fe 8000406: change files using @GenerateNativeHeader to use @Native
Use @Native annotation to mark constants interested by native codes

Reviewed-by: alanb, anthony, prr
2013-04-04 15:39:17 -07:00
Vladimir Kozlov
c68fa92e4b 8011198: LP64 setting is not preserved on Solaris after 8006965
Fixed incremental build makefiles generated by buildtree.make. Consolidated unix build.sh.

Reviewed-by: twisti
2013-04-04 12:18:46 -07:00
Mikael Gerdin
c17d80e53d Merge 2013-04-04 19:07:32 +02:00
Mikael Vidstedt
eeb83733a6 8003310: Enable -Wunused-function when compiling with gcc
Add the -Wunused-function flag and remove a number of unused functions.

Reviewed-by: dholmes, coleenp, kvn
2013-04-04 10:01:26 -07:00
Chris Hegarty
f048a16b74 Merge 2013-04-04 17:34:07 +01:00
Attila Szegedi
35f9ab2054 8011555: Invalid class name in with block with JavaImporter causes MH type mismatch
Reviewed-by: jlaskey, lagergren
2013-04-04 18:32:00 +02:00
Athijegannathan Sundararajan
194f867e24 8011552: Arrays with missing elements are not properly sorted
Reviewed-by: jlaskey, lagergren
2013-04-04 20:46:31 +05:30
Attila Szegedi
a6439d2b72 Merge 2013-04-04 15:55:42 +02:00
Attila Szegedi
5a45a7da03 8011544: Allow subclassing Java classes from script without creating instances
Reviewed-by: jlaskey, sundar
2013-04-04 15:53:26 +02:00
Athijegannathan Sundararajan
76f2aa79e6 8011543: "".split(undefined,{valueOf:function(){throw 2}}) does not throw exception
Reviewed-by: lagergren, jlaskey
2013-04-04 18:30:30 +05:30
Jim Laskey
04fdfe9984 Merge 2013-04-04 09:06:29 -03:00
James Laskey
70276abeb1 8011540: PropertyMap histories should not begin with empty map
Reviewed-by: lagergren, sundar
2013-04-04 09:05:38 -03:00
Athijegannathan Sundararajan
e20dc52ab2 8011421: When using Object.defineProperty on arrays, PropertyDescriptor's property accessors are invoked multiple times
Reviewed-by: lagergren, hannesw
2013-04-04 13:54:51 +05:30
Niclas Adlertz
5548661d72 8006014: Memory leak in hotspot/src/share/vm/adlc/dfa.cpp
Reviewed-by: kvn, roland
2013-04-04 09:30:06 +02:00
Roland Westrelin
4bde66a178 Merge 2013-04-04 02:48:21 -07:00
Roland Westrelin
02a014996b 8010399: Test8009761.java "Failed: init recursive calls: 5498. After deopt 5494"
Test from 8009761 shouldn't be run with -Xcomp

Reviewed-by: kvn
2013-04-04 09:33:24 +02:00
Erik Joelsson
3231305a34 8011372: Remove -p from cp in IdleCompilation.gmk
Reviewed-by: pliden, tbell
2013-04-04 09:25:58 +02:00
Erik Joelsson
a88f9ec2d6 8006828: "SKIP_BOOT_CYCLE=false" must work in new building infrastructure
Reviewed-by: tbell, alanb
2013-04-04 09:24:21 +02:00
Niclas Adlertz
0f3a43e318 8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp
Reviewed-by: roland, kvn
2013-04-04 09:18:47 +02:00
Athijegannathan Sundararajan
2b494aafd9 8011394: RegExp.prototype.test() does not call valueOf on lastIndex property as per the spec
Reviewed-by: lagergren, jlaskey, hannesw
2013-04-04 10:24:46 +05:30
Calvin Cheung
33f6dd2215 8006103: [parfait] Possible null pointer dereference at hotspot/src/os/linux/vm/os_linux.cpp; os_windows.cpp; os_solaris.cpp; os_bsd.cpp
Reviewed-by: zgu, iklam
2013-04-03 16:43:09 -07:00
Mike Duigou
e3b0538db8 8011350: hgforest.sh uses non-POSIX sh features that may fail with some shells
Reviewed-by: tbell, katleman, dholmes
2013-04-03 16:26:10 -07:00
Chuck Rasbold
93c40233d6 8010437: guarantee(this->is8bit(imm8)) failed: Short forward jump exceeds 8-bit offset
Fix shorten_branches() to accurately count an initial nop that may be inserted in a block that starts with a safepoint.

Reviewed-by: kvn
2013-04-03 15:00:55 -07:00
Joe Darcy
3aabe92c92 8011052: Add DEFAULT to javax.lang.model.Modifier
Reviewed-by: abuckley, jjg
2013-04-03 12:27:12 -07:00
Vladimir Kozlov
88f70d8026 8011102: Clear AVX registers after return from JNI call
Execute vzeroupper instruction after JNI call and on exits in jit compiled code which use 256bit vectors.

Reviewed-by: roland
2013-04-03 11:12:57 -07:00
Naoto Sato
4952f6a6de 7091601: Arabic Locale: can not set type of digit in application level
Reviewed-by: okutsu
2013-04-03 10:32:38 -07:00
Mikhail Cherkasov
918a376474 8010925: COPY AND PASTE TO AND FROM SIGNED APPLET FAILS AFTER FIRST INTERNAL COPY PRFRMD
Reviewed-by: anthony, serb
2013-04-03 20:54:26 +04:00
Lance Andersen
fb6bf29f89 8011393: Typo in javadoc for SerialClob.truncate
Reviewed-by: darcy
2013-04-03 12:47:15 -04:00
Mikhail Cherkasov
7e68ec53aa 8011123: serialVersionUID of java.awt.dnd.InvalidDnDOperationException changed in JDK8-b82
Reviewed-by: anthony, serb
2013-04-03 20:42:55 +04:00
Athijegannathan Sundararajan
84f1ee1581 8011382: Data prototype methods and constructor do not call user defined toISOString, valueOf methods per spec
Reviewed-by: lagergren, jlaskey
2013-04-03 20:17:05 +05:30
Alan Bateman
963ad66352 8011373: Property java.runtime.profile should be removed (left-over code)
Reviewed-by: lancea, dholmes
2013-04-03 13:41:12 +01:00
Alan Bateman
84e09062c0 8011234: Performance regression with ftp protocol when uploading in image mode
Reviewed-by: chegar
2013-04-03 13:15:39 +01:00
Hannes Wallnöfer
6b89fa96a3 8007774: Enable code cache again
Reviewed-by: lagergren, attila, sundar
2013-04-03 12:43:59 +02:00
Athijegannathan Sundararajan
a85fab2730 8011365: Array.prototype.join and Array.prototype.toString do not throw TypeError on null, undefined
Reviewed-by: attila, hannesw, lagergren
2013-04-03 15:27:28 +05:30
Attila Szegedi
7891ed4115 8011362: Overloaded method resolution foiled by nulls
Reviewed-by: hannesw, sundar
2013-04-03 11:13:08 +02:00
Mikael Gerdin
0a963fd1b7 Merge 2013-04-03 09:19:02 +02:00
Athijegannathan Sundararajan
d35b6ae5f6 8011357: Array.prototype.slice and Array.prototype.splice should not call user defined valueOf of start, end arguments more than once
Reviewed-by: lagergren, hannesw
2013-04-03 11:41:42 +05:30
Lana Steuck
5c390e7094 Merge 2013-04-02 17:03:25 -07:00
Joe Darcy
fa0b9daa08 8004979: java.lang.reflect.Modifier.toString should include "default"
Reviewed-by: mduigou
2013-04-02 16:26:54 -07:00
Lana Steuck
88a9d69091 Merge 2013-04-02 16:17:54 -07:00
Jim Gish
4c7d3a9bd1 5015163: (str) String merge/join that is the inverse of String.split()
7172553: A utility class that forms the basis of a String.join() operation

Integrate StringJoiner changes from lambda

Reviewed-by: alanb, mduigou
2013-04-02 18:41:04 -04:00
Akhil Arora
0f56bf298b 8005051: optimized defaults for Iterator.forEachRemaining
Reviewed-by: alanb, mduigou, psandoz, ulfzibis
2013-04-23 11:54:22 -07:00
Alan Bateman
d51ab5c39c 8012530: test/sun/security/provider/SecureRandom/StrongSeedReader.java failing
Reviewed-by: wetmore
2013-04-25 17:10:36 -07:00
Sean Coffey
9822b2cd84 8000529: Regression: SimpleDateFormat incorrectly parses dates formatted with Z and z pattern letters
Reviewed-by: okutsu
2013-04-25 21:12:35 +01:00
Eric McCorkle
47bb6585b4 8012937: Correct errors in javadoc comments
Correct some errors in the javadoc comments for parameter reflection.

Reviewed-by: darcy
2013-04-25 14:23:24 -04:00
Joe Darcy
edbd8cf91c 8012044: Give more information about self-suppression from Throwable.addSuppressed
Reviewed-by: alanb, dholmes
2013-04-25 09:37:03 -07:00
David Katleman
3e58f37434 Merge 2013-04-02 15:31:24 -07:00
David Katleman
7be1c29f22 Merge 2013-04-02 15:29:18 -07:00
Mike Duigou
bc93996d27 8011342: hgforest.sh : 'python --version' not supported on older python
Reviewed-by: wetmore
2013-04-02 14:56:19 -07:00
Lana Steuck
b0cd59474f Merge 2013-04-02 12:01:01 -07:00
Lana Steuck
5db557f689 Merge 2013-04-02 12:00:48 -07:00
Lana Steuck
e82dcb36d6 Merge 2013-04-02 11:59:34 -07:00
Lana Steuck
159ddb0f22 Merge 2013-04-02 11:55:09 -07:00
Omair Majid
934072f774 8011278: Allow using a system-installed giflib
Reviewed-by: andrew, prr
2013-04-02 14:13:13 -04:00
Omair Majid
b34573420a 8011278: Allow using a system-installed giflib
Reviewed-by: andrew, prr
2013-04-02 14:13:06 -04:00
Athijegannathan Sundararajan
e96d207c68 8011274: Object.getOwnPropertyDescriptor(function(){"use strict"},"caller").get.hasOwnProperty("prototype") should be false
Reviewed-by: lagergren, jlaskey
2013-04-02 23:01:10 +05:30
Xueming Shen
3457ff4337 8007379: Base64.getMimeDecoder().decode() throws IAE for a non-base64 character after padding
8008925: Base64.getMimeDecoder().decode() does not ignore padding chars

Updated implementation and spec for corner cases.

Reviewed-by: alanb
2013-04-02 10:12:20 -07:00
Athijegannathan Sundararajan
fcc548f01d 8011237: Object.isExtensible(Object.getOwnPropertyDescriptor(function(){"use strict"},"caller").get) should be false
Reviewed-by: lagergren, jlaskey
2013-04-02 20:42:03 +05:30
Zhengyu Gu
5fda3f38d9 Merge 2013-04-02 07:40:52 -07:00
Jim Laskey
6819808bea Merge 2013-04-02 11:38:04 -03:00
James Laskey
53d40472c2 8011233: Create a Nashorn shell for JavaFX
Reviewed-by: lagergren, sundar
2013-04-02 11:37:22 -03:00
Andrew John Hughes
c6ab956b21 8009988: build-infra: Fix configure output for zip debuginfo check
No output from zip debuginfo option when default is used.

Reviewed-by: tbell
2013-04-02 13:59:30 +01:00
Athijegannathan Sundararajan
da76d3b5ec 8011209: Object.getOwnPropertyDescriptor(function(){"use strict"},"caller").get.length is not 0
Reviewed-by: lagergren, hannesw, jlaskey
2013-04-02 17:40:53 +05:30
Hannes Wallnöfer
10cd2de7ed 8011219: Regression with recent PropertyMap history changes
Reviewed-by: jlaskey, lagergren
2013-04-02 13:55:49 +02:00
Vicente Romero
a19d0728ba 4965689: class literal code wastes a byte
Reviewed-by: jjg
2013-04-02 10:51:16 +01:00
Leonid Mesnik
a4300aa98b 8009763: Add WB test for String.intern()
Add convenience method in StringTable, add WhiteBox method and simple sanity test

Reviewed-by: mgerdin, zgu
2013-04-02 11:28:33 +02:00
Staffan Larsen
bce70c8f7b 8009558: linked_md.c::dll_build_name can get stuck in an infinite loop
Reviewed-by: alanb, sspitsyn
2013-04-02 10:32:21 +02:00
Thomas Schatzl
45cc7f61db 8005857: assert in GC_locker from PSOldGen::expand with -XX:+PrintGCDetails and Verbose
Use GC_locker::is_active_and_needs_gc() instead of GC_locker::is_active() for providing information about the reason of heap expansion.

Reviewed-by: jmasa, johnc
2013-04-02 10:03:02 +02:00
Nils Eliasson
5b838d4ce1 7034299: Faulty winsock initialization code
Reviewed-by: dholmes, sla, ctornqvi
2013-04-02 09:30:07 +02:00
Lana Steuck
f614f5d693 Merge 2013-04-01 21:42:31 -07:00
Lana Steuck
2288704f7f Merge 2013-04-01 21:42:15 -07:00
Lana Steuck
6c50b0bfe1 Merge 2013-04-01 21:40:54 -07:00
Lana Steuck
61d12714eb Merge 2013-04-01 21:35:19 -07:00
Lana Steuck
8468b13f32 Merge 2013-04-01 21:34:39 -07:00
Lana Steuck
1d4124b9bb Merge 2013-04-01 21:34:33 -07:00
Mike Duigou
01ab1da058 8011178: improve common/bin/hgforest.sh python detection (MacOS)
Reviewed-by: ohair
2013-04-01 21:11:51 -07:00
Mike Duigou
7d45058eaa 8011199: Backout changeset JDK-7143928 (2b34a1eb3153)
Reviewed-by: darcy, dholmes
2013-04-01 20:51:40 -07:00
Mike Duigou
12f1183c74 8011187: Remove obsolete/unused targets from jdk/test/Makefile
Reviewed-by: ohair
2013-04-01 20:15:48 -07:00
Mike Duigou
3e6daeda3a 7143928: Optimize empty HashMap and ArrayList
Co-authored-by: Sergey Linetskiy <sergey.linetskiy@oracle.com>
Co-authored-by: John Rose <john.rose@oracle.com>
Reviewed-by: mduigou
2013-04-01 20:15:48 -07:00
Ioi Lam
ba2c11a93a 8011048: Possible reading from unmapped memory in UTF8::as_quoted_ascii()
Pass utf_length parameter to UTF8::as_quoted_ascii()

Reviewed-by: dcubed, minqi
2013-04-01 14:05:41 -07:00
Mike Duigou
cd2f264ba1 8010268: Remove dependence upon clean target from jdk/test/Makefile prep target
Reviewed-by: tbell, mchung
2013-04-01 12:02:19 -07:00
Jon Masamitsu
7f78a7f475 8011173: NPG: Replace the ChunkList implementation with class FreeList<Metachunk>
Reviewed-by: mgerdin, tschatzl, johnc, coleenp
2013-04-01 10:50:30 -07:00
Mikael Gerdin
bd3eb2abf6 Merge 2013-04-16 12:46:24 +02:00
John Cuthbertson
9fba6da283 Merge 2013-04-11 10:20:00 -07:00
John Cuthbertson
fa3b993423 8010780: G1: Eden occupancy/capacity output wrong after a full GC
Move the calculation and recording of eden capacity to the start of a GC and print a detailed heap transition for full GCs.

Reviewed-by: tschatzl, jmasa
2013-04-10 10:57:34 -07:00
James Laskey
1cfc0cae65 8011095: PropertyHashMap.rehash() does not grow enough
Reviewed-by: hannesw, lagergren
2013-03-31 08:19:11 -03:00
Krystal Mo
214b7d9dcf 8011009: Use do-while(0) instead of while(0) in EC_TRACE and RC_TRACE* macros
Improve EC_TRACE and RC_TRACE* to use the do-while(0) trick for statement-like macro

Reviewed-by: sspitsyn, dcubed
2013-03-30 08:01:05 -07:00
Bharadwaj Yadavalli
70314e1b01 Merge 2013-03-29 20:52:01 -07:00
Calvin Cheung
5f93d0e84c 8006006: [parfait] Memory leak at hotspot/src/share/tools/launcher/wildcard.c
A simple fix to add FileList_free(fl) before returning NULL.

Reviewed-by: zgu, coleenp, minqi
2013-03-29 14:18:40 -07:00
Harold Seigel
e1383d4931 8010943: guarantee(length == 0) failed: invalid method ordering length
Add DumpSharedSpaces to IF condition to handle verify during -Xshare:dump.

Reviewed-by: coleenp, zgu
2013-04-04 08:47:39 -04:00
Christian Tornqvist
c435269587 8009125: Add NMT tests for Virtual Memory operations
Tests added for Reserve/Commit/Uncommit/Unreserve operations

Reviewed-by: zgu, mgerdin
2013-04-03 21:41:33 +02:00
Roland Westrelin
3c586e8f26 8010934: assert failure in c1_LinearScan.cpp: "asumption: non-Constant instructions have only virtual operands"
Incorrect code to skip some ArrayLength instructions in LIRGenerator

Reviewed-by: kvn
2013-03-29 17:25:27 +01:00
Athijegannathan Sundararajan
db89cafb53 8011063: With older ant, we get the error "The <property> type doesn't support nested text data ("${run.te...jvmargs}")."
Reviewed-by: hannesw, ksrini
2013-03-29 18:38:27 +05:30
Anton Tarasov
858bdaabaf 8010375: sun.swing.JLightweightFrame should be implemented for XToolkit
Reviewed-by: anthony
2013-03-29 16:12:11 +04:00
Marcus Lagergren
fec16029ea 8010995: The bug ID 8010710 accidentally got two digits transposed in the checkin and unit test name
Reviewed-by: hannesw, sundar
2013-03-29 08:55:05 +01:00
Alejandro Murillo
f6b3e5b495 8011022: new hotspot build - hs25-b26
Reviewed-by: jcoomes
2013-03-28 19:13:22 -07:00
Alejandro Murillo
142f171fb6 Added tag hs25-b25 for changeset 4c619ad74be5 2013-03-28 19:02:00 -07:00
Alejandro Murillo
1f205eb4dc Merge 2013-03-28 19:01:59 -07:00
Gary Collins
4970095c03 Merge 2013-03-28 15:42:11 -07:00
Peter Levart
2ca495dd43 8010309: Improve PlatformLogger.isLoggable performance by direct mapping from an integer to Level
Co-authored-by: Laurent Bourges <bourges.laurent@gmail.com>
Reviewed-by: mchung
2013-03-28 13:14:09 -07:00
Jonathan Gibbons
18f48ab46b 8010511: Tests are creating files in /tmp
Reviewed-by: darcy
2013-03-28 10:58:45 -07:00
David Katleman
ea13857a21 Added tag jdk8-b83 for changeset 4f4788d62566 2013-03-28 10:55:17 -07:00
David Katleman
e4d9e1a5e7 Added tag jdk8-b83 for changeset fd242a461861 2013-03-28 10:55:14 -07:00
David Katleman
194b6327bc Added tag jdk8-b83 for changeset a93e7eb6663c 2013-03-28 10:55:03 -07:00
David Katleman
ff17e3e399 Added tag jdk8-b83 for changeset 74e3fc2986f0 2013-03-28 10:54:47 -07:00
David Katleman
65616fa742 Added tag jdk8-b83 for changeset 8ca744a5d6f4 2013-03-28 10:54:36 -07:00
David Katleman
afd676cdb3 Added tag jdk8-b83 for changeset 395a7c20e300 2013-03-28 10:54:00 -07:00
David Katleman
91473e6924 Added tag jdk8-b83 for changeset d2d074c62b67 2013-03-28 10:53:52 -07:00
David Katleman
361893b41a Added tag jdk8-b83 for changeset 64247ba55872 2013-03-28 10:53:50 -07:00
Jonathan Gibbons
84a50dc114 8006346: doclint should make allowance for headers generated by standard doclet
Reviewed-by: mcimadamore
2013-03-28 10:49:39 -07:00
Athijegannathan Sundararajan
bf6e4f1ec7 8010924: Dealing with undefined property gets you a fatal stack
Reviewed-by: lagergren, jlaskey
2013-03-28 20:48:25 +05:30
Peter Allwin
388d803077 8002118: WindbgDebuggerLocal should not try to load 64-bit debug libraries for 32-bit JVM
Reviewed-by: sspitsyn, zgu
2013-03-28 15:39:52 +01:00
Ioi Lam
cbe728a9bd 8010723: fatal error: acquiring lock Metaspace allocation lock/5 out of order
Avoid holding SystemDictionary_lock while calling Klass::remove_unshareable_info

Reviewed-by: coleenp, acorn
2013-03-31 21:43:10 -04:00
Daniel D. Daugherty
2484584e6d Merge 2013-03-29 08:38:00 -07:00
Weijun Wang
4a64ecdf42 8010125: keytool -importkeystore could create a pkcs12 keystore with different storepass and keypass
Reviewed-by: vinnie
2013-03-28 20:27:53 +08:00
Maurizio Cimadamore
059c4839bc 8010490: FindBugs: double assignments in LambdaToMethod.visitIdent
Remove dead code from LambdaToMethod

Reviewed-by: jjg
2013-03-28 11:39:04 +00:00
Maurizio Cimadamore
b67623d272 8010469: Bad assertion in LambdaToMethod
Add assertion in LambdaToMethod.serializedLambdaName

Reviewed-by: jjg
2013-03-28 11:38:38 +00:00
Athijegannathan Sundararajan
d891c7c560 8010991: Enable test/javax/script/GetInterfaceTest.java again
Reviewed-by: lagergren, hannesw
2013-03-28 14:36:10 +05:30
Erik Joelsson
d81ec5b9f3 8010908: Images target failes when configured with --disable-zip-debug-info
Reviewed-by: tbell
2013-03-28 09:36:43 +01:00
Bengt Rutisson
fe88c92e9e Merge 2013-03-28 09:07:44 +01:00
Yumin Qi
2c04384107 Merge 2013-03-28 00:44:15 -07:00
Zhengyu Gu
bd7432ce0b Merge 2013-03-27 22:05:21 -07:00
Yumin Qi
76cc94fb99 2178143: JVM crashes if the number of bound CPUs changed during runtime
Supply a new flag -XX:+AssumeMP to workaround the problem. With the flag is turned on, assume VM run on MP platform so is_MP() will return true that sync calls will not skip away.

Reviewed-by: dholmes, acorn, dcubed, jmasa
2013-03-27 17:03:19 -07:00
Karen Kinnear
8e1f6dce02 Merge 2013-03-27 16:31:00 -07:00
Harold Seigel
0f6fd31a93 Merge 2013-03-27 13:26:44 -07:00
Zhengyu Gu
58042e4651 Merge 2013-03-27 13:07:41 -07:00
Jia-Hong Chen
e56c5733ec 8010005: [parfait] Memory leak in jdk/src/macosx/native/sun/awt/CTextPipe.m
Reviewed-by: bae, prr
2013-03-27 12:42:51 -07:00
Zhengyu Gu
7363c58e32 8010474: [parfait] Undefined return value of the functions in hotspot/src/share/vm/services/memTracker.hpp
Fixed functions that miss return values

Reviewed-by: coleenp, acorn, kvn
2013-03-27 15:41:53 -04:00
Karen Kinnear
b79e2c6803 8009731: Confusing error message for loader constraint violation
Fix text, overwritten type and holder for resolved method

Reviewed-by: coleenp, dcubed, minqi, dholmes
2013-03-27 14:10:59 -04:00
Karen Kinnear
f45e9f484d 8010846: Update the corresponding test in test/vm/verifier/TestStaticIF.java
Remove test flag -XX:-UseSplitVerifier, not supported classfile 52

Reviewed-by: acorn, hseigel
2013-03-27 13:40:26 -04:00
Gary Collins
c2a873f014 8009152: A number of jtreg tests need review/improvement
Added a new test_env.txt file to capture common shell variable. Added concept of COMPILEJAVA for use when TESTJAVA is a JRE. If COMPILEJAVA not set then TESTJAVA will be the default with assumption it is a JDK.

Reviewed-by: kvn, brutisso, coleenp
2013-03-27 09:49:51 -07:00
Joe Darcy
3987724a24 7185456: (ann) Optimize Annotation handling in java/sun.reflect.* code for small number of annotations
Reviewed-by: mduigou, jfranck
2013-03-27 09:38:53 -07:00
Dan Xu
2ffe97f06e 8010837: FileInputStream.available() throw IOException when encountering negative available values
Remove the check in the native code to allow negative values

Reviewed-by: mchung
2013-03-27 09:00:34 -07:00
Harold Seigel
366b7e1c5e 8010833: Test7116786.java is failing on most configs after fix for 8010667
Update test to recognize that non-zero pad bytes for lookupswitch/tablewsitch opcodes are now valid.

Reviewed-by: dcubed, twisti, kvn, coleenp, dholmes
2013-03-27 11:41:51 -04:00
Denis Fokin
36fd8181af 7075105: WIN: Provide a way to format HTML on drop
Reviewed-by: uta, serb
2013-03-27 16:19:51 +04:00
Coleen Phillimore
878c7e4cd0 8009531: Crash when redefining class with annotated method
Neglected to copy the annotations in clone_with_new_data when they were moved to ConstMethod.

Reviewed-by: acorn, sspitsyn, dcubed
2013-03-27 08:19:50 -04:00
Erik Helin
cf6d13410c 8010818: NPG: Remove metaspace memory pools
Reviewed-by: mgerdin, stefank
2013-03-27 10:55:37 +01:00
Dmitry Cherepanov
125a476997 Merge 2013-03-27 08:32:42 +04:00
Joe Darcy
4d16263250 7059170: Assume availablility of URLClassLoader.close
Reviewed-by: jjg
2013-03-26 18:15:24 -07:00
Joe Darcy
af36b14fdb 7041251: Use j.u.Objects utility methods in langtools
Reviewed-by: jjg
2013-03-26 17:17:14 -07:00
Zhengyu Gu
087b089a1f Merge 2013-03-26 15:20:05 -07:00
Vladimir Kozlov
848ccdbdfe 8004640: C2 assert failure in memnode.cpp: NULL+offs not RAW address
Always transform AddP nodes in IdealKit by calling _gvn.transform().

Reviewed-by: roland, twisti
2013-03-26 12:55:26 -07:00
Harold Seigel
a96ab956fa Merge 2013-03-26 12:43:32 -07:00
Lana Steuck
1008ef9192 Merge 2013-03-26 12:08:00 -07:00
Lana Steuck
86f5cb2773 Merge 2013-03-26 12:07:45 -07:00
Lana Steuck
bd671cb7fa Merge 2013-03-26 12:04:35 -07:00
Lana Steuck
73294bfb7c Merge 2013-03-26 12:00:55 -07:00
Lana Steuck
fde669d8fa Merge 2013-03-26 12:00:13 -07:00
Lana Steuck
e650095cd7 Merge 2013-03-26 12:00:08 -07:00
Lana Steuck
e2c373dfdb Merge 2013-03-26 11:58:53 -07:00
Zhengyu Gu
4c1946ddfe Merge 2013-03-26 11:40:24 -07:00
Zhengyu Gu
7c46953faf 8010651: create.bat still builds the kernel
Remove old kernel build targets and VS C++ projects created by create.bat on Windows

Reviewed-by: coleenp, sla
2013-03-26 14:11:21 -04:00
Jim Gish
ecc23551a5 8009824: webrev.ksh generated jdk.patch files do not handle renames, copies, and shouldn't be applied
Use hg export --git to produce proper patch file

Reviewed-by: mduigou
2013-03-26 13:41:36 -04:00
Mike Duigou
c691233acc 8010267: Add test-clean for cleaning of testoutput directory from output directory. Add depedency on test-clean to clean
Reviewed-by: mchung, tbell
2013-04-01 11:48:01 -07:00
Joel Borggren-Franck
ee3ea81f65 8009382: Add JVM_Get{Field|Method}TypeAnnotations
Reviewed-by: dcubed, rbackman
2013-03-26 15:00:34 +01:00
Harold Seigel
feec2af7b4 8009595: The UseSplitVerifier option needs to be deprecated
Put UseSplitVerifier option on the deprecated list.

Reviewed-by: dcubed, kmo, acorn
2013-03-26 09:06:16 -04:00
Athijegannathan Sundararajan
97d7f98a21 8010720: Linkage problem with java.lang.String.length()
Reviewed-by: hannesw, lagergren
2013-03-26 18:26:19 +05:30
Niclas Adlertz
143a0039a3 8010281: Remove code that is never executed
Reviewed-by: kvn, roland
2013-03-26 10:05:33 +01:00
Marcus Lagergren
f20cadfd8b 8010706: -Dnashorn.args system property to create command lines to wrapped nashorn.jar:s
Reviewed-by: hannesw, sundar
2013-03-26 08:42:35 +01:00
Mandy Chung
d79b11782a 8010787: changeset for 8007703 is missing the deleted files
Reviewed-by: dholmes, alanb, erikj
2013-03-25 18:14:52 -07:00
Michael Fang
1a25595a25 Merge 2013-03-25 18:08:47 -07:00
Michael Fang
1beb340b97 Merge 2013-03-25 18:03:32 -07:00
Mandy Chung
d414a7e832 8007703: Remove com.sun.servicetag API
Reviewed-by: dholmes, alanb, erikj
2013-03-25 17:19:16 -07:00
Christian Thalinger
6964a690ed 7198429: need checked categorization of caller-sensitive methods in the JDK
Reviewed-by: kvn, jrose
2013-03-25 17:13:26 -07:00
Michael Fang
fa35aeb6eb 8010521: jdk8 l10n resource file translation update 2
Reviewed-by: naoto, yhuang
2013-03-25 16:55:14 -07:00
Michael Fang
9309aac697 8010521: jdk8 l10n resource file translation update 2
Reviewed-by: naoto, yhuang
2013-03-25 16:53:02 -07:00
Michael Fang
3c711cf801 8010521: jdk8 l10n resource file translation update 2
Reviewed-by: naoto, yhuang
2013-03-25 16:49:25 -07:00
Bharadwaj Yadavalli
0e9d409036 8009552: test/vm/verifier/TestStaticIF.java failing with hs25.0-b
Remove support for verification of class files with version 52 and above from type inference verifier.

Reviewed-by: acorn, hseigel
2013-03-25 09:36:15 -07:00
Bill Pittore
c3647bf3a6 8010668: builtin JNI libraries should not be unloaded
Reviewed-by: chegar, alanb
2013-03-25 14:29:13 +00:00
Athijegannathan Sundararajan
61c8affcc1 8010704: The test closed/java/lang/SecurityManager/CheckPackageDefinition.java failed after fix for 8009869
Reviewed-by: lagergren, hannesw
2013-03-25 19:25:01 +05:30
Athijegannathan Sundararajan
a9423b7ebf 8010709: org on the top level doesn't resolve
Reviewed-by: lagergren, hannesw
2013-03-25 18:20:16 +05:30
Harold Seigel
41f0004e4f 8010667: Non-zero padding is not allowed in splitverifier for tableswitch/lookupswitch instructions
Don't check the padding bits if class file version is >= 51.

Reviewed-by: kvn, dholmes, coleenp
2013-03-25 08:37:28 -04:00
Marcus Lagergren
897aab045e 8017010: index evaluation to a temporary location for index operator much change temporaries to slots, but never scoped vars
Reviewed-by: hannesw, sundar
2013-03-25 12:01:06 +01:00
Stefan Karlsson
bed324d7f9 Merge 2013-03-25 11:00:19 +01:00
Morris Meyer
e4b1cf5f02 Merge 2013-03-24 12:43:13 -07:00
Christian Tornqvist
ca4e4e41da Merge 2013-03-24 09:21:37 +01:00
Christian Tornqvist
c458eb3fd6 8008454: test/runtime/NMT/PrintNMTStatistics is broken
Added @run tag so that it actually runs the test, also fixed broken command line and incorrect parsing. Also reviewed by gerard.ziemski@oracle.com

Reviewed-by: mgerdin, zgu
2013-03-24 09:11:55 +01:00
Daniel D. Daugherty
05b3bc59c3 Merge 2013-03-23 22:35:02 -07:00
Joseph Provino
9d5464dd87 Merge 2013-03-23 14:59:02 -04:00
Alejandro Murillo
196cd6601b 8010498: new hotspot build - hs25-b25
Reviewed-by: jcoomes
2013-03-23 10:06:34 -07:00
Morris Meyer
981e9c35c9 8009026: [parfait] Null pointer deference in hotspot/src/share/vm/code/nmethod.cpp
Add guarantee() to nmethod constructor and checks to ensure CodeCache has space before allocation

Reviewed-by: kvn
2013-03-23 06:22:07 -07:00
Alejandro Murillo
9afb5dba83 Added tag hs25-b24 for changeset 5f89974cce81 2013-03-23 01:47:25 -07:00
Alejandro Murillo
dc09472ed0 Merge 2013-03-23 01:47:24 -07:00
Erik Helin
d67e393dd6 8009408: gc/metaspace/ClassMetaspaceSizeInJmapHeap.java fails with "exit code 1"
Reviewed-by: brutisso, sla, ctornqvi
2013-03-23 09:16:37 +01:00
John Cuthbertson
9c89e6d28a 8010463: G1: Crashes with -UseTLAB and heap verification
Some parts of the G1 heap can only be walked during a safepoint. Skip verifying these parts of the heap when verifying during JVM startup.

Reviewed-by: brutisso, tschatzl
2013-03-29 13:49:37 -07:00
Thomas Schatzl
bb5bd507d7 7112912: Message "Error occurred during initialization of VM" on boxes with lots of RAM
Ergonomics now also takes available virtual memory into account when deciding for a heap size. The helper method to determine the maximum allocatable memory block now uses the appropriate OS specific calls to retrieve available virtual memory for the java process. In 32 bit environments this method now also searches for the maximum actually reservable amount of memory. Merge previously separate implementations for Linux/BSD/Solaris into a single method.

Reviewed-by: jmasa, tamao
2013-03-27 19:21:18 +01:00
Mikael Gerdin
89120e7827 7014552: gc/lock/jni/jnilockXXX works too slow on 1-processor machine
Keep a counter of how many times we were stalled by the GC locker, add a diagnostic flag which sets the limit.

Reviewed-by: brutisso, ehelin, johnc
2013-03-28 10:27:28 +01:00
Weijun Wang
5f08966515 8009875: Provide a default udp_preference_limit for krb5.conf
Reviewed-by: valeriep
2013-03-23 11:49:39 +08:00
Weijun Wang
87b698f394 8009970: Several LoginModule classes need extra permission to load AuthResources
Reviewed-by: mullan
2013-03-23 11:49:28 +08:00
Vladimir Danushevsky
85009b165f Merge 2013-03-22 17:23:31 -07:00
Attila Szegedi
7188961426 8010652: Eliminate non-child references in Block/FunctionNode, and make few node types immutable
Reviewed-by: jlaskey, lagergren
2013-03-23 00:58:39 +01:00
Stefan Karlsson
85a6adbce2 Merge 2013-03-22 12:32:09 -07:00
Bharadwaj Yadavalli
69a1275cf2 Merge 2013-03-22 13:35:31 -04:00
Joe Darcy
d54accaf5c 7080464: langtools regression test failures when assertions are enabled
Reviewed-by: jjg
2013-03-22 10:08:46 -07:00
Denis Fokin
439ddacaac 7123476: DesktopOpenTests:When enter the file path and click the open button,it crash
Reviewed-by: art, anthony
2013-03-22 19:56:20 +04:00
Erik Helin
902be4665b 8000754: NPG: Implement a MemoryPool MXBean for Metaspace
Reviewed-by: jmasa, stefank
2013-03-22 16:10:01 +01:00
Bharadwaj Yadavalli
6132db352d 8009539: JVM crash when run lambda testng tests
Ensure class pointer is non-null before dereferencing it to check if it is loaded.

Reviewed-by: kvn
2013-03-22 07:58:55 -07:00
Joseph Provino
7db9e6c7cc Merge 2013-03-22 10:09:47 -04:00
Erik Helin
1c46d9bac2 8004172: Update jstat counter names to reflect metaspace changes
Reviewed-by: mchung
2013-03-22 15:01:24 +01:00
Erik Helin
445664ec52 8005116: NPG: Rename -permstat option for jmap in jdk8 to -clstats
Reviewed-by: jmasa, sla
2013-03-22 15:01:14 +01:00
Maurizio Cimadamore
7ee4846b45 8010387: Javac crashes when diagnostic mentions anonymous inner class' type variables
Rich formatter doesn't preprocess supertypes of an anonymous inner class

Reviewed-by: jjg
2013-03-22 12:44:48 +00:00
Maurizio Cimadamore
2b66afe14d 8010303: Graph inference: missing incorporation step causes spurious inference error
Multiple equality constraints on inference vars are not used to generate new inference constraints

Reviewed-by: jjg
2013-03-22 12:43:09 +00:00
Maurizio Cimadamore
710a687c15 8009820: AssertionError when compiling java code with two identical static imports
Speculative attribution is carried out twice with same method symbol in case of static imports

Reviewed-by: jjg
2013-03-22 12:41:13 +00:00
Maurizio Cimadamore
cec722fe8f 8010101: Intersection type cast issues redundant unchecked warning
Code for checking intersection type cast is incorrectly swapping operands, leading to spurious warnings

Reviewed-by: jjg
2013-03-22 12:39:34 +00:00
Maurizio Cimadamore
2454c8c5ae 8009649: Lambda back-end should generate invokespecial for method handles referring to private instance methods
Private lambda methods should be accessed through invokespecial

Reviewed-by: jjg
2013-03-22 12:38:12 +00:00
Weijun Wang
debc12e19e 8010531: Add BadKdc* tests to problem list for solaris-sparcv9
Reviewed-by: alanb
2013-03-22 19:59:14 +08:00
Stefan Karlsson
2f7b91d2f5 Merge 2013-03-22 10:32:21 +01:00
Roland Westrelin
15178005e6 Merge 2013-03-21 22:00:14 -07:00
Morris Meyer
8d607b2446 Merge 2013-03-21 21:48:56 -07:00
Ioi Lam
ba67f14480 8010389: After fix for 7107135 a failed dlopen() call results in a VM crash
Call dlerror() in VM thread as necessary.

Reviewed-by: coleenp, dholmes
2013-03-21 20:46:46 -07:00
Bradford Wetmore
9b5ebab5f6 8009517: new code changes causing errors in old build (-Werror) environment
Reviewed-by: mduigou
2013-03-21 16:31:48 -07:00
Erik Helin
5391834dcf 8009427: Re-enable tests that were disable to ease complicated push
Reviewed-by: sla, mchung, dcubed
2013-03-21 20:35:49 +01:00
Martin Buchholz
edcaf23233 8010316: Improve handling of char sequences containing surrogates
Fix and optimize codePointAt, codePointBefore and similar methods

Reviewed-by: sherman, okutsu, ulfzibis, kizune
2013-03-26 13:36:51 -07:00
Martin Buchholz
2a57075d85 8007905: To add a system property to create zip file without using ZIP64 end table when entry count > 64k
Provide a system property to inhibit ZIP64 mode for >64k entries

Reviewed-by: alanb, sherman
2013-03-26 13:34:54 -07:00
David Katleman
0fbaf75ff1 Added tag jdk8-b82 for changeset fd698c5ee684 2013-03-21 10:43:41 -07:00
David Katleman
58859413d3 Added tag jdk8-b82 for changeset db9ac0924815 2013-03-21 10:43:39 -07:00
David Katleman
6219b24111 Added tag jdk8-b82 for changeset 744dd8193801 2013-03-21 10:43:23 -07:00
David Katleman
c9e41a6238 Added tag jdk8-b82 for changeset d5a7172af7df 2013-03-21 10:43:09 -07:00
David Katleman
fd6ca911a5 Added tag jdk8-b82 for changeset 11e0f924d1ba 2013-03-21 10:43:06 -07:00
David Katleman
65547b27ff Added tag jdk8-b82 for changeset 3826413d5c5b 2013-03-21 10:42:51 -07:00
David Katleman
c8f1a1b8e2 Added tag jdk8-b82 for changeset e2239e25e90a 2013-03-21 10:42:42 -07:00
David Katleman
d04381e427 Added tag jdk8-b82 for changeset caa9b4e63aab 2013-03-21 10:42:22 -07:00
Rob McKenna
8eecfc7522 8009251: Add proxy handling and keep-alive fixes to jsse
Reviewed-by: chegar
2013-03-21 17:33:15 +00:00
Morris Meyer
6c55facb77 8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp
Added guarantee() to print_entry_on()

Reviewed-by: kvn
2013-03-21 10:13:56 -07:00
Morris Meyer
85aa7836de 8009584: [parfait] Null pointer deference in hotspot/src/cpu/x86/vm/relocInfo_x86.cpp
Added guarantee() to pd_address_in_code()

Reviewed-by: kvn
2013-03-21 10:11:24 -07:00
Joseph Provino
9bf86a475e 8009904: jvmtiClassFileReconstituter.cpp needs to be excluded from the minimal jvm
JvmtiClassFileReconstituter.cpp needs to be added to the list of files to exclude when JVMTI is excluded from the jvm

Reviewed-by: dholmes, sspitsyn
2013-03-21 10:18:05 -04:00
Zhengyu Gu
661b263eb2 Merge 2013-03-21 06:53:53 -07:00
Athijegannathan Sundararajan
0f8bf3e7c3 8009869: Need to modify java.security property package.access to include nashorn packages
Reviewed-by: ahgross, jlaskey, lagergren
2013-03-21 19:19:08 +05:30
Alexander Scherbatiy
d089002460 8007146: [macosx] Setting a display mode crashes JDK under VNC
Reviewed-by: serb
2013-03-21 16:50:35 +04:00
Thomas Wuerthinger
06ef4cddf7 7153771: array bound check elimination for c1
When possible optimize out array bound checks, inserting predicates when needed.

Reviewed-by: never, kvn, twisti
2013-03-21 09:27:54 +01:00
Mikael Gerdin
6bec5bf02c 8004241: NPG: Metaspace occupies more memory than specified by -XX:MaxMetaspaceSize option
Enforce MaxMetaspaceSize for both metaspace parts, check MaxMetaspaceSize against "reserved", not "capacity"

Reviewed-by: jmasa, johnc
2013-03-21 09:07:43 +01:00
Daniel D. Daugherty
ff91250bd2 Merge 2013-03-20 20:52:00 -07:00
Ron Durbin
a003234ac8 8010396: checking MallocMaxTestWords in testMalloc() function is redundant
Remove redundant checks in testMalloc and add assert.

Reviewed-by: dcubed, coleenp, dholmes
2013-03-20 20:44:54 -07:00
Jen Dority
1f24cdd86c 8006818: SunEC and SunPKCS11 providers should be in all profiles
Reviewed-by: dholmes, alanb, valeriep
2013-03-20 22:39:51 -04:00
Joe Darcy
08c578cdcf 8010364: Clarify javax.lang.model API for Type Annotations
Reviewed-by: jjg, abuckley
2013-03-20 17:41:40 -07:00
Christian Thalinger
2f4ecb86a2 8006965: remove test_gamma and add dedicated test_* targets instead
Reviewed-by: kvn, jcoomes
2013-03-20 17:04:45 -07:00
Joe Darcy
e91d6c8f4d 8010427: Refine Method.isDefault implementation
Reviewed-by: acorn, dlsmith
2013-03-20 15:21:14 -07:00
Christian Tornqvist
b7d738913e 8007982: some runtime/CommandLine/ tests fail on 32-bit platforms
Changed tests to use platform independent flags

Reviewed-by: collins, hseigel, zgu
2013-03-20 20:40:57 +01:00
Tao Mao
0268771fc4 7196080: assert(max_heap >= InitialHeapSize) in arguments.cpp
Remove the related assertions becasue they do not hold here.

Reviewed-by: jmasa, tschatzl
2013-03-20 12:27:03 -07:00
Mandy Chung
c9e6a41b99 8006104: Improve tests to test ".useParentHandlers" property set in the logging configuration
Reviewed-by: alanb
2013-03-20 09:50:07 -07:00
Anton Litvinov
58a945da1c 6550588: java.awt.Desktop cannot open file with Windows UNC filename
Reviewed-by: art, uta
2013-03-20 20:41:03 +04:00
Karen Kinnear
6009be79b3 Merge 2013-03-20 12:20:10 -04:00
Sean Mullan
02374952e1 Merge 2013-03-20 12:06:30 -04:00
Karen Kinnear
cfb7431cca 8010017: lambda: reflection get(Declared)Methods support for default methods
Don't expose vm generated overpass (bridges to default methods).

Reviewed-by: dholmes, fparain
2013-03-20 11:43:56 -04:00
Sean Mullan
b587bc4185 Merge 2013-03-20 11:23:16 -04:00
Sean Mullan
198ae0916d 8010112: NullPointerException in sun.security.provider.certpath.CertId()
Reviewed-by: vinnie
2013-03-20 10:58:20 -04:00
Chris Hegarty
9df17fd446 8010282: sun.net.www.protocol.jar.JarFileFactory.close(JarFile) should be thread-safe
Reviewed-by: khazra, alanb
2013-03-20 14:39:20 +00:00
Morris Meyer
a62f572a50 8009181: [parfait] Null pointer deference in hotspot/src/share/vm/opto/loopTransform.cpp
Add guarantee() to insert_pre_post_loops()

Reviewed-by: kvn
2013-03-20 07:05:40 -07:00
Zhengyu Gu
b799726f35 8009298: NMT: Special version of class loading/unloading with runThese stresses out NMT
8009777: NMT: add new NMT dcmd to control auto shutdown option

Added diagnostic VM option and DCmd command to allow NMT stay alive under stress situation

Reviewed-by: dcubed, coleenp
2013-03-20 09:42:48 -04:00
Morris Meyer
09098aff2f 8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp
Add guarantee() to disqualify_method()

Reviewed-by: kvn
2013-03-20 06:38:27 -07:00
Morris Meyer
5082c639fd 8009565: [partfait] Null pointer deference in hotspot/src/share/vm/ci/ciEnv.cpp
Add guarantee() to get_instance_klass_for_declared_method_holder()

Reviewed-by: kvn
2013-03-20 06:36:04 -07:00
Morris Meyer
eaa8ade37a 8009248: [parfait] Null pointer deference in hotspot/src/share/vm/code/compiledIC.cpp
Add guarantee() to set_to_interpreted()

Reviewed-by: kvn
2013-03-20 06:32:49 -07:00
Coleen Phillimore
e21f2d67e1 8008217: CDS: Class data sharing limits the malloc heap on Solaris
In 64bit VM move CDS archive address to 32G on all platforms using new flag SharedBaseAddress.  In 32bit VM set CDS archive address to 3Gb on Linux and let other OSs pick the address.

Reviewed-by: kvn, dcubed, zgu, hseigel
2013-03-20 08:04:54 -04:00
Konstantin Shefov
f61a46ce67 8009880: TEST_BUG: Test java/beans/Introspector/TestTypeResolver.java should be modified again
Reviewed-by: malenkov, alexsch
2013-03-20 14:02:25 +04:00
Alexey Utkin
97927be30a 8006193: (process) Clean-up java.lang.ProcessImpl.finalize, does not need to be public
Reviewed-by: alanb
2013-03-20 13:21:53 +04:00
Christian Tornqvist
3277de9dad 8010084: Race in runtime/NMT/BaselineWithParameter.java
Added a waitFor() on the process

Reviewed-by: mgerdin, sla, zgu
2013-03-20 08:17:55 +01:00
Jonathan Gibbons
d4e9a74af5 8010317: DocLint incorrectly reports some <pre> tags as empty
Reviewed-by: darcy
2013-03-19 19:16:59 -07:00
Jonathan Gibbons
622349cdb1 8010333: Remove com.sun.tools.javac.Server
Reviewed-by: darcy
2013-03-19 17:05:57 -07:00
Jonathan Gibbons
ab8f7a3762 8010361: fix some langtools findbugs issues
Reviewed-by: darcy
2013-03-19 17:04:03 -07:00
Morris Meyer
c3114a34ee Merge 2013-03-19 16:31:10 -07:00
Brian Goetz
5b1cca1b96 8001642: Add Optional<T>, OptionalDouble, OptionalInt, OptionalLong
Reviewed-by: mduigou, darcy, alanb, jjb
2013-03-19 16:05:34 -07:00
Jonathan Gibbons
a52c1dd51a 8010315: doclint errors in javac public API
Reviewed-by: darcy
2013-03-19 15:13:44 -07:00
Joe Darcy
479d5c83b0 8010179: Remove transitional target values from javac
Reviewed-by: jjg, mcimadamore
2013-03-19 13:10:40 -07:00
Morris Meyer
25c4a7fccd 8008811: [parfait] Null pointer deference in hotspot/src/share/vm/opto/loopopts.cpp
Add guarantee() checks

Reviewed-by: kvn
2013-03-19 12:15:35 -07:00
Morris Meyer
c6d91fa2d9 8009022: [parfait] Null pointer deference in hotspot/src/share/vm/oops/generateOopMap.cpp
Add guarantee() checks to merge_state_into_bb()

Reviewed-by: kvn
2013-03-19 11:49:36 -07:00
Ron Durbin
f4bcfd04ca 7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
7123945: runtime/6878713/Test6878713.sh require about 2G of native memory, swaps and times out

Add new diagnostic option -XX:MallocMaxTestWords=NNN and fix Test6878713.sh.

Reviewed-by: dcubed, coleenp, dholmes, iklam
2013-03-19 11:33:11 -07:00
Vladimir Kozlov
3679ebdd7d 8010222: 8007439 disabled inlining of cold accessor methods
Added missing parenthesis

Reviewed-by: jrose
2013-03-19 10:56:33 -07:00
John Cuthbertson
a8087d1cb6 8008301: G1: guarantee(satb_mq_set.completed_buffers_num() == 0) failure
If the marking stack overflows while the marking tasks are draining the SATB buffers, remark will exit with some SATB buffers left unprocessed. Relax the guarantee to allow for overflow.

Reviewed-by: jmasa, brutisso
2013-03-19 09:38:37 -07:00
Omair Majid
2e4abcea23 8010277: Configure doesn't fail when Xrender.h is missing
Reviewed-by: andrew
2013-03-19 11:25:05 -04:00
Morris Meyer
7e6a92e08b 8008663: [parfait] Null pointer deference in hotspot/src/share/vm/compiler/compileBroker.cpp
Add NULL checks for compiler name

Reviewed-by: twisti, kvn
2013-03-19 07:23:29 -07:00
Morris Meyer
887dd2634c 8009172: [parfait] Null pointer deference in hotspot/src/share/vm/opto/output.cpp
Add guarantee() to DoScheduling()

Reviewed-by: twisti, kvn
2013-03-19 07:20:15 -07:00
Pavel Stepanov
e4b8273cc6 8009969: CodeCoverage should use template
Reviewed-by: jlaskey, sundar
2013-03-19 11:03:24 -03:00
Konstantin Shefov
57215b1938 8009881: TEST_BUG: javax/swing/JTree/8004298/bug8004298.java should be modified
Reviewed-by: serb, alexsch
2013-03-19 17:51:52 +04:00
Yunda
3630c6a127 8009457: SA: A small fix on "scanoops" command in CLHSDB
Reviewed-by: sla, coleenp, kmo
2013-03-19 13:44:26 +01:00
Yunda
4fdb8216ac 8009456: SA: typeToVtbl of BasicTypeDataBase should not be static
Reviewed-by: coleenp, sla
2013-03-19 13:41:05 +01:00
Niclas Adlertz
e6e67652d9 8010121: Remove definition of ShouldNotReachHere2(msg)
Reviewed-by: kvn, stefank, rbackman, twisti
2013-03-19 10:31:16 +01:00
John Cuthbertson
9164834d73 8009940: G1: assert(_finger == _heap_end) failed, concurrentMark.cpp:809
Skip reference processing if the global marking stack overflows during remark. Refactor and rename set_phase(); move code that sets the concurrency level into its own routine. Do not call set_phase() from within parallel reference processing; use the concurrency level routine instead. The marking state should only set reset by CMTask[0] during the concurrent phase of the marking cycle; if an overflow occurs at any stage during the remark, the marking state will be reset after reference processing.

Reviewed-by: brutisso, jmasa
2013-03-19 00:57:39 -07:00
Jonathan Gibbons
2b3155346c 8007803: Implement javax.lang.model API for Type Annotations
Reviewed-by: darcy
2013-03-18 18:34:44 -07:00
Jonathan Gibbons
49d55f9300 8007803: Implement javax.lang.model API for Type Annotations
Reviewed-by: darcy
2013-03-18 18:33:13 -07:00
David Holmes
4bb3e82052 8008783: Modifications needed to JPRT to allow for building hard float abi and new bundle changes
Reviewed-by: twisti, collins, bobv, jwilhelm
2013-03-18 19:34:35 -04:00
Jonathan Gibbons
0e8a3df6c7 8008425: Remove interim new javax.lang.model API for type-annotations
Reviewed-by: darcy
2013-03-18 14:40:32 -07:00
John Zavgren
08e50cc4ce 8007607: security native code doesn't always use malloc, realloc, and calloc correctly
Reviewed-by: chegar, dsamersoff, valeriep
2013-03-18 14:21:13 -04:00
David Holmes
8c5749843c 8009426: "profiles" target fails due to nashorn if "images" is not built first
Reviewed-by: alanb
2013-03-19 06:01:14 -04:00
Staffan Larsen
f716ccd343 8006637: Failure to filter out native frame events on Solaris
Test is confused by other threads calling String.intern(). Add a thread filter to avoid this.

Reviewed-by: sspitsyn, alanb
2013-03-19 09:53:36 +01:00
Sergey Bylokhov
285ce3709b 8000435: [macosx] Button painting error under Java 7 on Mac
Reviewed-by: denis, alexsch
2013-03-18 22:10:11 +04:00
John Cuthbertson
d41c0fce7f 8009536: G1: Apache Lucene hang during reference processing
In CMTask::do_marking_step(), Skip offering termination and entering the first and second synchronization barriers if called from a serial context, i.e. the VM thread.

Reviewed-by: brutisso, tschatzl
2013-03-18 11:05:27 -07:00
Roland Westrelin
e6dc6a3b3a Merge 2013-03-18 09:08:07 -07:00
Peter Jensen
1e91824535 8005220: RFE to write javap tests for repeating annotations
Reviewed-by: jjg
2013-03-18 08:46:09 -07:00
Athijegannathan Sundararajan
c846064c8f 8010199: javax.script.Invocable implementation for nashorn does not return null when matching functions are missing
Reviewed-by: lagergren, jlaskey
2013-03-18 21:03:11 +05:30
Omair Majid
7b22402218 8010030: Allow configure to detect if EC implementation is present
Reviewed-by: andrew, dholmes
2013-03-18 10:47:37 -04:00
Omair Majid
35dc8be1bf 8010030: Allow configure to detect if EC implementation is present
Reviewed-by: andrew, dholmes
2013-03-18 10:46:49 -04:00
Roland Westrelin
8f1814d874 8008555: Debugging code in compiled method sometimes leaks memory
Support for strings that have same life-time as code that uses them.

Reviewed-by: kvn, twisti
2013-03-18 13:19:06 +01:00
Igor Ignatyev
51c733dfb1 8008211: Some of WB tests on compiler fail
Reviewed-by: kvn, vlivanov
2013-03-18 04:29:08 -07:00
Stefan Karlsson
d4f955a545 Merge 2013-03-18 09:34:58 +01:00
Daniel D. Daugherty
58cc8b00f9 Merge 2013-03-17 08:57:56 -07:00
Bob Vandette
a28a83c4ed Merge 2013-03-17 06:30:45 -07:00
Chris Hegarty
bb303a20ef 8010142: ProblemList.txt updates (3/2013)
Reviewed-by: alanb
2013-03-17 09:55:03 +00:00
Krystal Mo
d824b431de Merge 2013-03-16 21:44:52 -07:00
Morris Meyer
2cd055b0b2 8010144: [parfait] Null pointer deference in hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
Add null check to signal handler

Reviewed-by: dcubed
2013-03-16 07:41:09 -07:00
Morris Meyer
e98f593fb0 8008328: [partfait] Null pointer defererence in hotspot/src/cpu/x86/vm/frame_x86.inline.hpp
Add guarantee() to oop_result inlines

Reviewed-by: kvn, twisti
2013-03-16 07:40:36 -07:00
Morris Meyer
5b72922058 8009156: [parfait] Null pointer deference in hotspot/src/share/vm/services/memoryService.cpp
Add guarantee() to add_generation_memory_pool()

Reviewed-by: kvn, twisti
2013-03-16 07:39:57 -07:00
Morris Meyer
f8081de006 8009166: [parfait] Null pointer deference in hotspot/src/share/vm/opto/type.cpp
Add guarantee() to as_instance_type()

Reviewed-by: kvn, twisti
2013-03-16 07:39:14 -07:00
Lana Steuck
582c062a6d Merge 2013-03-15 23:46:14 -07:00
Lana Steuck
2dc10d360a Merge 2013-03-15 23:08:07 -07:00
Yunda
f27f7d4c57 8008796: SA: Oop.iterateFields() should support CompressedKlassPointers again
Add a missing change from JDK-7054512 so that Oop.iterateFields() works with UseCompressedKlassPointers

Reviewed-by: coleenp, roland
2013-03-15 22:07:42 -07:00
Morris Meyer
c1d6693fcb Merge 2013-03-15 18:44:08 -07:00
Zhengyu Gu
dcd1fc358f Merge 2013-03-15 17:12:17 -07:00
Lana Steuck
0506e249ad Merge 2013-03-15 16:39:07 -07:00
Ioi Lam
6f76ade8e1 8007725: NPG: Klass::restore_unshareable_info() triggers assert(k->java_mirror() == NULL)
Check for exception during SystemDictionary::resolve_instance_class_or_null() and clean up.

Reviewed-by: coleenp, acorn, hseigel, minqi
2013-03-15 17:24:40 -04:00
Bill Pittore
f5f5775dc3 8005716: Enhance JNI specification to allow support of static JNI libraries in Embedded JREs
Reviewed-by: dlong, alanb, mduigou
2013-03-15 15:20:40 -04:00
Alejandro Murillo
54485169dd 8010105: new hotspot build - hs25-b24
Reviewed-by: jcoomes
2013-03-15 11:44:33 -07:00
Alejandro Murillo
943bd88ce1 Added tag hs25-b23 for changeset 57159db35c41 2013-03-15 11:18:40 -07:00
Alejandro Murillo
593a00095a Merge 2013-03-15 11:18:39 -07:00
Athijegannathan Sundararajan
5aea724d29 8010145: removed workaround "init.js" in nashorn repo
Reviewed-by: jlaskey, lagergren
2013-03-15 21:52:40 +05:30
Zhengyu Gu
10a02b0e2c 8009614: nsk/split_verifier/stress/ifelse/ifelse002_30 fails with 'assert((size & (granularity - 1)) == 0) failed: size not aligned to os::vm_allocation_granularity()
Align up vm allocation size to os defined granularity

Reviewed-by: dholmes, coleenp
2013-03-15 11:53:28 -04:00
Marcus Lagergren
e05970ca52 8010147: Forgot to add EXPECTED files for lazy and eager sunspider test
Reviewed-by: sundar, jlaskey
2013-03-15 16:07:13 +01:00
Alexander Scherbatiy
ccff358962 8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX
Reviewed-by: serb, alexp
2013-03-15 17:02:24 +04:00
Matherey Nunez
cd78ad2c8a 8007767: TargetAnnoCombo.java need to be updated to add a new test mode
Reviewed-by: jjg, strarup
2013-03-15 13:39:04 +01:00
Stefan Karlsson
6567b83f0d Merge 2013-03-15 04:39:05 -07:00
Vicente Romero
a7e53ae56d 5053846: javac: MethodRef entries are duplicated in the constant pool
Reviewed-by: mcimadamore
2013-03-15 09:02:26 +00:00
Stefan Karlsson
35177d7db2 Merge 2013-03-15 08:57:55 +01:00
Robert Field
46e9ef69a7 8010010: NPE generating serializedLambdaName for nested lambda
Reviewed-by: mcimadamore
2013-03-14 22:54:17 -07:00
Lana Steuck
e261fe353f Merge 2013-03-14 19:33:29 -07:00
Lana Steuck
bca41270b5 Merge 2013-03-14 19:33:29 -07:00
Lana Steuck
c088a428f4 Merge 2013-03-14 19:33:24 -07:00
Lana Steuck
9ebc4f39bc Merge 2013-03-14 19:33:23 -07:00
Lana Steuck
128c2160bd Merge 2013-03-14 19:26:39 -07:00
Lana Steuck
3c9fec70eb Merge 2013-03-14 19:26:02 -07:00
Krystal Mo
2da4942a52 Merge 2013-03-14 16:17:58 -07:00
Morris Meyer
5b2fed9809 Merge 2013-03-14 16:16:05 -07:00
David Katleman
6b708cf6e0 Added tag jdk8-b81 for changeset a7ab085069a9 2013-03-14 15:00:41 -07:00
David Katleman
4e8c9ce308 Added tag jdk8-b81 for changeset 86a86261de2b 2013-03-14 15:00:33 -07:00
David Katleman
db8bf59fdf Added tag jdk8-b81 for changeset 9597171cffbd 2013-03-14 15:00:28 -07:00
David Katleman
8d2d630525 Added tag jdk8-b81 for changeset 4f3da455d5f5 2013-03-14 15:00:26 -07:00
David Katleman
82f7d021b6 Added tag jdk8-b81 for changeset 25c319ff4cf4 2013-03-14 15:00:19 -07:00
David Katleman
4606c00f0d Added tag jdk8-b81 for changeset f2ef1e5c2955 2013-03-14 15:00:09 -07:00
David Katleman
7866abdf81 Added tag jdk8-b81 for changeset 13e9af9186a2 2013-03-14 15:00:05 -07:00
Krystal Mo
79eaa97ca4 8010116: Abstract_VM_Version::internal_vm_info_string() should recognize VS2010 and VS2012
Add cases for _MSC_VER == 1600 and 1700

Reviewed-by: zgu
2013-03-14 13:22:04 -07:00
Naoto Sato
96ca9c4174 8008576: Calendar mismatch using Host LocaleProviderAdapter
Reviewed-by: okutsu
2013-03-14 11:29:16 -07:00
Mandy Chung
857b7efb96 8005428: Update jdeps to read the same profile information as by javac
Reviewed-by: alanb
2013-03-14 10:33:31 -07:00
Yiming Wang
a7f501c620 7183800: TEST_BUG: Update tests to run on Ubuntu 12.04 (localhost is 127.0.1.1)
Reviewed-by: alanb, chegar
2013-03-14 16:59:06 +00:00
Vladimir Danushevsky
aa78ad11f8 Merge 2013-03-14 12:49:05 -04:00
Bill Pittore
b938257957 8005716: Enhance JNI specification to allow support of static JNI libraries in Embedded JREs
Co-authored-by: Bob Vandette <bob.vandette@oracle.com>
Reviewed-by: dlong, alanb, mduigou
2013-03-14 16:03:10 +00:00
Morris Meyer
46a623ec88 8008560: [parfait] Null pointer deference in hotspot/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp
Add null pointer check in signal handler

Reviewed-by: kvn
2013-03-14 07:44:18 -07:00
Joseph Provino
2e15c5911f Merge 2013-03-14 10:37:23 -04:00
Marcus Lagergren
2aeaf10fff 8009982: Lazy execution bugfix. Added lazy sunspider unit test. Added mandreel to compile-octane test. Fixed warnings
Reviewed-by: sundar, jlaskey
2013-03-14 14:49:55 +01:00
Thomas Schatzl
e1df78e390 6733980: par compact - TraceGen1Time always shows 0.0000 seconds
Use the correct collector to retrieve accumulated gen1 trace time

Reviewed-by: johnc, jmasa
2013-03-14 09:37:38 +01:00
Mikael Gerdin
a4a4c34e96 8005602: NPG: classunloading does not happen while CMS GC with -XX:+CMSClassUnloadingEnabled is used
Call purge() on CLDG after sweep(), reorder purge() call in GenCollectedHeap

Reviewed-by: jmasa, stefank
2013-03-14 10:54:44 +01:00
Vicente Romero
4ef6ef5d0f 8008582: jtreg failures after conversion of shell tests to Java
Reviewed-by: jjg
2013-03-14 08:30:16 +00:00
Sergey Malenkov
be64bfbaad 8000183: 7163696: JCK Swing interactive test JScrollBarTest0013 fails with Nimbus and GTK L&Fs
Reviewed-by: alexsch, serb
2013-03-14 12:15:17 +04:00
Yumin Qi
be1b5fc17e 8003348: SA can not read core file on OS
Macosx uses Mach-O file format for binary files, not ELF format. Currently SA works on core files on other platforms, t his change enables SA work on core file generated on Darwin.

Reviewed-by: sla, sspitsyn
2013-03-14 00:33:08 -07:00
Lana Steuck
f0e73ec3ba Merge 2013-03-13 23:39:49 -07:00
Lana Steuck
aeddcfd53b Merge 2013-03-13 23:21:35 -07:00
David Holmes
8f4f6fa24a 8009429: Miscellaneous profiles cleanup
8009428: Revert changes to $ substitution performed as part of nashorn integration

Reviewed-by: alanb, erikj
2013-03-14 01:47:59 -04:00
David Holmes
52954e063d 8009429: Miscellaneous profiles cleanup
Reviewed-by: jjg, alanb
2013-03-14 01:45:44 -04:00
David Holmes
d1bf476e1d 8009428: Revert changes to $ substitution performed as part of nashorn integration
Reviewed-by: alanb, erikj
2013-03-14 01:41:20 -04:00
Stuart Douglas
bafe2383ad 8009650: HttpClient available() check throws SocketException when connection has been closed
Reviewed-by: chegar, khazra, dsamersoff
2013-03-14 00:21:34 +00:00
Dan Xu
f3e45cd062 8001334: Remove use of JVM_* functions from java.io code
Replace JVM_* functions with direct system calls in java io area

Reviewed-by: alanb, uta, martin
2013-03-13 14:50:40 -07:00
Bhavesh Patel
82210b98a8 8009684: Default top left frame should be "All Packages" in the generated javadoc documentation
Reviewed-by: jjg
2013-03-13 14:47:15 -07:00
Coleen Phillimore
c5867cb71b 8003419: NPG: Clean up metadata created during class loading if failure
Store metadata on ClassFileParser instance to be cleaned up by destructor.  This enabled some refactoring of the enormous parseClassFile function.

Reviewed-by: jmasa, acorn
2013-03-13 17:34:29 -04:00
Joel Borggrén-Franck
09e3f06ae6 8006547: Repeating annotations: No Target on container annotation with all targets on base annotation gives compiler error
Reviewed-by: jjg
2013-03-13 22:03:09 +01:00
Coleen Phillimore
b243475fd2 8009829: CDS: JDK JPRT test fails crash in Symbol::equals()
-Xshare:dump was creating a Symbol in C_heap.  There's an assert there that jdk jprt wasn't hitting because it was only done in product

Reviewed-by: dholmes, hseigel, iklam
2013-03-13 15:15:56 -04:00
Coleen Phillimore
65206f2480 Merge 2013-03-13 13:47:35 -04:00
Jim Gish
709f67b8f9 8002070: Remove the stack search for a resource bundle for Logger to use
The fragile, vulnerable, stack crawling has been eliminated from findResourceBundle(String)

Reviewed-by: mchung, alanb
2013-03-13 11:24:48 -04:00
Alan Bateman
0bcb468549 8009751: (se) Selector spin when select, close and interestOps(0) invoked at same time (lnx)
Reviewed-by: zhouyx, chegar, robm
2013-03-13 17:58:45 +00:00
Coleen Phillimore
70b26044ba 8009836: nsk/regression/b4222717 fails with empty stack trace
Some zeroing was missed for bug 8003553, causing empty stack traces and Xcom crashes, add back zeroing to metablock

Reviewed-by: dholmes, rbackman
2013-03-13 09:10:35 -04:00
Alexey Utkin
b8b487dd5f 7190897: (fs) Files.isWritable method returns false when the path is writable (win)
The [GetEffectiveRightsFromAcl] based implementation was changed to the [AccessCheck] based.

Reviewed-by: alanb
2013-03-13 13:22:02 +04:00
Tim Bell
4d75d57692 8009819: build-infra: RE jdk8 build forest fails for windows since addition of --with-dxsdk
Reviewed-by: katleman
2013-03-12 22:08:13 -07:00
David Katleman
455fe4836b Merge 2013-03-12 19:19:09 -07:00
Lana Steuck
31330fc47a Merge 2013-03-12 19:04:49 -07:00
Lana Steuck
697213ff2f Merge 2013-03-12 18:22:55 -07:00
Lana Steuck
4d0bc0dc58 Merge 2013-03-12 18:22:40 -07:00
Lana Steuck
f3e16f597b Merge 2013-03-12 18:16:11 -07:00
Lana Steuck
babef4b53a Merge 2013-03-12 18:12:44 -07:00
Lana Steuck
407bc5f8c6 Merge 2013-03-12 16:43:53 -07:00
Lana Steuck
5adedccb9c Merge 2013-03-12 16:40:22 -07:00
Lana Steuck
0412d28787 Merge 2013-03-12 16:38:18 -07:00
Lana Steuck
a92ce06fe1 Merge 2013-03-12 16:38:11 -07:00
Lana Steuck
189059a474 Merge 2013-03-12 16:28:34 -07:00
Lana Steuck
ae7beed0c2 Merge 2013-03-12 16:26:06 -07:00
Bradford Wetmore
9e5da0ad31 8009925: Back out AEAD CipherSuites temporarily
Reviewed-by: valeriep
2013-03-12 15:31:49 -07:00
Jon Masamitsu
79c091f287 6976528: PS: assert(!limit_exceeded || softrefs_clear) failed: Should have been cleared
Reviewed-by: johnc
2013-03-12 11:00:49 -07:00
Bengt Rutisson
dbbea72a0a Merge 2013-03-13 05:14:43 +01:00
Joel Borggrén-Franck
4de6d2c42c 7196531: Duplicate error messages on repeating annotations
Reviewed-by: jjg
2013-03-12 17:39:34 +01:00
Maurizio Cimadamore
22e2c128a2 8009545: Graph inference: dependencies between inference variables should be set during incorporation
Move all transitivity checks into the incorporation round

Reviewed-by: jjg
2013-03-12 16:02:43 +00:00
Maurizio Cimadamore
69ee819808 8008540: Constructor reference to non-reifiable array should be rejected
8008539: Spurious error when constructor reference mention an interface type
8008538: Constructor reference accepts wildcard parameterized types

Overhaul of Check.checkConstructorRefType

Reviewed-by: jjg
2013-03-12 16:02:13 +00:00
Athijegannathan Sundararajan
d671cda73c 8009868: For loop with "true" as condition results in AssertionError in codegen
Reviewed-by: jlaskey, hannesw, lagergren
2013-03-12 21:17:47 +05:30
Harold Seigel
7d74801ce2 7154889: Non-zero padding is still not allowed in the tableswitch/lookupswitch instructions
Do not check that the padding bytes are zero if class file format version >=51.

Reviewed-by: dholmes, coleenp, mullan, kvn
2013-03-12 10:35:44 -04:00
Marcus Lagergren
1af08ef100 8009718: Lazy execution architecture continued - ScriptFunctionData is either final or recompilable. Moved ScriptFunctionData creation logic away from runtime to compile time. Prepared for method generation/specialization. Got rid of ScriptFunctionImplTrampoline whose semantics could be done as part of the relinking anyway. Merge with the lookup package change
Reviewed-by: attila, jlaskey
2013-03-12 15:30:53 +01:00
Erik Joelsson
b44696200e 8009695: embedded/GP/RI: This intermittent error happens too often, makes the build unstable, and waste machine
Reviewed-by: dholmes, tbell
2013-03-12 15:17:19 +01:00
Thomas Schatzl
401d1f315d 8008684: CMS: concurrent phase start markers should always be printed
Print the concurrent phase start markers for CMS when PrintGCDetails is enabled, not only if both PrintGCDetails and PrintGCTimeStamps are.

Reviewed-by: mgerdin, jmasa
2013-03-12 15:10:39 +01:00
Athijegannathan Sundararajan
bb6c34adc7 8009757: Package access clean up and refactoring
Reviewed-by: jlaskey, lagergren, attila
2013-03-12 18:12:42 +05:30
Joel Borggrén-Franck
c3e43ab7d5 8005205: tests missing bugid for repeating annotation change
Reviewed-by: jjg, ssides
2013-03-12 11:16:30 +01:00
Bengt Rutisson
c51ea967ce 8001049: VM crashes when running with large -Xms and not specifying ObjectAlignmentInBytes
Take the initial heap size into account when checking the heap size for compressed oops

Reviewed-by: jmasa, kvn, hseigel, ctornqvi
2013-03-12 08:33:57 +01:00
Joseph Provino
0f54c50638 8009835: Only produce a warning when -Xshare:auto is explicitly requested
The minimal JVM is printing a warning message for default settings when it should quitely ignore them.

Reviewed-by: coleenp, dholmes
2013-03-12 00:02:16 -04:00
Fredrik Öhrström
454b9ff071 8009843: sjavac should accept -cp as synonym for -classpath
Reviewed-by: jjg
2013-03-11 19:03:35 -07:00
David Katleman
a5b76975f0 Merge 2013-03-11 13:42:17 -07:00
David Katleman
0d9fffd773 Merge 2013-03-11 13:41:41 -07:00
Aleksey Shipilev
2f5e08742a 8008965: @Contended fails with classes having static fields
Disable @Contended support for static fields

Reviewed-by: coleenp, kvn
2013-03-11 14:00:09 -04:00
Robert Field
41447ec765 8009742: Bad lambda name for lambda in a static initializer or ctor
Reviewed-by: mcimadamore
2013-03-11 10:02:55 -07:00
Vicente Romero
475c6f42ad 6181889: Empty try/finally results in bytecodes being generated
Reviewed-by: mcimadamore
2013-03-11 15:35:13 +00:00
Stefan Karlsson
1e1174e0be 8004697: SIGSEGV on Solaris sparc with -XX:+UseNUMA
Don't scan pages outside the given range.

Reviewed-by: jwilhelm, jmasa
2013-03-11 02:24:01 -07:00
Mikael Gerdin
1aa6c27298 8009282: Assertion "assert(used_and_free == capacity_bytes) failed: Accounting is wrong" failed with -XX:+Verbose -XX:+TraceMetadataChunkAllocation
Assertion is only valid when at a safepoint, adjust accordingly.

Reviewed-by: stefank, jmasa, tamao
2013-03-12 09:42:24 +01:00
Kevin Walls
379967b492 Merge 2013-03-11 15:37:10 +01:00
Kevin Walls
a181e6d505 8009723: CMS logs "concurrent mode failure" twice when using (disabling) -XX:-UseCMSCompactAtFullCollection
Reviewed-by: jwilhelm, ehelin, brutisso
2013-03-11 12:56:00 +00:00
Stefan Karlsson
2242377c11 Merge 2013-03-11 08:49:53 +01:00
Athijegannathan Sundararajan
d9cd2f6ad3 8009559: clean up method handle lookup code
Reviewed-by: ahgross, jlaskey, attila, sundar
2013-03-09 21:49:32 +05:30
Weijun Wang
2ec1224ff0 8000653: SPNEGO tests fail at context.getDelegCred().getRemainingInitLifetime(mechOid)
Reviewed-by: valeriep
2013-03-09 17:27:58 +08:00
Daniel D. Daugherty
fc336457e7 Merge 2013-03-08 17:49:52 -08:00
Daniel D. Daugherty
f73c8f1408 Merge 2013-03-08 17:14:22 -08:00
Henry Jen
9db6479318 8001667: Comparator combinators and extension methods
Reviewed-by: mduigou, briangoetz
2013-03-08 15:45:06 -08:00
Alan Bateman
1430ceb19d 8009645: ClassFileTransformer hooks in ClassLoader no longer required
Reviewed-by: mchung, iris
2013-03-08 19:51:09 +00:00
Joseph Provino
a68c69fd65 Merge 2013-03-08 12:35:18 -05:00
Coleen Phillimore
addd95f165 8003553: NPG: metaspace objects should be zeroed in constructors
Zero metadata in constructors, not in allocation (and some in constructors)

Reviewed-by: jmasa, sspitsyn
2013-03-08 11:47:57 -05:00
Alejandro Murillo
5d0afe6210 8009688: new hotspot build - hs25-b23
Reviewed-by: jcoomes
2013-03-08 08:22:18 -08:00
Alejandro Murillo
ebdab667c3 Added tag hs25-b22 for changeset f06b74113bc2 2013-03-08 08:10:01 -08:00
Alejandro Murillo
91fe401ca7 Merge 2013-03-08 08:10:00 -08:00
Alan Bateman
9849742625 8006000: TEST_BUG: java/lang/invoke/lambda/LambdaAccessControlTest.java fails intermittently
Reviewed-by: chegar
2013-03-08 12:03:26 +00:00
Morris Meyer
c7b4f35a3d Merge 2013-03-07 18:03:26 -08:00
Morris Meyer
6723fac299 Merge 2013-03-07 14:46:20 -08:00
David Katleman
e0a29cc0f1 Added tag jdk8-b80 for changeset dec13271b739 2013-03-07 11:18:06 -08:00
David Katleman
83ceccf920 Added tag jdk8-b80 for changeset 72415be10117 2013-03-07 11:17:56 -08:00
David Katleman
2849834a45 Added tag jdk8-b80 for changeset 55eb22e60638 2013-03-07 11:17:47 -08:00
David Katleman
b67e4eeabf Added tag jdk8-b80 for changeset 81737a0a6546 2013-03-07 11:17:45 -08:00
David Katleman
6a85dd0d01 Added tag jdk8-b80 for changeset 8a6e09ace0d3 2013-03-07 11:17:36 -08:00
David Katleman
6190b6e12e Added tag jdk8-b80 for changeset 18835185e71e 2013-03-07 11:17:32 -08:00
David Katleman
2f0d1e1f6e Added tag jdk8-b80 for changeset 3a8903868eb2 2013-03-07 11:17:28 -08:00
Zhengyu Gu
4cdcd6dc13 8008257: NMT: assert(new_rec->is_allocation_record()) failed when running with shared memory option
Corrected virtual memory recording and tagging code when large pages are used

Reviewed-by: coleenp, ccheung
2013-03-07 14:06:44 -05:00
Tao Mao
3baff284ba 8008368: Deprecate MaxGCMinorPauseMillis
Deprecate MaxGCMinorPauseMillis and emit a warning if set by users

Reviewed-by: brutisso, johnc
2013-03-07 10:44:04 -08:00
Jiangli Zhou
3662485748 Merge 2013-03-07 10:39:15 -08:00
Robert Field
867e1720c2 8009582: Method reference generic constructor gives: IllegalArgumentException: Invalid lambda deserialization
Reviewed-by: mcimadamore
2013-03-07 08:26:13 -08:00
Joseph Provino
ceb27542a7 Merge 2013-03-07 10:46:14 -05:00
Stefan Karlsson
5e2fe0e935 Merge 2013-03-07 14:29:02 +01:00
Vicente Romero
b04bec8156 8009170: Regression: javac generates redundant bytecode in assignop involving arrays
Reviewed-by: mcimadamore
2013-03-07 10:12:13 +00:00
Chris Hegarty
7d6b4b81de 6370908: Add support for HTTP_CONNECT proxy in Socket class
Co-authored-by: Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed-by: chegar
2013-03-07 10:07:13 +00:00
Andrew Brygin
6c0e480427 8005530: [lcms] Improve performance of ColorConverOp for default destinations
Reviewed-by: prr, jgodinez
2013-03-07 14:05:21 +04:00
Vicente Romero
7fe4d602a6 8009138: javac, equals-hashCode warning tuning
Reviewed-by: mcimadamore
2013-03-07 10:04:28 +00:00
Weijun Wang
556ff23124 8009604: old make images failed: JarBASE64Encoder class not found
Reviewed-by: xuelei, wetmore
2013-03-07 11:32:14 +08:00
Martin Buchholz
46b80b3416 8008759: Do not let internal JDK zlib symbols leak out of fastdebug libzip.so
Define FILES_m to force use of linker script

Reviewed-by: sherman, alanb, ohair
2013-03-06 17:43:10 -08:00
Vladimir Kozlov
010f640069 8009472: Print additional information for 8004640 failure
Dump nodes and types in 8004640 case.

Reviewed-by: roland
2013-03-06 12:25:57 -08:00
Joseph Provino
94853afaee 8008474: Add -Wundef to warning flags
Force use of undefined macros to be and error.

Reviewed-by: dholmes, mikael
2013-03-06 13:50:54 -05:00
Joseph Provino
e1f180f82e 8006498: #if <symbol> is wrong in the code
ASSERT and other symbols used incorrectly with #if are supposed to be defined or not.

Reviewed-by: dholmes, mikael
2013-03-06 13:46:55 -05:00
Joseph Provino
a6be16446d 8008310: Some adjustments needed to minimal VM warnings and errors for unsupported command line options
Changes to arguments.cpp for warnings vs. errors.  Changes for CDS arguments.

Reviewed-by: coleenp, cjplummer
2013-03-06 13:38:17 -05:00
Joel Borggrén-Franck
a65f7e7df0 8007808: Missing method: Executable.getAnnotatedReturnType()
Reviewed-by: darcy, forax
2013-03-06 18:35:51 +01:00
Athijegannathan Sundararajan
4f3800def1 8009553: Object.create(Array.prototype) doesn't respect reset length
Reviewed-by: jlaskey, lagergren
2013-03-06 22:38:18 +05:30
Mike Duigou
32091fcb1b 8009162: root repo "make test" target should run against image
Reviewed-by: alanb, martin, erikj
2013-03-06 08:37:27 -08:00
Mikhail Cherkasov
b1d7c46e14 8007295: Reduce number of warnings in awt classes
Reviewed-by: bae, anthony
2013-03-06 20:10:04 +04:00
Alexander Scherbatiy
a99c6a7fe5 6877495: JTextField and JTextArea does not support supplementary characters
Reviewed-by: serb, alexp
2013-03-06 19:42:26 +04:00
Maurizio Cimadamore
1823b93919 8009391: Synthetic name of serializable lambda methods should not contain negative numbers
Use hex representation of method signature hashcode to avoid negative numbers

Reviewed-by: jjg
2013-03-06 15:33:39 +00:00
Maurizio Cimadamore
a4e10d2aad 8009459: Wrong behavior of diamond finder with source level 7
Diamond finder doesn't take into account different inference behaviors

Reviewed-by: jjg
2013-03-06 15:33:17 +00:00
Maurizio Cimadamore
c9bae7b335 8009299: Javac crashes when compiling method reference to static interface method
Assertion in Check.checMethod is too strict

Reviewed-by: jjg
2013-03-06 15:29:30 +00:00
Erik Joelsson
5b60a94e4f 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
Reviewed-by: tbell
2013-03-06 16:15:16 +01:00
Vladimir Ivanov
9aba745d56 8009222: java.lang.IllegalArgumentException: not invocable, no method type when attempting to get getter method handle for a static field
Reviewed-by: jrose, twisti
2013-03-06 16:59:42 +04:00
Lana Steuck
4f62a2b334 Merge 2013-03-15 23:31:19 -07:00
Athijegannathan Sundararajan
9e78f6feb2 8010136: Make jrunscript's init.js to work on nashorn
Reviewed-by: lagergren, hannesw
2013-03-15 19:30:28 +05:30
Erik Joelsson
ef56e8fdec 8008073: build-infra: Need --with-dxsdk option? And awt/sound -I option additions?
Reviewed-by: tbell
2013-03-06 10:50:37 +01:00
Roland Westrelin
748083843a 8009460: C2compiler crash in machnode::in_regmask(unsigned int)
7121140 may not correctly break the Allocate -> MemBarStoreStore link

Reviewed-by: kvn
2013-03-06 10:28:38 +01:00
David Holmes
a9a7cc3a23 8009529: Fix for 8006988 missed closed configure changes
Reviewed-by: mr
2013-03-05 22:45:59 -05:00
Morris Meyer
15108cd14e 8008750: [partfait] Null pointer deference in hotspot/src/share/vm/oops/instanceKlass.hpp
Fix null pointer

Reviewed-by: kvn, coleenp
2013-03-05 18:03:36 -08:00
Tao Mao
4bec822d40 8008079: G1: Add nextObject routine to CMBitMapRO and replace nextWord
Update the task local finger to the start of the next object when marking aborts, in order to avoid the redundant scanning of all 0's when the marking task restarts, if otherwise updating to the next word. In addition, reuse the routine nextObject() in routine iterate().

Reviewed-by: johnc, ysr
2013-03-05 15:36:56 -08:00
Lana Steuck
76d8a6b8c2 Merge 2013-03-05 15:09:56 -08:00
Ioi Lam
5116181e1f 7107135: Stack guard pages are no more protected after loading a shared library with executable stack
Detect the execstack attribute of the loaded library and attempt to fix the stack guard using Safepoint op.

Reviewed-by: dholmes, zgu
2013-03-05 13:55:56 -08:00
Martin Buchholz
8391257f03 8006988: build-infra: Configure fails if 'cl' is in path on linux
Respect user CC and CXX environment variables; use cl iff on windows

Reviewed-by: erikj
2013-03-05 13:16:40 -08:00
Lana Steuck
3c0b52b10b Merge 2013-03-05 11:51:58 -08:00
Lana Steuck
db23197574 Merge 2013-03-05 11:46:06 -08:00
Lana Steuck
72cb4c459e Merge 2013-03-05 11:46:02 -08:00
Staffan Larsen
2b100092d0 8009397: test/com/sun/jdi/PrivateTransportTest.sh: ERROR: transport library missing onLoad entry: private_dt_socket
Reviewed-by: alanb
2013-03-05 19:25:35 +01:00
Lana Steuck
c5b26e35c5 Merge 2013-03-05 11:49:33 -08:00
Vladimir Ivanov
0e378a1283 Merge 2013-03-05 08:17:18 -08:00
John Zavgren
838b7a1706 4880778: URL final class has protected methods
The two set() methods have been defined to be package private.

Reviewed-by: alanb, chegar, khazra
2013-03-05 09:50:53 -05:00
John Zavgren
d2b27faad4 8008804: file descriptor leak in src/windows/native/java/net/DualStackPlainSocketImpl.c
Reviewed-by: alanb, chegar, dsamersoff
2013-03-05 14:30:18 +00:00
Maurizio Cimadamore
e788a0e536 8009129: Illegal access error when calling method reference
Javac generates method handle referencing non public type

Reviewed-by: jjg, rfield
2013-03-05 14:19:49 +00:00
Maurizio Cimadamore
7a28d6291d 8009154: Missing cast in method reference bridge leads to NoSuchMethodError
Missing cast in generated method reference bridge

Reviewed-by: rfield, jjg
2013-03-05 14:16:07 +00:00
Maurizio Cimadamore
3cbe22f256 8009227: Certain diagnostics should not be deferred
Add new diagnostic flag to mark non deferrable diagnostics

Reviewed-by: jjg
2013-03-05 14:12:07 +00:00
Maurizio Cimadamore
d0a0df54ed 8004962: Code generation crash with lambda and local classes
Translation info should be propagated from LambdaToMethod to Lower

Reviewed-by: jjg, rfield
2013-03-05 14:04:57 +00:00
Andrew Brygin
7659fe9df2 7152608: [macosx] Crash in liblwawt.dylib in AccelGlyphCache_RemoveCellInfo
Reviewed-by: jgodinez, ant
2013-03-05 17:18:55 +04:00
Aleksey Shipilev
4b638cf955 8009120: Fuzz instruction scheduling in HotSpot compilers
Reviewed-by: kvn, vlivanov
2013-03-05 04:24:50 -08:00
Morris Meyer
ff36c9800e 8008574: [parfait] Null pointer deference in hotspot/src/share/vm/runtime/frame.cpp
Fix null pointer

Reviewed-by: kvn
2013-03-05 04:24:33 -08:00
Eric Wang
1ba4dd5979 8009259: TEST_BUG: sun/misc/Cleaner/exitOnThrow.sh failing intermittently
Reviewed-by: chegar, alanb
2013-03-05 10:10:55 +00:00
Staffan Larsen
112317dbe3 8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c
Reviewed-by: dholmes, kvn, mikael, morris
2013-03-05 08:50:59 +01:00
Erik Joelsson
f167bb36ab 8008451: Make mac builds on 10.8 work on 10.7
Reviewed-by: jcoomes, ohair
2013-03-04 22:39:00 -08:00
Naoto Sato
16bd2e1298 8004240: Return value from getAdapterPrefence() can be modified
Reviewed-by: okutsu
2013-03-04 20:46:42 -08:00
Joe Darcy
bc576240bc 8009267: Restore isAnnotationPresent methods in public AnnotatedElement implementations
Reviewed-by: jjg
2013-03-04 19:42:56 -08:00
Morris Meyer
999837eb30 8008559: [parfait] Path through non-void function '_ZN2os15thread_cpu_timeEP6Thread' returns an undefined value
Safety checks for non-Apple thread time functions

Reviewed-by: kvn
2013-03-04 13:15:01 -08:00
John Cuthbertson
a3a42c48e8 8007036: G1: Too many old regions added to last mixed GC
Stop adding old regions to collection set when the remaining reclaimable bytes reaches, or goes below, G1HeapWastePercent. Changes were also reviewed by Vitaly Davidovich <vitalyd@gmail.com>.

Reviewed-by: brutisso
2013-03-04 12:42:14 -08:00
Erik Joelsson
737b863ce4 8004352: build-infra: Limit JOBS on large machines
Reviewed-by: mduigou
2013-03-04 16:45:07 +01:00
James Laskey
dc1c8a5cd7 8009379: Remove $ from generated class names
Reviewed-by: attila, lagergren
2013-03-04 11:01:26 -04:00
Erik Helin
e3e8231629 8009384: Temporarily disable jstat tests to ease complicated push
Reviewed-by: mchung
2013-03-04 15:40:12 +01:00
Erik Helin
37aa83449e 8004172: Update jstat counter names to reflect metaspace changes
Reviewed-by: stefank, jmasa
2013-03-04 13:01:24 +01:00
Hannes Wallnöfer
242e864599 8008370: coffee script compiler doesn't work with Nashorn
Reviewed-by: lagergren, attila
2013-03-04 11:44:54 +01:00
Kumar Srinivasan
bffaa53287 8007297: [pack200] allow opcodes with InterfaceMethodRefs
Reviewed-by: jrose
2013-03-03 20:52:04 -08:00
Jim Laskey
87cc6fe4e6 Merge 2013-03-02 11:26:47 -04:00
Chris Hegarty
3a216a7fdc 8008378: FJP.commonPool support parallelism 0, add awaitQuiescence
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: chegar
2013-03-02 08:54:37 +00:00
Daniel D. Daugherty
af6002665d Merge 2013-03-01 15:59:10 -08:00
Morris Meyer
4dd999e1ee 8008327: [parfait] Unitialized variable in hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m
Fix unitialized variable and return value.

Reviewed-by: kvn
2013-03-01 14:26:34 -08:00
Dan Xu
4994fe0840 8006645: TEST_BUG: java/nio/file/Files/CopyAndMove.java failing intermittently (sol)
Fix test failures and update java doc of Files.move

Reviewed-by: alanb, chegar
2013-03-01 14:12:59 -08:00
Sean Mullan
6190b5040a Merge 2013-03-01 16:15:23 -05:00
Sean Mullan
6cd495e473 8008908: Access denied when invoking Subject.doAsPrivileged()
Wildcard principal names are not processed correctly

Reviewed-by: xuelei
2013-03-01 16:12:50 -05:00
Bill Pittore
715db0beb3 Merge 2013-03-01 14:06:47 -05:00
Jonathan Gibbons
6c39105c60 8008949: javadoc stopped copying doc-files
Reviewed-by: bpatel
2013-03-01 10:47:39 -08:00
Sergey Bylokhov
916da4ac2c 7184945: [macosx] NPE in AquaComboBoxUI since jdk7u6b17, jdk8b47
Reviewed-by: malenkov, alexsch
2013-03-01 21:50:00 +04:00
Alejandro Murillo
b87df9f9e1 8009226: new hotspot build - hs25-b22
Reviewed-by: jcoomes
2013-03-01 04:58:31 -08:00
Alejandro Murillo
f3236a879e Added tag hs25-b21 for changeset 972d3f095a95 2013-03-01 04:45:51 -08:00
Alejandro Murillo
0960629d28 Merge 2013-03-01 04:45:51 -08:00
Sergey Bylokhov
b6a841d5a3 7194902: [macosx] closed/java/awt/Button/DoubleActionEventTest/DoubleActionEventTest failed since jdk8b49
7181403: Invalid MouseEvent conversion with SwingUtilities.convertMouseEvent

Reviewed-by: malenkov, alexsch
2013-03-01 15:31:22 +04:00
Xue-Lei Andrew Fan
9abb185430 7030966: Support AEAD CipherSuites
Reviewed-by: weijun, wetmore, valeriep
2013-03-01 02:34:34 -08:00
Sergey Malenkov
19bc54290f 7163696: JCK Swing interactive test JScrollBarTest0013 fails with Nimbus and GTK L&Fs
Reviewed-by: alexsch
2013-03-01 14:30:52 +04:00
Athijegannathan Sundararajan
1909e5f9d6 8009263: Fix all javadoc errors in nashorn code
Reviewed-by: hannesw, lagergren
2013-03-01 15:58:29 +05:30
David Katleman
9ae41399f1 Merge 2013-02-28 20:30:34 -08:00
David Katleman
817e260afc Merge 2013-02-28 20:29:19 -08:00
David Katleman
86b53b9dd7 8009196: install doesn't define $(AR) as /usr/ccs/bin/ar, results in ar: Command not found
Reviewed-by: tbell
2013-02-28 19:30:43 -08:00
Vladimir Ivanov
fbc6f854cd 8008140: Better method handle resolution
Reviewed-by: jrose, twisti, jdn
2013-03-01 04:45:12 +04:00
Chris Hegarty
a876e30cd4 8010944: Incorrectly separated package list in java.security-windows
Reviewed-by: mullan
2013-03-28 09:50:40 +00:00
Ragini Prasad
23f643597b 8007406: Improve accessibility of AccessBridge
Reviewed-by: skoivu, mullan, ptbrunet
2013-03-27 21:32:53 +00:00
Miroslav Kos
10415b74b7 8005432: Update access to JAX-WS
Newly restricted the whole package com.sun.xml.internal; fix reviewed also by Alexander Fomin

Reviewed-by: mullan, skoivu
2013-03-07 07:19:35 -05:00
Jason Uh
618b36f5eb 8006853: OCSP timeout set to wrong value if com.sun.security.ocsp.timeout < 0
Reviewed-by: mullan
2013-02-28 16:36:01 -08:00
Coleen Phillimore
999f094f2a Merge 2013-02-28 18:37:41 -05:00
Vladimir Ivanov
528aec3f18 Merge 2013-02-28 15:31:03 -08:00
Hannes Wallnöfer
bd2109d3fa 8009240: RegExpScanner code is inefficient and too complex
Reviewed-by: jlaskey, lagergren
2013-02-28 22:59:31 +01:00
David Katleman
f21ded8eea Added tag jdk8-b79 for changeset eef229ae322b 2013-02-28 10:43:03 -08:00
David Katleman
0bd26c4c5b Added tag jdk8-b79 for changeset 630e3bc5b729 2013-02-28 10:42:40 -08:00
David Katleman
0eab6d54ad Added tag jdk8-b79 for changeset b258a0e45b83 2013-02-28 10:42:28 -08:00
David Katleman
14d7f14432 Added tag jdk8-b79 for changeset 1f581fc39f6b 2013-02-28 10:42:23 -08:00
David Katleman
c2043f5ac9 Added tag jdk8-b79 for changeset f2f591a26d5f 2013-02-28 10:42:09 -08:00
David Katleman
ae0385ccc0 Added tag jdk8-b79 for changeset 6cecdca1115d 2013-02-28 10:41:58 -08:00
David Katleman
ae5f0fafc4 Added tag jdk8-b79 for changeset 31943a427b7d 2013-02-28 10:41:46 -08:00
Sergey Bylokhov
1270c69088 8003169: [macosx] JVM crash after disconnecting from projector
Reviewed-by: anthony, alexsch
2013-02-28 20:27:38 +04:00
Athijegannathan Sundararajan
66c2fc6e66 8009229: ant makefile default target should be "test"
Reviewed-by: lagergren, jlaskey
2013-02-28 20:31:30 +05:30
Maurizio Cimadamore
f932d844c1 8008537: Missing method reference lookup error when unbound search finds a static method
Static-ness check should be applied after member reference resolution

Reviewed-by: jjg
2013-02-28 14:05:52 +00:00
Maurizio Cimadamore
85067f7869 8008813: Structural most specific fails when method reference is passed to overloaded method
Bad logic for checking most specific method reference type

Reviewed-by: jjg
2013-02-28 14:05:44 +00:00
Maurizio Cimadamore
9c01455eb6 8008723: Graph Inference: bad graph calculation leads to assertion error
Dependencies are not propagated correctly through merged nodes during inference graph initialization

Reviewed-by: jjg
2013-02-28 14:00:52 +00:00
Daniel D. Daugherty
176ce8de18 Merge 2013-02-28 05:55:18 -08:00
Sergey Bylokhov
f5f12c7995 8008660: Failure in 2D Queue Flusher thread on Mac
Reviewed-by: swingler, bae
2013-02-28 17:04:19 +04:00
Chris Hegarty
e161c78dc3 8006409: ThreadLocalRandom should dropping padding fields from its serialized form
Reviewed-by: dl, martin, alanb, shade
2013-02-28 12:39:29 +00:00
Bengt Rutisson
02472faab5 Merge 2013-02-28 09:01:08 +01:00
Gary Collins
093d1163e4 7115383: TEST_BUG: some jtreg tests fail because they explicitly specify -server option
Small changes to hotspot tests to remove  "-server" and replace with ${TESTVMOPTS}

Reviewed-by: kvn
2013-02-27 20:36:14 -08:00
Daniel D. Daugherty
776841b1bc 8007476: assert(the_owner != NULL) failed: Did not find owning Java thread for lock word address
Make deadlock detection a little more robust in the case of being unable to find the JavaThread associated with an object lock.

Reviewed-by: sla, acorn
2013-02-27 15:00:30 -08:00
Kevin Walls
37cdc7b1f8 7178741: SA: jstack -m produce UnalignedAddressException in output (Linux)
Reviewed-by: poonam, sla
2013-02-27 22:40:14 +00:00
David Katleman
aaac35b3d7 Merge 2013-02-27 13:10:30 -08:00
Serguei Spitsyn
c26ee9d321 Merge 2013-02-27 12:20:34 -08:00
Mike Duigou
5262142601 8008785: IdentityHashMap.values().toArray(V[]) broken by JDK-8008167
Reviewed-by: alanb
2013-02-27 11:00:20 -08:00
Edvard Wendelin
f5518d2c81 Merge 2013-02-27 18:13:20 +01:00
Kevin Walls
84144898c1 Merge 2013-02-27 16:40:30 +00:00
Denis Fokin
e19091b0b1 8009158: Incomplete fix for 7178079
Reviewed-by: serb, anthony
2013-02-27 20:34:04 +04:00
Vladimir Ivanov
3b1ccee969 Merge 2013-02-27 08:03:10 -08:00
Denis Fokin
b097b0d234 7178079: REGRESSION: Some AWT Drag-n-Drop tests fail since JDK 7u6 b13
Reviewed-by: serb, anthony
2013-02-27 19:38:36 +04:00
Attila Szegedi
c44210c971 8009150: Previous dead code elimination was incomplete
Reviewed-by: hannesw, lagergren
2013-02-27 16:25:15 +01:00
Attila Szegedi
5b7d451617 8009146: Eliminate some dead code in preparation for immutable AST
Reviewed-by: hannesw, lagergren
2013-02-27 15:49:05 +01:00
Attila Szegedi
a1ade22dc0 8009143: Eliminate Dynalink dependency on java.beans
Reviewed-by: jlaskey, lagergren, sundar
2013-02-27 15:20:26 +01:00
Alan Bateman
9f8e932d41 8008950: jdk8/tl failing with SetupJavaCompilation BUILD_NASGEN contains missing directory -c on Windows
Reviewed-by: chegar, sundar
2013-02-27 14:12:45 +00:00
Kevin Walls
13505fc4e5 8008807: SA: jstack crash when target has mismatched bitness (Linux)
Reviewed-by: rbackman, sla, poonam
2013-02-27 14:02:26 +00:00
Igor Ignatyev
50efb858e0 8007439: C2: adding successful message of inlining
Reviewed-by: kvn, vlivanov
2013-02-27 05:58:48 -08:00
Coleen Phillimore
fd02968ebe Merge 2013-02-27 07:35:32 -05:00
David Holmes
b660eb6528 Merge 2013-02-27 04:58:45 -05:00
Volker Simonis
76fa595599 8008959: Fix non-PCH build on Linux, Windows and MacOS X
Fix the build without precompiled headers by either including the missing ".inline.hpp" files into the appropriate files or by turning inline-functions declared in header files into ordinary functions in ".cpp" files.

Reviewed-by: coleenp, stefank, dholmes
2013-02-27 09:40:30 +01:00
Edvard Wendelin
adf04b176e Merge 2013-02-27 09:28:02 +01:00
Joe Darcy
1caebc408d 8008279: Remove InvalidContainerAnnotationError.java
Reviewed-by: jfranck
2013-02-26 17:38:29 -08:00
Joe Darcy
a26b355e8b 8009102: Several docs warnings in Project Lambda APIs
Reviewed-by: mduigou
2013-02-26 17:01:04 -08:00
Christian Thalinger
e95e6b9070 8004336: Better handling of method handle intrinsic frames
Reviewed-by: kvn, jrose, ahgross
2013-02-26 16:16:54 -08:00
David Chase
899bcf76ae 8007776: Test6852078.java timeouts
If more than 100 seconds and more than 100 iterations have both passed, then exit is allowed.

Reviewed-by: kvn
2013-02-26 15:38:24 -08:00
Alan Bateman
18e1157d3b 8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
Reviewed-by: mduigou
2013-02-26 22:39:50 +00:00
David Katleman
bed9464bce Merge 2013-02-26 13:23:55 -08:00
David Katleman
98d3004bd9 Merge 2013-02-26 13:23:06 -08:00
Edvard Wendelin
7ecb0fd433 Merge 2013-02-26 20:36:52 +01:00
Robert Field
b0dc9de25e 8008770: SerializedLambda incorrect class loader for lambda deserializing class
Current thread's context ClassLoader was used to load class by name, pass class not name in serialization (Thank you Peter Levart for test and prototype. Thank you Sundar and Peter for unofficial reviews)

Reviewed-by: forax
2013-02-26 10:38:58 -08:00
Athijegannathan Sundararajan
7bdfa989ff 8009021: nasgen should be run on boot jdk rather than currenly built jdk
Reviewed-by: jlaskey
2013-02-26 22:57:51 +05:30
Tim Bell
20b2cd4890 8009019: Updates to generated-configure.sh required for 8008914
Reviewed-by: sundar, jlaskey, jjg
2013-02-26 09:25:44 -08:00
Mikael Vidstedt
960480c53d 8008081: Print outs do not have matching arguments
Corrected formatted prints to have matching arguments, removed dead print_frame_layout function

Reviewed-by: sla, dholmes
2013-02-26 08:54:03 -08:00
Alan Bateman
8eaa894f7c 8008977: profiles build broken by Nashorn build changes
Reviewed-by: chegar
2013-02-26 14:16:48 +00:00
Erik Joelsson
61e56e8ead 8008978: nashorn-rules.gmk missing
Co-authored-by: James Laskey <james.laskey@oracle.com>
Reviewed-by: alanb
2013-02-26 14:08:19 +00:00
Rickard Bäckman
1a74b23a2f 8008340: [sampling] assert(upper->pc_offset() >= pc_offset) failed: sanity
Reviewed-by: kvn, sla
2013-02-26 14:09:52 +01:00
Roland Westrelin
c84424d4af 8007722: C2: "assert(tp->base() != Type::AnyPtr) failed: not a bare pointer" at machnode.cpp:376
GetAndSetP's MachNode should capture bottom type.

Reviewed-by: kvn
2013-02-26 12:18:30 +01:00
Chris Hegarty
c52a86e9c7 Merge 2013-02-26 11:18:19 +00:00
Chris Hegarty
4e9403c378 Merge 2013-02-26 11:06:49 +00:00
Krystal Mo
f5666f9a69 7087570: java.lang.invoke.MemberName information wrong for method handles created with findConstructor
REF_invokeSpecial DMHs (which are unusual) get marked explicitly; tweak the MHI to use this bit

Reviewed-by: jrose, twisti
2013-02-26 11:05:26 +00:00
Vicente Romero
9f2721bfb1 8008436: javac should not issue a warning for overriding equals without hasCode if hashCode has been overriden by a superclass
Reviewed-by: jjg, mcimadamore
2013-02-26 09:04:19 +00:00
Dmitry Cherepanov
8936d472bd Merge 2013-02-26 12:54:39 +04:00
Edvard Wendelin
11923f546e Merge 2013-02-26 06:47:57 +01:00
Erik Joelsson
5c31bde4c0 8008914: Add nashorn to the tl build
Co-authored-by: James Laskey <james.laskey@oracle.com>
Reviewed-by: mr, tbell, jjh
2013-02-25 15:08:11 -08:00
Erik Joelsson
b3a313fa2b 8008914: Add nashorn to the tl build
Co-authored-by: James Laskey <james.laskey@oracle.com>
Reviewed-by: mr, tbell, jjh
2013-02-25 15:08:11 -08:00
Brent Christian
944e1b9636 8006039: test/tools/launcher/I18NJarTest.java fails on Mac w/ LANG=C, LC_ALL=C
Avoid automated test failure by just exiting when in 'C' locale

Reviewed-by: naoto, ksrini
2013-02-25 14:19:48 -08:00
Alan Bateman
a04fad868e 8008808: Allowed dependencies added by JDK-8008481 no longer required
Reviewed-by: tbell, chegar
2013-02-25 17:17:05 +00:00
Attila Szegedi
0248a98842 8006984: Introducing local into a function inside with statement confuses its scope
Reviewed-by: jlaskey, lagergren, sundar
2013-02-25 16:51:04 +01:00
Roland Westrelin
fe92862089 8007294: ReduceFieldZeroing doesn't check for dependent load and can lead to incorrect execution
InitializeNode::can_capture_store() must check that the captured store doesn't overwrite a memory location that is loaded before the store.

Reviewed-by: kvn
2013-02-25 14:13:04 +01:00
Athijegannathan Sundararajan
445b8d2438 8008789: Enable java access and nashorn runtime tests for jtreg
Reviewed-by: lagergren, jlaskey, hannesw
2013-02-25 18:13:23 +05:30
Athijegannathan Sundararajan
f688068adf 8008731: Separate configuration environment (options, error/output writer etc.) from Context
Reviewed-by: hannesw, lagergren
2013-02-25 16:58:31 +05:30
Petr Pchelko
68d2d95f00 8006634: Unify LWCToolkit.invokeAndWait() and sun.awt.datatransfer.ToolkitThreadBlockedHandler
Changed the logic for the nested event loops and deleted deadlock detection

Reviewed-by: art, denis
2013-02-25 10:17:25 +00:00
Edvard Wendelin
d02f5d5667 Merge 2013-02-25 07:22:09 +01:00
Edvard Wendelin
c6e54df5d6 Merge 2013-02-25 07:22:06 +01:00
Edvard Wendelin
b6a6791e0e Merge 2013-02-25 07:21:49 +01:00
Jan Valenta
63fe735683 7112427: The doclet needs to be able to generate JavaFX documentation
Reviewed-by: jjg
2013-02-24 11:36:58 -08:00
Lana Steuck
38697490b4 Merge 2013-02-23 19:49:17 -08:00
Joe Darcy
797ef55129 6556996: (ann spec) SuppressWarnings strings should be documented
Reviewed-by: mduigou, chegar, abuckley
2013-02-23 13:32:32 -08:00
Kelly O'Hair
2ff5bb1c92 8004712: build-infra: Move user guide from web pages to repository
Just the initial work, will need more changes.

Reviewed-by: tbell
2013-02-23 10:47:01 -08:00
Lana Steuck
a9754a7eb0 Merge 2013-02-22 23:12:46 -08:00
James Laskey
f58612a3ad 8008776: Revise BuildNashorn.gmk for changes in new build system
Reviewed-by: jjh
2013-02-22 23:33:46 -04:00
Vladimir Danushevsky
78a060dbde 8005545: Add System property to identify ARCH specific details such as ARM hard-float binaries
Adding sun.os.abi Java Property support

Reviewed-by: bobv, alanb, dholmes
2013-02-22 17:12:35 -05:00
Athijegannathan Sundararajan
6715b64842 8009140: jtreg tests under sun/tools/jrunscript should use nashorn engine
Reviewed-by: alanb
2013-02-27 20:34:12 +05:30
Alan Bateman
f99a5d722e 8008793: SecurityManager.checkXXX behavior not specified for methods that check AWTPermission and AWT not present
Reviewed-by: hawtin, mullan, dsamersoff, mchung
2013-02-27 14:24:45 +00:00
Athijegannathan Sundararajan
b7511e7609 8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
Reviewed-by: alanb
2013-02-27 17:22:44 +05:30
Jia-Hong Chen
d1643f1833 8005796: [parfait] Possible uninitialised variable at jdk/src/share/native/sun/java2d/loops/ByteBinary1Bit.c
Reviewed-by: prr, vadim, flar
2013-02-22 13:20:16 -08:00
Lana Steuck
4dca16d202 Merge 2013-02-22 11:37:40 -08:00
Jennifer Godinez
3cc83d24ad 8006110: pageDialog is showing the swing dialog with DialogTypeSelection.NATIVE
Reviewed-by: bae, prr
2013-02-22 11:01:23 -08:00
Maurizio Cimadamore
7776fdebe7 8008708: Regression: separate compilation causes crash in wildcards inference logic
Invalid use of WildcardType.bound in Types.removeWildcards

Reviewed-by: jjg
2013-02-22 18:19:51 +00:00
Serguei Spitsyn
f85789e68a Merge 2013-02-22 10:16:51 -08:00
Alejandro Murillo
c444c1faea 8008692: new hotspot build - hs25-b21
Reviewed-by: jcoomes
2013-02-22 10:12:00 -08:00
Alejandro Murillo
96dbc17346 Added tag hs25-b20 for changeset 93430469429d 2013-02-22 10:02:06 -08:00
Alejandro Murillo
73094fada5 Merge 2013-02-22 10:02:06 -08:00
Athijegannathan Sundararajan
48a5d9cb5f 8008729: Make sure that we can run basic jsr223 tests using jtreg
Reviewed-by: jlaskey, hannesw, lagergren
2013-02-22 22:39:23 +05:30
Hannes Wallnöfer
1867421e9b 8006028: Integrate Joni regexp engine with Nashorn
Reviewed-by: lagergren, attila
2013-02-22 17:00:22 +01:00
Hannes Wallnöfer
1c711a064a 8008093: Make RegExp engine pluggable
Reviewed-by: lagergren, attila
2013-02-22 16:31:10 +01:00
Lance Andersen
8ee9639988 Merge 2013-02-22 09:58:36 -05:00
James Laskey
33ebb8d71d 8008721: Tweaks to make all NEWBUILD=false round 4
Reviewed-by: jjh
2013-02-22 10:39:00 -04:00
Lance Andersen
36b43451a7 8008716: address typo in CallableStatement javadocs
Reviewed-by: chegar
2013-02-22 09:29:50 -05:00
Alan Bateman
ba7a50ebcf 8008290: (profiles) Startup regression due to additional checking of JAR file manifests
Reviewed-by: lancea, chegar, iris, mchung, sherman
2013-02-22 14:04:06 +00:00
Coleen Phillimore
b8b9434a9f 8000797: NPG: is_pseudo_string_at() doesn't work
Zero Symbol* for constant pool strings to indicate pseudo_strings (objects that aren't strings).  Clean up JVM_CONSTANT_Object and unused flags.

Reviewed-by: sspitsyn, jrose
2013-02-22 08:36:42 -05:00
Sonali Goel
96495bc664 8008337: Write test to check for compiler error when static method in interface is called via super()
Reviewed-by: mcimadamore
2013-02-22 13:31:35 +00:00
Marcus Lagergren
0685f8e938 8007002: Replace implicit exception throwing methods with explicit throws - simplify control flow and remove useless code
Reviewed-by: attila, hannesw
2013-02-22 12:22:16 +01:00
Anton Tarasov
a8305fc6e6 8006406: lightweight embedding in other Java UI toolkits
Reviewed-by: serb, anthony, art
2013-02-22 15:13:13 +04:00
Vladimir Ivanov
17992b9ac9 8004933: Improve MethodHandle interaction with libraries
Reviewed-by: jrose
2013-02-22 02:58:38 -08:00
Vladimir Ivanov
0ae708ca99 8006125: Update MethodHandles library interactions
Reviewed-by: jrose
2013-02-22 02:59:24 -08:00
Vladimir Ivanov
f179e269b9 8006179: JSR292 MethodHandles lookup with interface using findVirtual()
Reviewed-by: jrose, twisti
2013-02-22 03:00:12 -08:00
Vladimir Ivanov
98e5a4b393 8006439: Improve MethodHandles coverage
Reviewed-by: jrose, twisti
2013-02-22 03:00:48 -08:00
Edvard Wendelin
2f5be3ab0d Merge 2013-02-25 08:44:00 +01:00
Eugene Drobitko
406f72e5e9 8008575: Re-integrate code coverage
Co-authored-by: Ilya Dergalin <ilya.dergalin@oracle.com>
Reviewed-by: attila, hannesw
2013-02-22 11:27:40 +01:00
Staffan Larsen
3e1c15cc0a 7165259: Remove BugSpot
Reviewed-by: coleenp, mgronlun
2013-02-22 10:03:02 +01:00
Marcus Lagergren
90b971a60d 8008554: load was broken for URLs
Reviewed-by: attila, sundar
2013-02-22 08:57:22 +01:00
Thomas Ng
7a31c1d5f3 8008691: Build failure (NEWBUILD=false) on Mac
Reviewed-by: art, anthony
2013-02-21 17:55:33 -08:00
Lana Steuck
3c22954800 Merge 2013-02-21 17:49:56 -08:00
Lana Steuck
6e3b8650b7 Merge 2013-02-21 17:39:58 -08:00
Eric Mccorkle
e84b39e459 8008658: Four new method param jtreg tests fail in nightly tests
Reviewed-by: jjg, ksrini, mcimadamore
2013-02-21 12:23:27 -08:00
Robert Field
bcaa703a49 8008405: Now that metafactory is in place, add javac lambda serialization tests
Tests part of original langtools serialization review.

Reviewed-by: mcimadamore
2013-02-21 14:43:51 -08:00
Mark Sheppard
ec9e303630 8006182: cleanup to use java.util.Base64 in java security component, providers, and regression tests
Refactored code to use java.util.Base64 Mime Encoder and Decoder as a replacement for sun.misc.BASE64Encoder and sun.misc.BASE64Decoder

Reviewed-by: vinnie, chegar, sherman
2013-02-21 20:01:22 +00:00
Lana Steuck
835c35dc91 Merge 2013-02-21 17:43:57 -08:00
Robert Field
56baa11720 8008356: Test LambdaSerialization.java failing
Run in /othervm mode

Reviewed-by: ksrini
2013-02-21 15:46:37 -08:00
Vladimir Danushevsky
b799a85392 Merge 2013-02-21 11:39:24 -08:00
James Laskey
fc7f562588 8008447: Tweaks to make all NEWBUILD=false round 3
Reviewed-by: jjh, sundar
2013-02-21 15:24:31 -04:00
David Katleman
60f0c3f6fc Added tag jdk8-b78 for changeset 27bb87e628ae 2013-02-21 11:13:58 -08:00
David Katleman
410fa3840e Added tag jdk8-b78 for changeset 3cd100d3bd6b 2013-02-21 11:13:23 -08:00
David Katleman
b08ac437b7 Added tag jdk8-b78 for changeset bfa2a6f233d5 2013-02-21 11:13:10 -08:00
David Katleman
fbc01baf4a Added tag jdk8-b78 for changeset 909304be06a3 2013-02-21 11:13:04 -08:00
David Katleman
4e3d30888f Added tag jdk8-b78 for changeset e3645986b98a 2013-02-21 11:12:50 -08:00
David Katleman
4b358696a6 Added tag jdk8-b78 for changeset 23887ff7a8ee 2013-02-21 11:12:38 -08:00
David Katleman
9946dda799 Added tag jdk8-b78 for changeset e29ed094b804 2013-02-21 11:12:21 -08:00
Vladimir Danushevsky
5a8e8cf6b4 Merge 2013-02-21 09:08:04 -08:00
Stefan Karlsson
9ed09d08f5 8008549: NPG: SystemDictionary::find(...) unnecessarily keeps class loaders alive
SystemDictionary::find(...) should not create and register ClassLoaderData objects for class loaders.

Co-authored-by: Erik Helin <erik.helin@oracle.com>
Reviewed-by: coleenp, acorn
2013-02-21 17:22:15 +01:00
Marcus Lagergren
9ff7a57a0f 8008648: Lazy JIT scope and callee semantics bugfixes. Broke out wallclock timer
Reviewed-by: attila, hannesw
2013-02-21 16:57:21 +01:00
Maurizio Cimadamore
73b1aee3f4 8008444: Inherited generic functional descriptors are merged incorrectly
Missing call to Types.createMethodWithThrownTypes

Reviewed-by: jjg
2013-02-21 15:27:05 +00:00
Maurizio Cimadamore
6fd868a306 8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Fix regression in varargs method resolution introduced by bad refactoring

Reviewed-by: jjg
2013-02-21 15:26:46 +00:00
Maurizio Cimadamore
8c1621ee38 8008293: Declared bounds not considered when functional interface containing unbound wildcards is instantiated
Wildcards inference should re-use some of the bounds info generated during capture conversion

Reviewed-by: jjg
2013-02-21 15:25:03 +00:00
Maurizio Cimadamore
5bbf5f39fc 8005183: Missing accessor for constructor reference pointing to private inner class ctor
Compiler should add bridges when translating private constructor reference

Reviewed-by: jjg
2013-02-21 15:23:48 +00:00
Maurizio Cimadamore
937b7d2fba 8008276: assertion error in com.sun.tools.javac.comp.TransTypes.visitApply
DiagnosticFilter used during speculative attribution is too broad

Reviewed-by: jjg
2013-02-21 15:21:38 +00:00
Maurizio Cimadamore
eb68b33185 8008227: Mixing lambdas with anonymous classes leads to NPE thrown by compiler
Disentangle cyclic dependency between static-ness of synthetic lambda method and static-ness of classes nested within lambdas

Reviewed-by: jjg
2013-02-21 15:19:29 +00:00
Vladimir Ivanov
1a03134bc8 Merge 2013-02-21 06:29:43 -08:00
Erik Joelsson
53ae53637d 8007903: 8005583's changes to make/install-rules.gmk need to made to jdk/make/closed/InstallWrapper.gmk
Reviewed-by: tbell, ohair
2013-02-21 14:23:12 +01:00
Erik Joelsson
b70f9bfef4 8008451: Make mac builds on 10.8 work on 10.7
Reviewed-by: ohair, ddehaven
2013-02-21 14:16:56 +01:00
Erik Joelsson
d56a0e26bf 8008451: Make mac builds on 10.8 work on 10.7
Reviewed-by: ohair, ddehaven
2013-02-21 14:16:15 +01:00
Erik Joelsson
11cd94d40b 8007387: "sed: RE error: illegal byte sequence" when building images on Mac
Reviewed-by: tbell
2013-02-21 14:14:59 +01:00
Zhengyu Gu
7b43f3402c 8008071: Crashed in promote_malloc_records() with Kitchensink after 19 days
Added NULL pointer check for arena size record

Reviewed-by: sspitsyn, dholmes
2013-02-21 07:50:48 -05:00
Bengt Rutisson
88ec03b622 Merge 2013-02-21 13:13:22 +01:00
Bill Pittore
e3f64880d0 Merge 2013-02-20 23:29:26 -05:00
Ron Durbin
9ff6dfb849 6799919: Recursive calls to report_vm_out_of_memory are handled incorrectly
Report_vm_out_of_memory() should allow VMError.report_and_die() to handle multiple out of native memory errors.

Reviewed-by: dcubed, dholmes, coleenp, acorn
2013-02-20 19:36:25 -08:00
Mike Duigou
debd718fc1 8008629: webrev.ksh needs to quote bug title it gets back from scraping bugs.sun.com
Reviewed-by: darcy
2013-02-20 17:56:16 -08:00
Peter Jensen
556f6dfebb 8006582: Test for parameter names feature
Reviewed-by: jjg, darcy, emc
2013-02-20 15:47:14 -08:00
Daniel D. Daugherty
5eb01d191d 8008352: java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh fails on MKS
Use more portable pattern counting constructs in test driver.

Reviewed-by: sspitsyn, sla, coleenp
2013-02-20 13:23:56 -08:00
John Cuthbertson
1d1641be2f 8008188: Add regression test for 8005875
Add regression test for crash seen in 8005875. Test is run with G1 and PGCT=0 and issues "jcmd <pid> Thread.print" against itself. Without the fix for 8005875 the test will crash.

Reviewed-by: brutisso
2013-02-20 12:52:13 -08:00
Serguei Spitsyn
78a1d5e64b Merge 2013-02-20 08:51:44 -08:00
Klara Ward
017e73cbd0 8008166: URL handling was broken on windows, causing "load" to malfunction
Reviewed-by: attila, jlaskey
2013-02-20 16:43:21 +01:00
Harold Seigel
2f3d1da4f6 Merge 2013-02-20 07:42:01 -05:00
Alexey Utkin
29658bd3b4 8007454: (process) SetHandleInformation parameters DWORD (not BOOLEAN)
The SetHandleInformation arguments list was fixed.

Reviewed-by: alanb
2013-02-20 16:39:35 +04:00
Harold Seigel
2d47fd6658 8004495: [parfait] False positive Buffer overflow in hotspot/src/os/linux/vm/os_linux.cpp
Delete the questionable source code because it is for no-longer supported versions of Linux.

Reviewed-by: mikael, coleenp
2013-02-20 07:16:23 -05:00
Athijegannathan Sundararajan
4a5a1e4404 8008207: Make constants array and source fields private
Reviewed-by: hannesw, lagergren
2013-02-20 17:08:32 +05:30
Lana Steuck
09dadebbf1 Merge 2013-02-19 22:23:34 -08:00
Lana Steuck
2de23a8650 Merge 2013-02-19 22:10:42 -08:00
Lana Steuck
898ada48bb Merge 2013-02-19 20:53:35 -08:00
Lana Steuck
dc7cbef710 Merge 2013-02-19 20:48:44 -08:00
Lana Steuck
416b8fa159 Merge 2013-02-19 20:48:40 -08:00
Eric Mccorkle
bfe1255adc 8006948: Update javac for MethodParameters format change
Reviewed-by: ksrini, forax
2013-02-19 17:19:01 -08:00
Filipp Zhinkin
bfe250c236 8006628: NEED_TEST for JDK-8002870
Regression test for 8000311. Verifies that PLABStats works with zero parallel GC threads.

Reviewed-by: jmasa, johnc
2013-02-19 16:22:28 -08:00
David Holmes
345e7e8175 8008481: Dependency analyzer needs exclusion for profile builds with JFR disabled
Reviewed-by: alanb
2013-02-19 17:32:10 -05:00
Edvard Wendelin
d73e2aa93f Merge 2013-02-19 21:53:06 +01:00
Edvard Wendelin
cbfc80d987 Merge 2013-02-19 21:48:01 +01:00
Edvard Wendelin
14b0e4eb6f Merge 2013-02-19 21:45:15 +01:00
Edvard Wendelin
3c21e13d68 Merge 2013-02-19 21:45:09 +01:00
Edvard Wendelin
3f1ccc821a Merge 2013-02-19 21:44:41 +01:00
Naoto Sato
872cd491a7 7092447: Clarify the default locale used in each locale sensitive operation
Reviewed-by: okutsu
2013-02-19 10:34:26 -08:00
Coleen Phillimore
99fa0d1e99 Merge 2013-02-19 13:33:39 -05:00
Vicente Romero
68a3295c8b 8006212: javac, convert jtreg tests from shell script to java
Reviewed-by: jjg
2013-02-19 17:53:16 +00:00
Mikael Gerdin
1d468be4b1 8006753: fix failed for JDK-8002415 White box testing API for HotSpot
Modify WhiteBoxAPI to use interface classes from test/testlibrary instead, add ClassFileInstaller to resolve the boot class path issue

Reviewed-by: ctornqvi, dsamersoff, coleenp, kvn
2013-02-19 18:45:49 +01:00
Eric McCorkle
78fe727c6d 8008312: Re-enable MethodParameter tests in JDK
Reviewed-by: darcy
2013-02-19 17:09:25 +00:00
Eric McCorkle
b56b3bc9aa 8007153: Ensure that MethodParameters API works properly with RedefineClasses
Adds code to HotSpot to properly update MethodParameter attributes' constant pool indexes when redefineClasses is called

Reviewed-by: coleenp, sspitsyn
2013-02-19 11:36:52 -05:00
John Zavgren
8d2a55d5b7 8007609: WinNTFileSystem_md.c should correctly check value returned from realloc
Reviewed-by: alanb, chegar, dholmes
2013-02-19 16:19:09 +00:00
Konstantin Shefov
a97003cb22 8006070: TEST_BUG: Up and down the Y coordinate of the mouse position, the selected item doesn't change for the single list
Reviewed-by: serb, anthony
2013-02-19 20:00:02 +04:00
Athijegannathan Sundararajan
be8f1b2b35 8008448: Add coverage test for jdk.nashorn.internal.ir.debug.JSONWriter
Reviewed-by: jlaskey, attila
2013-02-19 20:33:07 +05:30
Sean Coffey
117010c6ec 8007315: HttpURLConnection.filterHeaderField method returns null where empty string is expected
Reviewed-by: chegar
2013-02-19 14:12:09 +00:00
Sean Coffey
05a3bdceae 7197187: Currency.isPastCutoverDate should be made more robust
Reviewed-by: alanb
2013-02-19 14:07:25 +00:00
Harold Seigel
301152ddb7 6749267: Signal handler should save/restore errno
Save errno before processing signal, then restore it.

Reviewed-by: acorn, sspitsyn
2013-02-19 08:51:56 -05:00
Jim Laskey
b5c0480f54 Merge 2013-02-19 09:47:02 -04:00
James Laskey
564d7d3add 8008420: Tweaks to make all NEWBUILD=false round 2
Reviewed-by: jjh
2013-02-19 09:46:28 -04:00
Konstantin Shefov
88eea092fb 8008379: TEST_BUG: Fail automatically with java.lang.NullPointerException
Reviewed-by: serb, anthony
2013-02-19 17:26:40 +04:00
Alan Bateman
48fbf1ca88 Merge 2013-02-19 11:32:46 +00:00
David Holmes
8c52b75d0f 8008424: Isolate PROFILE make variable from incidental setting in the environment
Reviewed-by: erikj, alanb
2013-02-19 06:27:20 -05:00
Petr Pchelko
49ba72c463 8008374: Build failure (NEWBUILD=false) on Mac
Fixed an old build system failure

Reviewed-by: art, anthony
2013-02-19 11:26:43 +00:00
Alan Bateman
8bb4f96911 8007097: (profiles) Build needs test to ensure that profile definitions are updated
Reviewed-by: dholmes, erikj
2013-02-19 11:08:43 +00:00
Joe Darcy
6e097b8776 8008267: Add @Supported annotation to com.sun.source types
Reviewed-by: jjg
2013-02-19 00:31:45 -08:00
Joe Darcy
d6a9902690 8008435: Fix new build to include jdk.Supported in ct.sym
Reviewed-by: erikj
2013-02-19 00:24:55 -08:00
Joe Darcy
66b344c616 8008434: Misc javadoc warning fixes in DateTimeFormatterBuilder and TimeZone
Reviewed-by: mduigou, okutsu
2013-02-19 00:19:15 -08:00
Andrew Brygin
33184bb413 8007675: Improve color conversion
Reviewed-by: prr, mschoene, jgodinez
2013-02-19 12:06:28 +04:00
Vladimir Kozlov
656949d014 8004867: VM crashing with assert "share/vm/opto/node.hpp:357 - assert(i < _max) failed: oob"
Added few checks and early bailout from Superword optimization to avoid such cases in a future.

Reviewed-by: roland, twisti
2013-02-18 16:47:15 -08:00
David Chase
8d2496d7de 7102300: performance warnings cause results diff failure in Test6890943
Strip lines matching the performance warning from the output before diff.

Reviewed-by: kvn
2013-02-18 15:08:39 -08:00
Jonathan Gibbons
971f247b1b 8008339: Test TargetAnnoCombo.java is broken
Reviewed-by: jjh
2013-02-18 14:29:40 -08:00
David Chase
d867a3f9a8 8008180: Several tests in compiler/5091921 need more time to run
Added an explicit timeouts.

Reviewed-by: kvn, twisti
2013-02-18 14:29:16 -08:00
Jia-Hong Chen
80da999bf3 8005191: [parfait] #384 sun/font/layout/LookupProcessor.cpp Null pointer dereference
Reviewed-by: prr, vadim
2013-02-18 14:04:00 -08:00
Joe Wang
dc574bf905 6657673: Issues with JAXP
Reviewed-by: alanb, lancea, ahgross, mullan
2013-02-18 13:02:09 -08:00
Sean Mullan
2e810672ba 8003445: Adjust JAX-WS to focus on API
Reviewed-by: vinnie, ahgross, mgrebac
2013-03-27 10:37:46 +00:00
David Holmes
aa38d46a14 Merge 2013-02-18 15:35:57 -05:00
David Holmes
25c1411706 Merge 2013-02-18 15:35:05 -05:00
Joe Wang
8b12f5abcc 6657673: Issues with JAXP
Reviewed-by: alanb, lancea, ahgross, mullan
2013-02-18 11:33:35 -08:00
Athijegannathan Sundararajan
350c3e01c1 8008387: Improve code coverage tests for JSObjectLinker and NashornBottomLinker
Reviewed-by: lagergren, jlaskey, hannesw
2013-02-18 20:41:12 +05:30
Attila Szegedi
ccce3fa803 8008371: Fix Dynalink compiler warnings and whitespace
Reviewed-by: jlaskey, sundar
2013-02-18 16:00:15 +01:00
Vicente Romero
e6b61ae08a 6563143: javac should issue a warning for overriding equals without hashCode
Reviewed-by: jjg, mcimadamore
2013-02-18 14:33:25 +00:00
Staffan Larsen
1439d121c2 8007779: os::die() on solaris should generate core file
Reviewed-by: dholmes, rbackman
2013-02-18 12:49:53 +01:00
Erik Joelsson
7e8a3b3d11 8008295: build-infra: Cleanup in Import.gmk
Reviewed-by: ohrstrom, tbell
2013-02-18 11:27:43 +01:00
Erik Joelsson
bf12ddea85 8008294: build-infra: Build-infra closed fails on solaris 11.1
Reviewed-by: ohrstrom, dholmes, tbell
2013-02-18 11:26:23 +01:00
Erik Joelsson
2a904298d2 Merge 2013-02-18 10:48:51 +01:00
Erik Joelsson
b6f45f1098 Merge 2013-02-18 10:46:22 +01:00
Staffan Larsen
5265514689 8007901: SA: Don't read flag values as constants
Reviewed-by: dholmes, mikael
2013-02-18 10:43:07 +01:00
Hannes Wallnöfer
9a4e9fe31e 8008351: Avoid using String.replace(String, String) in codegen
Reviewed-by: sundar, attila
2013-02-18 10:36:18 +01:00
Athijegannathan Sundararajan
b1f72f6fd2 8008305: ScriptEngine.eval should offer the ability to provide a codebase
Reviewed-by: lagergren, hannesw, attila
2013-02-18 14:41:58 +05:30
Alan Bateman
3a353cb8e0 8007436: (profiles) Add JSR-310 to Compact Profiles contents
Reviewed-by: dholmes, erikj
2013-02-18 08:57:06 +00:00
Frank Ding
7886b3e26b 6429204: (se) Concurrent Selector.register and SelectionKey.interestOps can ignore interestOps
Reviewed-by: alanb
2013-02-18 08:14:18 +00:00
Roland Westrelin
260e822459 8007959: Use expensive node logic for more math nodes
Use expensive node logic for other more math nodes.

Reviewed-by: kvn
2013-02-18 09:06:24 +01:00
David Holmes
e57875e8ab Merge 2013-02-17 16:44:55 -05:00
David Holmes
e0ece27387 Merge 2013-02-17 16:44:28 -05:00
David Holmes
390cc1d7a1 Merge 2013-02-17 16:44:19 -05:00
Yong Jeffrey Huang
bf26c0a143 8006748: getISO3Country() returns wrong value
Reviewed-by: naoto
2013-02-16 21:22:11 -08:00
Xueming Shen
c64f5833d2 8008348: The leftover jdk/make/tools/javazic causes build problems with hs25-b19 control
To remove jdk/make/tools/javazic from the jdk repo

Reviewed-by: alanb
2013-02-17 01:01:15 +00:00
Robert Field
381aecb7c2 8004970: Implement serialization in the lambda metafactory
Reviewed-by: forax
2013-02-16 12:36:54 -08:00
Bill Pittore
51da3d1337 Merge 2013-02-15 21:53:55 -05:00
Robert Field
b2a3c762ff 8004969: Generate $deserializeLambda$ method
8006763: super in method reference used in anonymous class - ClassFormatError is produced
8005632: Inner classes within lambdas cause build failures
8005653: Lambdas containing inner classes referencing external type variables do not correctly parameterize the inner classes

Reviewed-by: mcimadamore
2013-02-15 18:40:38 -08:00
Alejandro Murillo
5159c925af 8008286: new hotspot build - hs25-b20
Reviewed-by: jcoomes
2013-02-15 13:36:56 -08:00
Alejandro Murillo
96300f3ad9 Added tag hs25-b19 for changeset 9895f0eb0c56 2013-02-15 13:27:21 -08:00
Alejandro Murillo
3611e527c8 Merge 2013-02-15 13:27:20 -08:00
Joseph Provino
8d24b760cd Merge 2013-02-15 14:42:37 -05:00
Jonathan Gibbons
ff25ecbcbb 8008313: 8007052 breaks test/tools/javap/MethodParameters.java
Reviewed-by: darcy
2013-02-15 11:26:11 -08:00
Dmitry Samersoff
dd9a6fc8eb Merge 2013-02-15 10:29:23 -08:00
Maurizio Cimadamore
fd17a4290b 8008309: TargetType60 fails because of bad golden file
Bad golden file

Reviewed-by: jjg
2013-02-15 18:13:00 +00:00
Maurizio Cimadamore
b9a88adb02 Merge 2013-02-15 16:37:19 +00:00
Sonali Goel
30058417e1 8007427: Annotation element as '_' gives compiler error instead of a warning
8007401: Write test to check for generation of warnings when '_' is used as an identifier

Extended identifier production not used in annotation values

Reviewed-by: jjg
2013-02-15 16:31:19 +00:00
Maurizio Cimadamore
f5df2a2562 8007535: Compiler crashes on @FunctionalInterface used on interface with two inherited methods with same signatures
Bad check in Types.interfaceCandidates

Reviewed-by: jjg
2013-02-15 16:30:31 +00:00
Maurizio Cimadamore
b496912ee1 8007462: Fix provisional applicability for method references
Add speculative arity-based check to rule out potential candidates when stuck reference is passed to method

Reviewed-by: jjg
2013-02-15 16:29:58 +00:00
Maurizio Cimadamore
e88e06a5e0 8007285: AbstractMethodError instead of compile-time error when method reference with super and abstract
Missing abstractness check on super rmethod references

Reviewed-by: jjg
2013-02-15 16:28:57 +00:00
Jonathan Gibbons
a695bef890 8007052: javap should include the descriptor for a method in verbose mode
Reviewed-by: mcimadamore
2013-02-15 08:28:42 -08:00
Maurizio Cimadamore
f8f9896cc7 8006749: compiler does not allow Object protected methods to be used in lambda
Check.checkFunctionalInterface should take into account 'fake' override

Reviewed-by: jjg
2013-02-15 16:28:07 +00:00
Athijegannathan Sundararajan
1fb8213bb0 8008298: Add tests to cover specialized versions of Math functions
Reviewed-by: jlaskey, lagergren
2013-02-15 20:40:05 +05:30
Vera Akulova
d273278133 8005920: After pressing combination Windows Key and M key, the frame, the instruction and the dialog can't be minimized
Reviewed-by: serb, denis
2013-02-15 17:46:39 +04:00
Athijegannathan Sundararajan
c09d1ba6d7 8008291: Add more tests for better coverage of objects, scripting and parser packages
Reviewed-by: lagergren, jlaskey
2013-02-15 18:30:19 +05:30
Chris Hegarty
5c9a25d2d2 8008223: java/net/BindException/Test.java fails rarely
Reviewed-by: khazra, alanb
2013-02-15 11:06:52 +00:00
Frank Ding
4615442550 8008289: DefaultButtonModel instance keeps stale listeners in html FormView
Reviewed-by: malenkov, alexsch
2013-02-15 15:05:58 +04:00
Alexander Scherbatiy
5287640ec6 7173873: JFrame.setDefaultCloseOperation(EXIT_ON_CLOSE) will never lead to SE if EXIT_ON_CLOSE is already set
Reviewed-by: malenkov, serb
2013-02-15 14:24:42 +04:00
Erik Joelsson
7dc8dad176 8005879: Add -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 to builds on Mac
Reviewed-by: ohair
2013-02-15 10:41:15 +01:00
Erik Joelsson
d49ae7856e 8005879: Add -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 to builds on Mac
Reviewed-by: ohair
2013-02-15 10:40:46 +01:00
Staffan Larsen
c023aba8f4 Merge 2013-02-15 10:08:25 +01:00
Marcus Lagergren
7d9a872e3f 8008239: Unpublicized parts of the code generator package that were only package internal
Reviewed-by: hannesw, attila
2013-02-15 09:44:15 +01:00
Hannes Wallnöfer
8edbed784d 8008215: break in catch clause causes java.lang.VerifyError: Inconsistent stackmap
Reviewed-by: jlaskey, lagergren
2013-02-15 09:18:05 +01:00
Staffan Larsen
19f22d8bbc 8008102: SA on OS X does not stop the attached process
Reviewed-by: dholmes, rbackman
2013-02-15 08:54:12 +01:00
Lana Steuck
12ac02b1d3 Merge 2013-02-14 22:12:15 -08:00
Lana Steuck
e2244526fa Merge 2013-02-14 22:11:58 -08:00
Lana Steuck
b6991ff139 Merge 2013-02-14 22:11:49 -08:00
Xueming Shen
a433a8918d 8008254: j.u.Calendar.JavatimeTest failed at TL b78 pit testing
To use j.t.ZoneId zone name to keep round-trip

Reviewed-by: okutsu
2013-02-15 01:17:31 +00:00
Tao Mao
95bd43cd0a 8007764: Wrong initialized value of max_gc_pause_sec for an instance of class AdaptiveSizePolicy
This is a fix of an initialization mistake for class AdaptiveSizePolicy.

Reviewed-by: jmasa
2013-02-14 14:43:01 -08:00
Jia-Hong Chen
f5e3306d75 8008173: [parfait] #1173 Uninitialised variable -- TransformHelper.cpp
Reviewed-by: prr, vadim
2013-02-14 14:14:38 -08:00
Dmeetry Degrave
2fd9426c20 7199858: Marshal exception is wrong
Reviewed-by: lancea
2013-02-15 01:49:36 +04:00
Mikael Vidstedt
d258e2c069 8007639: Workaround for ccache in vm.make is incorrect
Fixed makefile logic to correctly special case JRE_RELEASE_VERSION and vm_version.o

Reviewed-by: dholmes, erikj
2013-02-14 12:36:07 -08:00
David Katleman
32bced14f5 Added tag jdk8-b77 for changeset d97b73add494 2013-02-14 11:44:21 -08:00
David Katleman
14251d6480 Added tag jdk8-b77 for changeset e587650e9aa6 2013-02-14 11:44:09 -08:00
David Katleman
08c118806c Added tag jdk8-b77 for changeset 9df84d06d040 2013-02-14 11:43:54 -08:00
David Katleman
827f8f788b Added tag jdk8-b77 for changeset bd0373289b63 2013-02-14 11:43:52 -08:00
David Katleman
2e048c5ce6 Added tag jdk8-b77 for changeset 739a5754a11e 2013-02-14 11:43:44 -08:00
David Katleman
78687c4aaf Added tag jdk8-b77 for changeset e637fdab418c 2013-02-14 11:43:36 -08:00
David Katleman
0b69873d73 Added tag jdk8-b77 for changeset b2c2a48dae5c 2013-02-14 11:43:27 -08:00
Bharadwaj Yadavalli
ff4bbcd501 8007736: VerifyError for static method in interface
Reviewed-by: dholmes, acorn
2013-02-14 14:33:35 -05:00
Bharadwaj Yadavalli
07c7afeaac 8007736: VerifyError for use of static method in interface
Reviewed-by: mchung
2013-02-14 11:09:07 -08:00
Mandy Chung
ee65d32c20 8006225: tools/jdeps/Basic.java failes with AssertionError
Reviewed-by: alanb
2013-02-14 09:43:00 -08:00
Joseph Provino
469a44bcd6 8003581: UseG1GC is not properly accounted for by INCLUDE_ALTERNATE_GCS
Fix warning messages when selected garbage collectors are excluded from the minimal jvm.

Reviewed-by: dholmes, cjplummer
2013-02-14 11:08:58 -05:00
Joseph Provino
1db22b304c 8006878: Some non-existent GC source files are in the minimalVM exclude list
CmsPermGen.cpp, psPermGen.cpp have been removed.  yieldWorkingGroup.cpp typo is fixed. immutableSpace.cpp was in the list twice.

Reviewed-by: dholmes, jmasa
2013-02-14 11:07:24 -05:00
James Laskey
f95919ab1e 8008231: Fix build system to accommodate integration of dynalink
Reviewed-by: jlaskey
2013-02-14 11:32:49 -04:00
Vladimir Ivanov
8952875c84 Merge 2013-02-14 05:36:59 -08:00
Hannes Wallnöfer
6aeeee6b63 8008198: java.lang.AssertionError: Invalid break target class jdk.nashorn.internal.ir.TryNode
Reviewed-by: attila, jlaskey
2013-02-14 14:07:53 +01:00
Attila Szegedi
85c55a2aa4 8007990: No access to interface methods on a restricted class
Reviewed-by: jlaskey, lagergren, sundar
2013-02-14 13:51:54 +01:00
Marcus Lagergren
af9c882b95 8008206: The allInteger case for SwitchNode generation in CodeGenerator assumes integer LITERALS only
Reviewed-by: sundar, jlaskey
2013-02-14 13:52:12 +01:00
Attila Szegedi
82f8cef55c 8008085: Integrate Dynalink source code into Nashorn codebase
Reviewed-by: jlaskey, lagergren, sundar
2013-02-14 13:22:26 +01:00
Staffan Larsen
bf91374f3f 8004840: Jstack seems to output unnecessary information in 7u9
Reviewed-by: dholmes, coleenp, sspitsyn, rbackman
2013-02-14 13:08:15 +01:00
Marcus Lagergren
7c466c84eb 8008199: Lazy compilation and trampoline implementation
The code pipeline now supports lazy compilation, which can be used to only compile certain FunctionNodes and leave others be, saving startup time. When these uncompiled nodes are hit, a trampoline will force them to be recompiled. This can also be used to specialize compilation fixing parameter types and return types to a callsite specific compilation. This will give performance.

Reviewed-by: attila, sundar
2013-02-14 13:01:52 +01:00
Bengt Rutisson
20bc6a3d8c Merge 2013-02-14 11:01:05 +01:00
Athijegannathan Sundararajan
022533a749 8008197: Cross script engine function calls do not work as expected
Reviewed-by: lagergren, hannesw
2013-02-14 14:16:58 +05:30
Bengt Rutisson
c2f4ba73be 8006398: Add regression tests for deprectated GCs
Reviewed-by: ehelin, jwilhelm, jmasa
2013-02-14 09:11:43 +01:00
Sonali Goel
2fb38081d5 8001457: New tests needed for library-side changes for repeating annotations
Reviewed-by: darcy
2013-02-13 23:05:17 -08:00
Athijegannathan Sundararajan
9f6e3f08f2 8008193: test262 tests should be run with security manager enabled
Reviewed-by: jlaskey
2013-02-14 09:14:31 +05:30
Lana Steuck
9b523dc375 Merge 2013-02-13 17:57:31 -08:00
Lana Steuck
187c4688e0 Merge 2013-02-13 17:55:44 -08:00
Jia-Hong Chen
20987e6144 8008017: The fix for 8005129 does not build on Windows
Reviewed-by: prr, jgodinez
2013-02-13 15:06:47 -08:00
Peter Levart
1930d1f090 8008167: IdentityHashMap.[keySet|values|entrySet].toArray speed-up
Reviewed-by: mduigou, martin
2013-02-13 14:50:14 -08:00
Chris Hegarty
24b144ccd9 8008201: Add java/lang/Class/asSubclass/BasicUnit.java to the ProblemList
Reviewed-by: mcimadamore
2013-02-14 13:01:03 +00:00
Karen Kinnear
a8dfb771d1 Merge 2013-02-13 16:15:09 -05:00
Daniel D. Daugherty
ba9cf66b48 8007935: java/lang/instrument/RedefineSubclassWithTwoInterfaces.sh should use $COMPILEJAVA for javac
Reviewed-by: sspitsyn, alanb
2013-02-13 13:22:31 -08:00
Bharadwaj Yadavalli
db31a896d8 8007888: jdk fix default method: VerifyError: Illegal use of nonvirtual
Recognize VM generated method in old verifier. With 8004967

Reviewed-by: coleenp, acorn
2013-02-13 16:09:13 -05:00
Lana Steuck
61363dfe99 Merge 2013-02-13 13:01:16 -08:00
Kumar Srinivasan
4c2a4c9b4a 8005750: [parfait] Memory leak at jdk/src/share/bin/parse_manifest.c
Reviewed-by: jjh
2013-02-13 12:56:46 -08:00
Lana Steuck
56014d30fc Merge 2013-02-13 12:38:28 -08:00
Lana Steuck
0691bb6c06 Merge 2013-02-13 11:57:59 -08:00
Xueming Shen
48a592be5a 8008161: Regression: j.u.TimeZone.getAvailableIDs(rawOffset) returns non-sorted list
To return a sorted list

Reviewed-by: lancea, naoto
2013-02-13 11:49:34 -08:00
Vinnie Ryan
8f58ebc261 8007755: Support the logical grouping of keystores
Reviewed-by: mullan
2013-02-13 19:40:51 +00:00
Lana Steuck
3bfd774a99 Merge 2013-02-13 11:25:58 -08:00
Lana Steuck
264f4dbe27 Merge 2013-02-13 11:25:14 -08:00
Lana Steuck
21e48ed16d Merge 2013-02-13 11:21:14 -08:00
Dmitry Samersoff
403e23ec70 8008095: TEST_BUG: JDK-8002048 one more testcase failure on Solaris
Fixed couple of more Solaris shell incompatibilities

Reviewed-by: chegar
2013-02-13 21:06:30 +04:00
Eric Mccorkle
8ccde1a96e 8006345: Report Synthesized Parameters in java.lang.reflect.Parameter API
8006896: ClassReader doesn't see MethodParameters attr for method of anon inner class
8007098: Output Synthesized Parameters to MethodParameters Attributes

Correctly report synthesized and mandated parameters

Reviewed-by: mcimadamore, jjg
2013-02-13 17:04:21 +00:00
Serguei Spitsyn
a89fa83b32 Merge 2013-02-13 08:42:03 -08:00
Igor Ignatyev
034705ee13 8006683: Add WhiteBox API to testing of compiler
Reviewed-by: kvn, vlivanov
2013-02-13 08:29:04 -08:00
Vinnie Ryan
fdcad628a4 Merge 2013-02-13 16:03:24 +00:00
Vinnie Ryan
3d55cc1e02 8007934: algorithm parameters for PBE Scheme 2 not decoded correctly in PKCS12 keystore
Reviewed-by: mullan
2013-02-13 16:01:26 +00:00
Petr Pchelko
959ddfce4a 8005629: javac warnings compiling java.awt.EventDispatchThread and sun.awt.X11.XIconWindow
Removed macosx specific workaround from shared code and made macosx use public API

Reviewed-by: art, serb
2013-02-13 15:32:50 +00:00
Petr Pchelko
42b8720bef 7079260: InputContext leaks memory
Replaced strong refs with weak refs

Reviewed-by: art, serb
2013-02-13 15:27:29 +00:00
Vladislav Karnaukhov
f44592861c 4199622: RFE: JComboBox shouldn't sending ActionEvents for keyboard navigation
Reviewed-by: alexp, alexsch
2013-02-13 19:23:09 +04:00
Vera Akulova
dfdd79f3ee 7132383: [macosx] bug6596966.java should be adapted for Mac
Reviewed-by: serb, alexsch
2013-02-13 19:06:31 +04:00
Athijegannathan Sundararajan
ecc2be22e3 8008103: Source object should maintain URL of the script source as a private field
Reviewed-by: lagergren, jlaskey
2013-02-13 19:59:30 +05:30
Vera Akulova
30a25e41d2 7161759: TEST_BUG: java/awt/Frame/WindowDragTest/WindowDragTest.java fails to compile, should be modified
Added @build Util jtreg tag

Reviewed-by: serb, alexsch
2013-02-13 18:01:18 +04:00
Hannes Wallnöfer
b8d10c0a0e 8008096: TokenStream buffer should grow exponentially
Reviewed-by: attila, lagergren, sundar
2013-02-13 13:30:21 +01:00
Joel Borggrén-Franck
e0eba88c1b 8007278: Rename j.l.r.AnnotatedElement.getAnnotations(Class) to getAnnotationsByType(Class)
Reviewed-by: darcy, abuckley
2013-02-13 10:36:36 +01:00
Joel Borggrén-Franck
14c0c8eed8 8007279: Rename javax.l.model.element.Element.getAnnotations(Class) to getAnnotationsByType(Class)
Reviewed-by: darcy, abuckley
2013-02-13 10:33:13 +01:00
Nils Eliasson
bcbdbf9996 8005772: Stubs report compile id -1 in phase events
Use 0 to indicate id is NA, -1 for error or uninitalized

Reviewed-by: kvn, twisti
2013-02-13 10:25:09 +01:00
Nils Eliasson
d1b60c9f04 Merge 2013-03-13 13:44:45 +01:00
Niclas Adlertz
b26473a6cf 8009721: Make PhaseLive independent from regalloc
Moved class definition of LRG_List from chaitin.hpp to live.hpp

Reviewed-by: kvn, rbackman, roland
2013-03-13 10:56:54 +01:00
Roland Westrelin
05b1c69fc0 8009761: Deoptimization on sparc doesn't set Llast_SP correctly in the interpreter frames it creates
Deoptimization doesn't set up callee frames so that they restore caller frames correctly.

Reviewed-by: kvn
2013-03-13 09:44:45 +01:00
Katja Kantserova
0a5d02aaa6 8008089: Delete OS dependent check in JdkFinder.getExecutable()
Reviewed-by: egahlin, alanb
2013-02-13 10:24:24 +01:00
Lana Steuck
5a2e0c4105 Merge 2013-02-19 20:52:39 -08:00
Kumar Srinivasan
2373a63188 8008262: pack200 should support MethodParameters - part 2
Reviewed-by: jrose
2013-02-19 16:49:28 -08:00
John Zavgren
ab4a830be8 8008107: [parfait] Use after free of pointer in jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c
Reviewed-by: mullan, chegar
2013-02-19 15:31:19 -05:00
Mike Duigou
71666c4c5a 8004561: Additional functional interfaces, extension methods and name changes
Adds additional functional interfaces for primitives and "Bi" (two operand). Adds utility extension methods. Includes some name changes for existing functional interfaces per EG decisions.

Reviewed-by: briangoetz, darcy, chegar, dholmes
2013-02-19 11:56:49 -08:00
Rickard Bäckman
05d4ff0383 8008088: SA can hang the VM
Reviewed-by: mgronlun, sla, dholmes
2013-02-13 09:46:19 +01:00
Markus Grönlund
7d28698730 8007312: null check signal semaphore in os::signal_notify windows
Reviewed-by: dholmes, sla
2013-02-13 11:23:46 +01:00
Werner Dietl
464abcb4fa 8008077: update reference impl for type-annotations
Reviewed-by: jjg
2013-02-12 17:15:29 -08:00
Mike Duigou
9bb27cedcb 8007398: Peformance improvements to Integer and Long string formatting
Co-authored-by: Steven Schlansker <stevenschlansker@gmail.com>
Reviewed-by: mduigou, martin, darcy, briangoetz
2013-02-12 17:04:09 -08:00
Mike Duigou
cb8b49f153 Merge 2013-05-31 17:31:40 -07:00
John Zavgren
ae11ef7f7f 7188517: Check on '$' character is missing in the HttpCookie class constructor
Modified the constructor code so that the cookie names are examined for leading dollar signs and if they do, an illegal argument exception is thrown.

Reviewed-by: chegar, khazra, michaelm
2013-05-31 15:18:15 -04:00
John Zavgren
b593542883 8008972: Memory leak: Java_java_net_TwoStacksPlainDatagramSocketImpl_receive0 [parfait]
Modified the code so that "jumbo frames" are truncated before buffer allocation is considered. This makes the buffer length a reliable indication that a buffer has been allocated, and it can then be used during clean up.

Reviewed-by: chegar, khazra, alanb
2013-05-31 15:23:26 -04:00
Dan Xu
99e8d73193 8015628: Test Failure in closed/java/io/pathNames/GeneralSolaris.java
Reviewed-by: alanb
2013-05-31 13:34:27 -07:00
Naoto Sato
7037ed261e 7006052: awt_InputMethod.c cleanup is needed
Reviewed-by: anthony
2013-05-31 11:20:51 -07:00
Mike Duigou
1f2b4683fd 8015686: {Int|Long}SummaryStatistics toString() throws IllegalFormatConversionException
Reviewed-by: dholmes, alanb, psandoz
2013-05-31 11:06:04 -07:00
Alan Bateman
f3d7029319 8014854: (bf) CharBuffer.chars too slow with default implementation
Reviewed-by: erikj, briangoetz, henryjen, psandoz, mduigou
2013-05-31 12:17:30 +01:00
Chris Hegarty
608c513883 7107883: getNetworkPrefixLength() does not return correct prefix length
Reviewed-by: alanb, michaelm
2013-05-31 09:30:44 +01:00
Paul Sandoz
5fe4973a2c 8014732: Minor spec issue: java.util.Spliterator.getExactSizeIfKnown
A minor documentation issue (not a spec issue).

Reviewed-by: chegar, dl
2013-05-31 09:58:00 +02:00
Anthony Scarpino
bb1932055b 6750584: Cipher.wrap/unwrap methods should define UnsupportedOperationException
Reviewed-by: mullan
2013-05-30 14:11:32 -07:00
Valerie Peng
3ecc12a044 8013069: javax.crypto tests fail with new PBE algorithm names
Shouldn't auto-generate default parameters for MAC objects.

Reviewed-by: vinnie
2013-05-29 20:54:43 -07:00
Anthony Scarpino
ddc0a1e51f 7160837: DigestOutputStream does not turn off digest calculation when "close()" is called
Reviewed-by: mullan, xuelei
2013-05-30 22:19:28 -07:00
Pasi Eronen
b888136f12 8014618: Need to strip leading zeros in TlsPremasterSecret of DHKeyAgreement
Reviewed-by: xuelei
2013-05-30 22:02:43 -07:00
Xueming Shen
64751d0f41 8015271: Conversion table for EUC-KR is incorrect
To add the requested postal code mark character u+327e

Reviewed-by: alanb
2013-05-30 14:47:57 -07:00
Paul Sandoz
3857db466b 8014393: Minor typo in the spec for j.u.stream.Stream.findFirst()
Reviewed-by: alanb, chegar
2013-05-28 15:22:30 +02:00
Paul Sandoz
84d248176f 8014409: Spec typo: extra } in the spec for j.u.s.StreamBuilder
Also fixes documentation on StreamBuilder.OfDouble

Reviewed-by: alanb, chegar, mduigou
2013-05-30 16:08:43 +02:00
Jaroslav Bachorik
6258d24af0 8015627: test/com/sun/jmx/remote/NotificationMarshalVersions/TestSerializationMismatch.java fails in agentvm mode
Reviewed-by: alanb, chegar
2013-05-30 13:58:02 +02:00
John Zavgren
1e5fd0d595 8015299: Memory leak in jdk/src/solaris/bin/java_md_solinux.c
Reviewed-by: martin, dholmes, chegar, ksrini
2013-05-30 12:19:10 +01:00
Xueming Shen
9e918d6fbc 4759491: method ZipEntry.setTime(long) works incorrectly
6303183: Support NTFS and Unix-style timestamps for entries in Zip files
7012856: (zipfs) Newly created entry in zip file system should set all file times non-null values
7012868: (zipfs) file times of entry in zipfs should always be the same regardless of TimeZone

To add suuport of Info-ZIP extended timestamp in extra data fields

Reviewed-by: martin, alanb
2013-05-29 19:50:47 -07:00
Krystal Mo
13c5c423d6 Merge 2013-02-12 14:33:19 -08:00
Jon Masamitsu
d72b516201 8008966: NPG: Inefficient Metaspace counter functions cause large young GC regressions
Reviewed-by: mgerdin, coleenp
2013-02-12 14:15:45 -08:00
John Cuthbertson
eafc00bc25 8011724: G1: Stack allocate instances of HeapRegionRemSetIterator
Stack allocate instances of HeapRegionRemSetIterator during RSet scanning.

Reviewed-by: brutisso, jwilhelm
2013-04-18 10:09:23 -07:00
Mikael Gerdin
c47ec9b4ca 8011802: NPG: init_dependencies in class loader data graph can cause invalid CLD
Restructure initialization of ClassLoaderData to not add a new instance if init_dependencies fail

Reviewed-by: stefank, coleenp
2013-04-23 08:39:55 +02:00
Jon Masamitsu
ddbf6ad621 8012111: Remove warning about CMS generation shrinking
Reviewed-by: johnc, brutisso, stefank
2013-04-22 22:00:03 -07:00
Stefan Karlsson
bdf829cf3e 8012687: Remove unused is_root checks and closures
Reviewed-by: tschatzl, jmasa
2013-04-22 20:27:36 +02:00
Mikael Gerdin
dcedbaa149 Merge 2013-04-22 10:10:09 +02:00
Kevin Walls
ea9f270166 Merge 2013-04-19 05:14:39 +02:00
Kevin Walls
4e6c27cef0 7109087: gc/7072527/TestFullGCCount.java fails when GC is set in command-line
Reviewed-by: mgerdin
2013-04-18 17:02:20 +01:00
Jon Masamitsu
e1cbb28f3f 8011268: NPG: Free unused VirtualSpaceNodes
Reviewed-by: mgerdin, coleenp, johnc
2013-03-01 10:19:29 -08:00
Zhengyu Gu
4e7de85e4d 8006691: Remove jvm_version_info->is_kernel_jvm field
Remove is_kernel_jvm field in jvm_version_info structure, as kernel VM has been deprecated

Reviewed-by: mchung
2013-02-12 14:47:36 -05:00
Maurizio Cimadamore
1ec5dfafe0 8007464: Add graph inference support
Add support for more aggressive type-inference scheme

Reviewed-by: jjg
2013-02-12 19:25:09 +00:00
Phil Race
7ca3c9dd84 8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead
Reviewed-by: anthony
2013-02-12 09:58:21 -08:00
Stephen Colebourne
e7cdd4a93a 8007392: JSR 310: DateTime API Updates
Integration of JSR310 Date/Time API for M7

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Patrick Zhang <patrick.zhang@oracle.com>
Reviewed-by: darcy, alanb, naoto
2013-02-12 09:27:48 -08:00
Stephen Colebourne
73c043f49e 8007392: JSR 310: DateTime API Updates
8007520: Update date/time classes in j.util and j.sql packages
8007572: Replace existing jdk timezone data at <java.home>/lib/zi with JSR310's tzdb

Integration of JSR310 Date/Time API for M7

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Patrick Zhang <patrick.zhang@oracle.com>
Reviewed-by: darcy, alanb, naoto
2013-02-12 09:25:43 -08:00
Zhengyu Gu
ef7aa05f20 8007950: Undo hs_file permission change
Reverse hs_err file permission back to 0666, as early push was premature

Reviewed-by: dsamersoff, dcubed, acorn
2013-02-12 12:19:28 -05:00
Krystal Mo
851ae93451 8002169: TEST_BUG: compiler/7009359/Test7009359.java sometimes times out
Make the test less prone to timeout by reducing the amount of iteration and allowing main to be compiled

Reviewed-by: jrose
2013-02-12 07:39:42 -08:00
Vicente Romero
9bdfca5e56 8006334: javap, JavapTask constructor breaks with null pointer exception if parameter options is null
Reviewed-by: jjg
2013-02-12 13:36:56 +00:00
Dmitry Samersoff
232b814f68 8007786: JDK-8002048 testcase doesn't work on Solaris
Test built in into Solaris shell doesn't have -e operator

Reviewed-by: sla, sspitsyn
2013-02-12 16:02:14 +04:00
Roland Westrelin
c401bf065d 7197327: 40% regression on 8 b41 comp 8 b40 on specjvm2008.mpegaudio on oob
Add support for expensive nodes.

Reviewed-by: kvn
2013-02-12 12:56:11 +01:00
Attila Szegedi
d50e3823e4 8007900: Function binding is inefficient
Reviewed-by: jlaskey, lagergren
2013-02-12 12:47:51 +01:00
Hannes Wallnöfer
b98a77d26c 8007956: Wrong or obsolete system properties in docs/DEVELOPER_README
Reviewed-by: attila, jlaskey
2013-02-12 13:55:05 +01:00
Matherey Nunez
024075fabb 8004822: RFE to write language model API tests for repeating annotations based on the spec updates
Reviewed-by: jjg, abuckley
2013-02-12 11:28:45 +01:00
Lana Steuck
e8d53ad94a Merge 2013-02-11 16:15:09 -08:00
Lana Steuck
048185ef4c Merge 2013-02-11 16:14:27 -08:00
Lana Steuck
b21082a545 Merge 2013-02-11 16:12:53 -08:00
Morris Meyer
527b0d661a 8003252: PPC: move MacroAssembler into separate file
Moved MacroAssembler into separate file

Reviewed-by: twisti, kvn, dlong
2013-02-11 14:47:04 -08:00
Joe Darcy
44e3518c32 8007574: Provide isFunctionalInterface in javax.lang.model
Reviewed-by: jjg
2013-02-11 13:37:41 -08:00
Coleen Phillimore
faea95b8d3 8007320: NPG: move method annotations
Allocate method annotations and attach to ConstMethod if present

Reviewed-by: dcubed, jiangli, sspitsyn, iklam
2013-02-11 14:06:22 -05:00
Morris Meyer
46677b6d86 8003251: ARM: move MacroAssembler into separate file
Moved MacroAssembler into separate file

Reviewed-by: twisti, kvn, dlong
2013-02-11 10:38:11 -08:00
Jon Masamitsu
fabb8c6e25 8008508: CMS does not correctly reduce heap size after a Full GC
Reviewed-by: johnc, ysr
2013-02-11 10:31:56 -08:00
John Cuthbertson
90d010120f 8011343: Add new flag for verifying the heap during startup
Perform verification during VM startup under control of new flag and within a VMOperation.

Reviewed-by: stefank, jmasa, brutisso
2013-04-05 10:20:04 -07:00
Athijegannathan Sundararajan
1e1537c13f 8007915: Nashorn IR, codegen, parser packages and Context instance should be inaccessible to user code
Reviewed-by: lagergren, jlaskey, attila
2013-02-11 21:26:06 +05:30
Krystal Mo
212f30a18e 8006430: TraceTypeProfile is a product flag while it should be a diagnostic flag
Make sure all diagnostic and experimental flag kinds are checked in Flag::is_unlocked()

Reviewed-by: kvn
2013-02-10 22:35:38 -08:00
David Chase
43c01fd8b6 8007402: Code cleanup to remove Parfait false positive
Add array access range check

Reviewed-by: kvn
2013-02-09 12:55:09 -08:00
Attila Szegedi
710f06674d 8006943: Fix order of function method arguments to be (callee, thisObject)
Reviewed-by: jlaskey, lagergren
2013-02-09 16:58:48 +01:00
Jonathan Gibbons
b30e5c6313 8007610: javadoc doclint does not work with -private
Reviewed-by: darcy
2013-02-08 17:35:16 -08:00
Zhengyu Gu
ee53020f94 Merge 2013-02-08 16:56:03 -08:00
Morris Meyer
6a910ea8f2 8006851: When TieredCompilation is set, max code cache should be bumped to 256mb
Set ReservedCodeCacheSize to (default value)*5 when TieredCompilation is on.

Reviewed-by: kvn, twisti
2013-02-08 15:39:43 -08:00
Vladimir Kozlov
231bbf39f4 8007708: compiler/6855215 assert(VM_Version::supports_sse4_2())
Added missing UseSSE42 check. Also added missing avx2 assert for vpermq instruction.

Reviewed-by: roland, twisti
2013-02-08 15:07:17 -08:00
Zhengyu Gu
1e2b7bcabb Merge 2013-02-08 14:32:13 -08:00
Zhengyu Gu
15d1949971 Merge 2013-02-08 13:55:41 -08:00
Zhengyu Gu
ef59a25f71 8006691: Remove jvm_version_info.is_kernel_jvm field
Removed is_kernel_jvm from jvm_version_info as Kernel VM has been deprecated

Reviewed-by: mchung, coleenp
2013-02-08 16:31:48 -05:00
Zhengyu Gu
4e766f0ef1 8007791: More Restricted hs_err file permission
Enforce more restricted hs_file permission

Reviewed-by: acorn, dcubed, dsamersoff
2013-02-08 14:49:01 -05:00
Jia-Hong Chen
c3e1c6d07b 8005261: [parfait] #415 sun/java2d/opengl/GLXSurfaceData.c Memory leak of pointer 'glxsdo' allocated with malloc
Reviewed-by: prr, vadim
2013-02-08 11:36:18 -08:00
Jia-Hong Chen
410876d0ee 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
Reviewed-by: prr, vadim
2013-02-08 11:25:42 -08:00
Mikhail Cherkasov
fc6a9c2d07 8005932: Java 7 on mac os x only provides text clipboard formats
Reviewed-by: alexp, denis
2013-02-08 22:08:10 +04:00
Serguei Spitsyn
6ff685b4c8 Merge 2013-02-08 09:14:06 -08:00
Alejandro Murillo
2fd28ebb43 8007801: new hotspot build - hs25-b19
Reviewed-by: jcoomes
2013-02-08 08:16:00 -08:00
Alejandro Murillo
59bf14707f Added tag hs25-b18 for changeset f3f52401a78c 2013-02-08 08:07:07 -08:00
Alejandro Murillo
6c172dae73 Merge 2013-02-08 08:07:06 -08:00
James Laskey
32d71c7cb9 8006222: Move slot from SpillProperty to Property
Reviewed-by: hannesw, lagergren
2013-02-08 09:19:38 -04:00
Staffan Larsen
a6fefc1cae Merge 2013-02-08 14:05:36 +01:00
Staffan Larsen
e563c0ecf4 8006423: SA: NullPointerException in sun.jvm.hotspot.debugger.bsd.BsdThread.getContext(BsdThread.java:67)
Do not rely on mach thread port names to identify threads from SA

Reviewed-by: dholmes, minqi, rbackman
2013-02-08 12:48:24 +01:00
Christian Tornqvist
92053d4fb2 8007434: Write tests for 8006298
Four tests written for 8006298

Reviewed-by: mgerdin, coleenp
2013-02-08 10:42:24 +01:00
Vicente Romero
59318f1b2e 7167125: Two variables after the same operation in a inner class return different results
Reviewed-by: jjg, mcimadamore
2013-02-08 09:21:19 +00:00
Vicente Romero
561631ea44 8005931: javac doesn't set ACC_STRICT for classes with package access
Reviewed-by: mcimadamore
2013-02-08 09:15:27 +00:00
Vicente Romero
bba9417038 7166455: javac doesn't set ACC_STRICT bit on <clinit> for strictfp class
Reviewed-by: mcimadamore
2013-02-08 09:12:37 +00:00
Bengt Rutisson
8cf98587f7 Merge 2013-02-08 10:08:40 +01:00
Sonali Goel
f1442d8261 7195131: Update 2 compiler combo tests for repeating annotations to include package and default use cases
Reviewed-by: darcy
2013-02-07 20:47:06 -08:00
Vladimir Danushevsky
ac1a75df8c Merge 2013-02-07 20:40:14 -05:00
Valerie Peng
3ae3ac4f87 8007688: Blacklist known bad certificate
Added two known bad certs to the blacklist certs.

Reviewed-by: mullan
2013-02-07 16:03:43 -08:00
Xue-Lei Andrew Fan
e1d6f09bba 8006777: Improve TLS handling of invalid messages
Reviewed-by: wetmore, ahgross
2013-02-07 16:05:55 -08:00
Bill Pittore
9cad40fca6 Merge 2013-02-07 16:05:48 -05:00
David Katleman
4f0f5861ed Added tag jdk8-b76 for changeset aa274a6f970a 2013-02-07 12:33:21 -08:00
David Katleman
45f09caa8d Added tag jdk8-b76 for changeset 0da59c40187c 2013-02-07 12:33:10 -08:00
David Katleman
2683bbdf2f Added tag jdk8-b76 for changeset 95266e83c5e7 2013-02-07 12:33:01 -08:00
David Katleman
b0b7e821de Added tag jdk8-b76 for changeset 503de5a7b5ef 2013-02-07 12:32:59 -08:00
David Katleman
2ac871a5a1 Added tag jdk8-b76 for changeset faf3f7a9a86f 2013-02-07 12:32:50 -08:00
David Katleman
a68198e6bc Added tag jdk8-b76 for changeset 2fea158ee664 2013-02-07 12:32:39 -08:00
David Katleman
0813162608 Added tag jdk8-b76 for changeset 6bb57fea1027 2013-02-07 12:32:32 -08:00
Vladimir Ivanov
268a4d605c Merge 2013-02-07 12:23:51 -08:00
Mandy Chung
3479e4412a 8007611: logging behavior in applet changed
Reviewed-by: alanb, jgish
2013-02-07 09:41:47 -08:00
Hannes Wallnöfer
f2dc010c16 8007718: Make static RegExp properties fully compatible to other engines
Reviewed-by: lagergren, sundar
2013-02-07 15:33:17 +01:00
Hannes Wallnöfer
37905fb387 8007627: Support @Getter annotation on constructor
Reviewed-by: attila, lagergren
2013-02-07 14:58:41 +01:00
Athijegannathan Sundararajan
b247ddfcc3 8007715: Make sure that not all tests run with AllPermission
Reviewed-by: lagergren, attila
2013-02-07 17:17:29 +05:30
Daniel D. Daugherty
d5cad58ba3 Merge 2013-02-06 15:22:32 -08:00
Jim Holmlund
c88c3bb683 8007698: jtreg test T6306137.java won't compile with ASCII encoding
Reviewed-by: ksrini
2013-02-06 23:10:35 +00:00
Jia-Hong Chen
fb6927c36c 8005194: [parfait] #353 sun/awt/image/jpeg/imageioJPEG.c Memory leak of pointer 'scale' allocated with calloc()
Reviewed-by: prr, vadim
2013-02-06 14:45:02 -08:00
Daniel D. Daugherty
8ef946f380 7182152: Instrumentation hot swap test incorrect monitor count
Add/refine new tracing support using -XX:TraceRedefineClasses=16384.

Reviewed-by: coleenp, acorn, sspitsyn
2013-02-06 14:31:37 -08:00
Volker Simonis
285249963c 8006807: C2 crash due to out of bounds array access in Parse::do_multianewarray
Check ndimensions before accessing length[i] element

Reviewed-by: kvn
2013-02-06 11:33:49 -08:00
Mike Duigou
62b85e6a17 8006594: Add jdk_core target to jdk/test/Makefile
Reviewed-by: alanb
2013-02-06 11:28:25 -08:00
Alan Bateman
b74073c0db 8007405: Update java.lang.reflect API to replace SYNTHESIZED with MANDATED
Reviewed-by: darcy
2013-02-11 20:16:18 +00:00
Daniel D. Daugherty
249b55b573 8007420: add test for 6805864 to com/sun/jdi, add test for 7182152 to java/lang/instrument
Reviewed-by: coleenp, sspitsyn
2013-02-11 10:07:01 -08:00
Dmitry Samersoff
be1edfbb6f 8007536: Incorrect copyright header in JDP files
Copyright header in JDP files missed the "classpath exception" rule.

Reviewed-by: mikael
2013-02-11 18:44:22 +04:00
Kumar Srinivasan
83b9b38fc5 8007902: [unpack200] incorrect BootstrapMethods attribute
Reviewed-by: jjh
2013-02-10 08:49:39 -08:00
Kumar Srinivasan
8a4107ab64 8007519: [unpack200] produces bad class files when producing BootstrapMethods attribute
Reviewed-by: alanb
2013-02-10 08:07:59 -08:00
Weijun Wang
76953b4d1e 8007761: NTLM coding errors
Reviewed-by: chegar
2013-02-09 16:43:58 +08:00
Weijun Wang
d8233ec657 8001104: Unbound SASL service: the GSSAPI/krb5 mech
Reviewed-by: valeriep
2013-02-09 16:43:49 +08:00
Doug Lea
724f325f44 8005697: Add StampedLock
Reviewed-by: chegar, alanb, dice, martin
2013-02-09 08:35:57 +00:00
Joe Darcy
826105d548 8005623: Retrofit FunctionalInterface annotations to core platform interfaces
Reviewed-by: mduigou, chegar, alanb
2013-02-08 16:00:23 -08:00
Naoto Sato
ea5819f8d3 8007038: ArrayIndexOutOfBoundsException on calling localizedDateTime().print() with JapaneseChrono
Reviewed-by: okutsu
2013-02-08 09:35:14 -08:00
Katja Kantserova
19982b2e80 8007142: Add utility classes for writing better multiprocess tests in jtreg
Reviewed-by: alanb, rbackman
2013-02-07 11:22:04 +01:00
Martin Buchholz
925fe9142b 8006995: java launcher fails to open executable JAR > 2GB
Use O_LARGEFILE consistently when opening jar files

Reviewed-by: alanb, sherman
2013-02-06 17:59:54 -08:00
Lance Andersen
218dc713ff 8006505: additional changes for JSR 310 support
Reviewed-by: naoto, ulfzibis
2013-02-06 14:15:05 -05:00
Mike Duigou
58d8702881 8006595: Use jdk/test/Makefile targets in preference to local definitions
Reviewed-by: alanb
2013-02-06 11:12:46 -08:00
Mike Duigou
574897c629 8004726: Link bug ids to jbs rather than monaco
Reviewed-by: ohair, chegar, katleman
2013-02-06 11:09:24 -08:00
James Laskey
57ef7ce075 8007643: Add testing for quit and exit
Reviewed-by: sundar
2013-02-06 12:51:09 -04:00
James Laskey
574016d0d3 8007629: Remove extraneous quit from shell.js
Reviewed-by: sundar, hannesw
2013-02-06 11:57:51 -04:00
Jonathan Gibbons
305cf1f98b 8007566: DocLint too aggressive with not allowed here: <p>
Reviewed-by: mcimadamore
2013-02-06 07:49:31 -08:00
Alexander Scherbatiy
ac96c41fe8 8000326: Focus unable to traverse in the menubar
Reviewed-by: alexsch, malenkov
2013-02-06 18:25:06 +04:00
Maurizio Cimadamore
681e6c377e 8007479: Refactor DeferredAttrContext so that it points to parent context
Move DeferredAttrNode out of DeferredAttrContext; add support for nested deferred contexts

Reviewed-by: jjg
2013-02-06 14:04:43 +00:00
Maurizio Cimadamore
0336a57511 8007463: Cleanup inference related classes
Make Infer.InferenceContext an inner class; adjust bound replacement logic in Type.UndetVar

Reviewed-by: jjg
2013-02-06 14:03:39 +00:00
Dmitry Samersoff
c572f25040 8007277: JDK-8002048 testcase fails to compile
Sun.* classes is not included to ct.sym file and symbol file have to be ignored

Reviewed-by: alanb
2013-02-06 16:53:47 +04:00
James Laskey
5900e641b0 8007545: jjs input evalinput need to be NOT_ENUMERABLE
Reviewed-by: sundar, lagergren
2013-02-06 08:42:19 -04:00
Athijegannathan Sundararajan
c95d492268 8007619: Add support for deprecated properties of RegExp constructor
Reviewed-by: lagergren, hannesw
2013-02-06 17:56:12 +05:30
Chris Hegarty
dab327e501 8007625: race with nested repos in /common/bin/hgforest.sh
Reviewed-by: dholmes, ohair, ohrstrom
2013-02-06 11:36:19 +00:00
Hannes Wallnöfer
4eee363f14 8007273: Creation of ScriptFunctions can be refactored
Reviewed-by: lagergren, attila
2013-02-06 10:31:58 +01:00
Mandy Chung
e84e88f4c9 8007393: Possible race condition after JDK-6664509
Reviewed-by: alanb, jgish
2013-02-05 22:56:47 -08:00
Erik Helin
919ef8e0df 8004924: NPG: jmap -heap output should contain ClassMetaspaceSize value
Reviewed-by: stefank, mgerdin
2013-02-06 07:48:02 +01:00
Erik Helin
8f73f7d041 Merge 2013-02-26 22:31:35 +01:00
Poonam Bajaj
3720c9565f Merge 2013-02-26 08:58:20 -08:00
Bengt Rutisson
2023570fb1 Merge 2013-02-26 11:52:06 +01:00
Poonam Bajaj
62634823f9 Merge 2013-02-23 17:40:33 -08:00
John Cuthbertson
fb8617f293 8007221: G1: concurrent phase durations do not state the time units ("secs")
Add timer units to concurrent marking phases where the units were missing.

Reviewed-by: jmasa, ysr
2013-02-22 11:01:01 -08:00
Vladimir Kempik
050d7c9d90 8008546: Wrong G1ConfidencePercent results in GUARANTEE(VARIANCE() > -1.0) FAILED
Reviewed-by: brutisso, johnc
2013-02-21 23:58:05 -08:00
Jesper Wilhelmsson
ceb2baae92 8008314: Unimplemented() Atomic::load breaks the applications
Jlong atomics isn't fully implemented om all 32-bit platforms so we try to avoid it. In this case the atomic add wasn't needed.

Reviewed-by: dholmes, dlong
2013-02-21 11:16:50 +01:00
Erik Helin
2a4bf8ddd8 8008536: Add HotSpot support for printing class loader statistics for JMap
Reviewed-by: sla, brutisso
2013-02-20 16:41:23 +01:00
John Cuthbertson
ce66b0aad0 Merge 2013-02-05 22:24:36 -08:00
Jonathan Gibbons
23ca241597 8007485: test creates .class files in the test/ directory
Reviewed-by: mcimadamore
2013-02-05 21:55:41 -08:00
David Katleman
36a5ccb73f Merge 2013-02-05 18:55:24 -08:00
David Katleman
873c276a26 Merge 2013-02-05 18:54:59 -08:00
David Katleman
a0a52a2b85 Merge 2013-02-05 18:54:27 -08:00
David Katleman
67dea32d8c Merge 2013-02-05 18:54:24 -08:00
David Katleman
d9a61c7ea3 Merge 2013-02-05 18:54:11 -08:00
David Katleman
076aeb3106 Merge 2013-02-05 18:54:09 -08:00
Lana Steuck
bab241d2e7 Merge 2013-02-05 11:11:53 -08:00
Lana Steuck
750e587f23 Merge 2013-02-05 11:10:07 -08:00
Jim Holmlund
8985a7c2ac 8007504: Remove @ignore from tests that no longer need it
Reviewed-by: mcimadamore
2013-02-05 18:55:13 +00:00
John Cuthbertson
c2bb152e6c 8005032: G1: Cleanup serial reference processing closures in concurrent marking
Reuse the parallel reference processing oop closures during serial reference processing.

Reviewed-by: brutisso
2013-02-05 09:13:05 -08:00
Athijegannathan Sundararajan
292a819b53 8007523: VerifyError on script that uses regular expression literals with ternary operator
Reviewed-by: lagergren
2013-02-05 22:07:04 +05:30
Igor Ignatyev
014d9489bb 8006613: adding reason to made_not_compilable
Reviewed-by: kvn, vlivanov
2013-02-05 08:25:51 -08:00
Sergey Malenkov
ac95e3f1ed 8006790: Improve checking for windows
Reviewed-by: art, mschoene
2013-02-05 20:07:54 +04:00
Phil Race
05882c2a52 8001031: Better font processing
Reviewed-by: srl, vadim
2013-03-07 10:02:20 -08:00
Phil Race
ae2454b3e5 8004986: Better handling of glyph table
8004987: Improve font layout
8004994: Improve checking of glyph table

Reviewed-by: srl, jgodinez
2013-02-26 10:07:26 -08:00
Phil Race
ae5b3c9310 8008249: Sync ICU into JDK
Reviewed-by: bae, jgodinez
2013-02-15 13:07:17 -08:00
Stuart Marks
3a4936696c 8009857: Problem with plugin
Reviewed-by: jdn, mchung
2013-03-18 18:15:59 -07:00
Lance Andersen
d059d367eb 8009814: Better driver management
Reviewed-by: alanb, skoivu
2013-03-18 13:30:20 -04:00
Valerie Peng
c5d72546c0 8009610: Blacklist certificate used with malware
Updated the black list and the reg test with the new cert.

Reviewed-by: weijun
2013-03-11 20:18:32 -07:00
Alexey Utkin
28441d3ff3 8009463: Regression test test\java\lang\Runtime\exec\ArgWithSpaceAndFinalBackslash.java failing
Reviewed-by: alanb, ahgross
2013-03-08 13:35:15 +04:00
Daniel Fuchs
78478633f9 8009305: Improve AWT data transfer
Reviewed-by: art, skoivu, smarks, ant
2013-03-14 18:41:42 +01:00
Chris Hegarty
046d36e089 8009063: Improve reliability of ConcurrentHashMap
Reviewed-by: alanb, ahgross
2013-03-03 10:07:52 +00:00
Andrew Brygin
b15549ed0b 8007918: Better image writing
Reviewed-by: mschoene, prr, jgodinez
2013-02-26 01:41:36 +04:00
Andrew Brygin
57d870834f 8007667: Better image reading
Reviewed-by: prr, jgodinez, mschoene
2013-02-26 00:41:40 +04:00
Andrew Brygin
243470f47e 8007617: Better validation of images
Reviewed-by: prr, mschoene, jgodinez
2013-02-19 11:47:42 +04:00
Phil Race
46a46798f1 8006795: Improve font warning messages
Reviewed-by: bae, jgodinez
2013-02-08 09:15:01 -08:00
Dmitry Samersoff
e3fdd3983d 8006435: Improvements in JMX
Improvements in JMX

Reviewed-by: dfuchs, skoivu, alanb, mchung
2013-03-05 00:02:24 +04:00
Alexey Utkin
3c0be232be 8005942: (process) Improved Runtime.exec
Reviewed-by: alanb, ahgross
2013-02-22 17:49:15 +04:00
Sergey Bylokhov
0c8b65724a 8004261: Improve input validation
Reviewed-by: art, mschoene, amenkov
2013-02-15 13:49:38 +04:00
Erik Joelsson
99468dc6c0 8007524: build-infra: Incremental build of tools.jar broken
Reviewed-by: tbell
2013-02-05 16:50:05 +01:00
Athijegannathan Sundararajan
ac9ca521ad 8007522: IllegalStateException thrown from String.prototype.search function
Reviewed-by: jlaskey
2013-02-05 21:00:04 +05:30
Eric McCorkle
3d09f6b621 8007389: Remove uses of _ as identifier in jaxp
Reviewed-by: lancea, joehw
2013-02-05 14:56:34 +00:00
Edvard Wendelin
11036fb4d5 Merge 2013-02-05 15:35:35 +01:00
Vinnie Ryan
85c0519ca6 8007483: attributes are ignored when loading keys from a PKCS12 keystore
Reviewed-by: mullan
2013-02-05 14:25:47 +00:00
Athijegannathan Sundararajan
be500502ec 8007521: $ENV should be undefined when security manager is present
Reviewed-by: hannesw, jlaskey
2013-02-05 18:44:54 +05:30
Jaroslav Bachorik
631c9a9bad 8005791: Remove java.beans.* imports from com.sun.jmx.mbeanserver.Introspector
Reviewed-by: rbackman
2013-02-05 12:36:32 +01:00
Jaroslav Bachorik
d1a58e452a 7170447: Intermittent DeadListenerTest.java failure
Due to asynchronous nature of processing server notifications it may happen that an "unregister" notification ha$

Reviewed-by: sjiang
2013-02-05 12:28:47 +01:00
David Holmes
de47c5722f Merge 2013-02-05 00:59:40 -08:00
Coleen Phillimore
6101f88a80 Merge 2013-02-04 22:59:45 -08:00
Lana Steuck
dea2648931 Merge 2013-02-04 22:38:11 -08:00
Lana Steuck
7a0ded349d Merge 2013-02-04 22:37:44 -08:00
Jeremy Manson
329bc97900 8006508: Wrong frame constructor is called in os_linux_x86.cpp
Reviewed-by: dholmes, coleenp
2013-02-04 23:53:10 -05:00
Athijegannathan Sundararajan
31aa060b11 8007452: add scripting programmers doc changes for nashorn
Reviewed-by: jlaskey, hannesw
2013-02-05 09:11:03 +05:30
John Cuthbertson
ea33ae6c4d Merge 2013-02-04 19:40:27 -08:00
Jonathan Gibbons
05a047b442 8007492: DocumentationTool cannot locate standard doclet when invoked from JRE
Reviewed-by: darcy
2013-02-04 18:14:24 -08:00
Joe Darcy
920d11993c 8007113: Upgrade AnnotatedElement.isAnnotionPresent to be a default method
Reviewed-by: chegar, jfranck
2013-02-04 17:56:29 -08:00
Jonathan Gibbons
4d8014cefa 8007490: NPE from DocumentationTool.run
Reviewed-by: darcy
2013-02-04 15:30:10 -08:00
David Holmes
581f36e1cc Merge 2013-02-04 18:08:53 -05:00
David Holmes
eb1726c151 Merge 2013-02-04 18:08:50 -05:00
David Holmes
2cc65f1eb7 Merge 2013-02-04 18:08:42 -05:00
Coleen Phillimore
3b65d23bc8 Merge 2013-02-04 13:51:01 -08:00
Jon Masamitsu
0b84b16b84 Merge 2013-02-04 13:26:04 -08:00
John Cuthbertson
1333948266 8001384: G1: assert(!is_null(v)) failed: narrow oop value can never be zero
Flush any deferred card mark before a Java thread exits.

Reviewed-by: brutisso, jmasa
2013-02-04 13:24:57 -08:00
Jon Masamitsu
e13466742d Merge 2013-02-04 12:51:25 -08:00
Jia-Hong Chen
78b547afa7 8005052: [parfait] #416 X11SurfaceData.c UNINITIALISED OR MISSING RETURN VALUE
8005054: [parfait] #417 X11SurfaceData.c UNINITIALISED OR MISSING RETURN VALUE

Reviewed-by: prr, vadim
2013-02-04 12:04:38 -08:00
Jon Masamitsu
83473ea55d Merge 2013-02-04 12:01:07 -08:00
Xueming Shen
db8ced219f 8006295: Base64.Decoder.wrap(java.io.InputStream) returns InputStream which throws unspecified IOException on attempt to decode invalid Base64 byte stream
8006315: Base64.Decoder decoding methods are not consistent in treating non-padded data
8006530: Base64.getMimeDecoder().decode() throws exception for non-base64 character after adding =

Updated the spec to describe the expected behave explicitly and the implementation to follow

Reviewed-by: alanb, chegar, lancea
2013-02-04 11:58:43 -08:00
James Laskey
233a9042cf 8006191: cmd -> exec("cmd") in script mode
Reviewed-by: sundar, lagergren, hannesw
2013-02-04 14:48:35 -04:00
Volker Simonis
37d83019d0 8007475: Memory stomp with UseMallocOnly
Fix off-by-one error

Reviewed-by: coleenp, hseigel
2013-02-04 13:14:12 -05:00
Eric McCorkle
16990e896a 8006949: Update hotspot for MethodParameters format change
8006907: Hotspot should reject classfiles with multiple MethodParameters attributes

Update to Hotspot's processing of MethodParameters attributes in classfiles

Reviewed-by: coleenp, jrose
2013-02-04 13:05:32 -05:00
Vinnie Ryan
ddbfa5fe53 8006994: Cleanup PKCS12 tests to ensure streams get closed
Reviewed-by: mullan
2013-02-04 17:20:26 +00:00
Konstantin Shefov
5712b216b4 7077259: [TEST_BUG] [macosx] Test work correctly only when default L&F is Metal
Reviewed-by: serb, alexsch
2013-02-04 16:01:06 +00:00
Sergey Bylokhov
7add1f152d 8004821: Graphics2D.drawPolygon() fails with IllegalPathStateException
Reviewed-by: prr, flar
2013-02-04 19:50:06 +04:00
Marcus Lagergren
8b7a8d75b3 8007215: Varargs broken for the case of passing more than the arg limit arguments
Reviewed-by: jlaskey, attila
2013-02-04 16:20:05 +01:00
Attila Szegedi
bd2303d9e4 8007460: var assignment to a parameter in a varargs method causes compilation error
Reviewed-by: jlaskey, lagergren
2013-02-04 15:59:44 +01:00
Petr Pchelko
ab34438938 8005405: [macosx] Drag and Drop: wrong animation when dropped outside any drop target
Changed the calculation of the drag image offset

Reviewed-by: serb, kizune
2013-02-04 13:54:53 +00:00
Harold Seigel
1831def9cc 8000968: NPG: UseCompressedKlassPointers asserts with ObjectAlignmentInBytes for > 32G CompressedOops
Pick a base that works for both CompressedOpps alignment and CompressedKlassPtrs alignment.

Reviewed-by: kvn, roland
2013-02-04 08:26:02 -05:00
James Laskey
58f1fb6ecd 8007455: Extraneous $(ECHO) in make/Makefile
Reviewed-by: sundar
2013-02-04 08:13:05 -04:00
Roland Westrelin
da5499f4ed 8007144: Incremental inlining mistakes some call sites for dead ones and doesn't inline them
Wrong detection for dead call sites.

Reviewed-by: kvn
2013-02-04 11:30:37 +01:00
Mikael Vidstedt
eaa663b241 8007403: Incorrect format arguments in adlparse.cpp
Reviewed-by: kvn, twisti
2013-02-04 10:28:39 -08:00
Erik Joelsson
2b800f01d9 8007275: build-infra: Create final-images target
Reviewed-by: tbell
2013-02-04 11:02:03 +01:00
Erik Joelsson
fe5aed65c2 8007268: build-infra: configure reports Solaris needs gcc for deploy, but logs don't indicate it's used
Reviewed-by: tbell, katleman
2013-02-04 10:58:26 +01:00
Erik Joelsson
2708349f7c 8007093: build-infra: Make should fail if spec is older than configure files
Reviewed-by: tbell
2013-02-04 10:53:38 +01:00
Roland Westrelin
f13dbb00cf 8005114: VM is crashing in ciKlass*ciObjArrayKlass::element_klass() if metaspaces are full
Missing test for loaded klass in c1

Reviewed-by: kvn
2013-02-04 09:11:21 +01:00
Harold Seigel
6c6a537471 Merge 2013-02-03 17:12:31 -05:00
Harold Seigel
812262d16b 7197672: There are issues with shared data on windows
On Windows, set rw protection on the CDS file just before removing it.

Reviewed-by: dcubed, iklam
2013-02-03 16:49:16 -05:00
Edvard Wendelin
3562a0b06d Merge 2013-02-03 22:43:57 +01:00
Dmitry Samersoff
302a583c08 8002048: Protocol to discovery of manageable Java processes on a network
Introduce a protocol to discover manageble Java instances across a network subnet, JDP

Reviewed-by: sla, dfuchs
2013-02-03 22:28:08 +04:00
Dmitry Samersoff
eea117f3e5 8002048: Protocol to discovery of manageable Java processes on a network
Introduce a protocol to discover manageble Java instances across a network subnet, JDP

Reviewed-by: sla, dfuchs
2013-02-03 21:39:58 +04:00
Brian Burkhalter
3f02516d3e 6471906: java.lang.NegativeArraySizeException in tenToThe
Reviewed-by: darcy
2013-02-03 18:20:24 +04:00
Vicente Romero
a4a897ce52 7199823: javac generates inner class that can't be verified
Reviewed-by: jjg, mcimadamore
2013-02-03 02:31:30 +00:00
Vicente Romero
a9f424c887 8005075: Pool.Method, and Pool.Variable redundant Symbol field should be removed
Reviewed-by: jjg
2013-02-02 21:04:56 +00:00
Ragini Prasad
e618b1556c 8007135: tools/launcher/VersionCheck.java failing with new tool jabswitch
Reviewed-by: ksrini, mduigou
2013-02-02 12:08:43 -08:00
Christian Tornqvist
898965f458 8000363: runtime/7158988/FieldMonitor.java fails with exception
Removed unnecessary shell script in the test.

Reviewed-by: coleenp, sla
2013-02-02 20:13:27 +01:00
Chris Hegarty
b61bb15030 8007322: untangle ftp protocol from general networking URL tests
Reviewed-by: alanb
2013-02-02 17:15:13 +00:00
Christian Tornqvist
8734c66d55 8005013: Add NMT tests
Add tests for the Native Memory Tracking feature, includes regression tests for 8005936 and 8004802

Reviewed-by: zgu, coleenp
2013-02-02 16:34:10 +01:00
Yumin Qi
82206bd7f5 Merge 2013-02-02 03:51:01 -08:00
Christian Tornqvist
ac8a131b61 Merge 2013-02-02 08:46:48 +01:00
Yumin Qi
4bc9ed2c1f Merge 2013-02-01 22:41:34 -08:00
Christian Tornqvist
2195d1d5e4 Merge 2013-02-02 07:24:29 +01:00
Kumar Srinivasan
8da1d4a40c 8007428: [launcher] add tools/launcher/FXLauncherTest.java to ProblemList.txt
Reviewed-by: mchung
2013-02-01 22:18:18 -08:00
Kumar Srinivasan
81a6d7fb01 8003549: (pack200) assertion errors when processing lambda class files with IMethods
Add more check for opcode, sketch provided by jrose

Reviewed-by: jrose
2013-02-01 22:12:52 -08:00
Jiangli Zhou
7eb8af5534 Merge 2013-02-01 19:36:55 -08:00
Joe Darcy
0050c5b4fb 6964528: Double.toHexString(double d) String manipulation with + in an append of StringBuilder
Reviewed-by: shade
2013-02-01 19:30:02 -08:00
Mikael Vidstedt
26b2bbe306 8007257: NPG: metaspace.cpp: Incorrect arguments in calls to err_msg
Fix size checks in assert and corrected some print formats. Also reviewed by vitalyd@gmail.com.

Reviewed-by: coleenp, sspitsyn
2013-02-01 17:21:53 -08:00
Michal Frajt
9d47280d2a 7189971: Implement CMSWaitDuration for non-incremental mode of CMS
Reviewed-by: jmasa, johnc, ysr
2013-02-01 17:02:36 -08:00
Christian Tornqvist
111ddcc827 8005012: Add WB APIs to better support NMT testing
Add WB API functions to enable better NMT testing

Reviewed-by: dholmes, zgu
2013-02-01 23:48:08 +01:00
Yumin Qi
bae6c82c7a Merge 2013-02-01 14:42:43 -08:00
John Cuthbertson
d701ede8bb 8006894: G1: Number of marking threads missing from PrintFlagsFinal output
Set ConcGCThreads to the calculated number of marking threads.

Reviewed-by: jmasa, ysr
2013-02-01 13:17:04 -08:00
Brian Burkhalter
854e269f20 5035569: Formatter should document that %a conversion unsupported for BigDecimal args
Reviewed-by: darcy
2013-02-01 21:01:44 +00:00
Joe Darcy
c2e77030a1 8001614: Include annotation type to documented supported-ness
Reviewed-by: alanb, jjg, tbell
2013-02-01 13:01:26 -08:00
Jiangli Zhou
7cadb57785 Merge 2013-02-01 15:25:37 -05:00
Jonathan Gibbons
8f90cd0025 8007344: javac may not make tree end positions and/or doc comments available to processors and listeners
Reviewed-by: darcy
2013-02-01 12:01:03 -08:00
Yumin Qi
d907dfa21e Merge 2013-02-01 10:57:06 -08:00
Harold Seigel
4a1c674d5b Merge 2013-02-01 13:30:12 -05:00
Harold Seigel
a2966dd62d 8006298: Specifying malformed JFR options (-XX:+FlightRecorderOptions) outputs non-sensical error
Change error messages for malformed options so the messages are more useful.

Reviewed-by: mikael, kvn, nloodin
2013-02-01 14:14:54 -05:00
Tim Bell
6b4b68a145 8006808: mapfile use check in jdk/make/common/shared/Defs-solaris.gmk is throwing 'egrep: syntax error'
Use a valid egrep expression in the non-SPARC case

Reviewed-by: dholmes
2013-02-01 09:16:19 -08:00
Jonathan Gibbons
7ee6242d0c 8007305: DPrinter: provide better usage message
Reviewed-by: mcimadamore
2013-02-01 08:36:15 -08:00
Jonathan Gibbons
81e9d881ca 8007306: DPrinter: improve display of impl-class, internal tag/kind, and external tag/kind
Reviewed-by: mcimadamore
2013-02-01 08:33:48 -08:00
Andrew Brygin
01ea5d17ec 8004801: The image of BufferedImage.TYPE_INT_ARGB is blank
Reviewed-by: prr
2013-02-01 20:06:27 +04:00
Jayashree Viswanathan
38f3a59c9a 8006536: [launcher] removes trailing slashes on arguments
Reviewed-by: ksrini, akhil
2013-02-01 07:25:51 -08:00
Fredrik Öhrström
97d1424b48 Merge 2013-02-01 11:22:41 +01:00
Chris Hegarty
d0830009e8 8006395: Race in async socket close on Linux
Reviewed-by: alanb, dsamersoff
2013-02-01 06:51:37 +00:00
Serguei Spitsyn
932c29e08e 8006731: JSR 292: the VM_RedefineClasses::rewrite_cp_refs_in_method() must support invokedynamic
The invokedynamic bytecode ref to a CP entry needs to be checked and fixed as well.

Reviewed-by: coleenp, twisti
2013-01-31 20:11:14 -08:00
Serguei Spitsyn
da8ccb9375 8006546: JSR 292: typos in the ConstantPool::copy_cp_impl()
Simple typos that need to be fixed

Reviewed-by: coleenp, twisti
2013-01-31 20:09:16 -08:00
Serguei Spitsyn
823c749bd1 8006542: JSR 292: the VM_RedefineClasses::append_entry() must support invokedynamic entry kinds
Need a support for invokedynamic entry kinds when new and old constant pools are merged.

Reviewed-by: coleenp, twisti
2013-01-31 20:07:18 -08:00
Roger Riggs
9bf4d2f978 8004353: Generated html is wrong for overview.html; content has incorrect css footer class
Reviewed-by: jjg
2013-01-31 19:31:37 -08:00
Jonathan Gibbons
64ef3bfccc 8007329: minor issues in impl class hierarchry for DCTree.* classes
Reviewed-by: darcy
2013-01-31 19:19:40 -08:00
Joe Darcy
71b457cb97 8007351: Malformed copyright statements in typeAnnotations test directory
Reviewed-by: jjg
2013-01-31 18:58:17 -08:00
Yumin Qi
b543c19bac 8000973: SA on windows thread inspection is broken
After bug 7161732, On Windows SA could not find correct address of thread_id of OSThread since _thread_id moved to end of the class . The presupposition of the address is following thread handle no longer stands. Fix by adding thread_id field to OSThread and getting the  address directly from OSThread.

Reviewed-by: nloodin, sspitsyn
2013-01-31 17:43:01 -08:00
Hannes Wallnöfer
4f2891ca8d 8007060: Primitive wrap filter throws ClassCastException in test262parallel
Reviewed-by: sundar, jlaskey, lagergren
2013-02-01 02:24:15 +01:00
David Katleman
2ccecb9e10 Added tag jdk8-b75 for changeset dbafd8b0d8a2 2013-01-31 17:04:55 -08:00
David Katleman
79896f3eaf Added tag jdk8-b75 for changeset cfe93cb07f19 2013-01-31 17:04:47 -08:00
David Katleman
7c22c50e9e Added tag jdk8-b75 for changeset bef9d985cc1c 2013-01-31 17:04:40 -08:00
David Katleman
34d99c6b39 Added tag jdk8-b75 for changeset 504959da18bb 2013-01-31 17:04:37 -08:00
David Katleman
545ef0e5fe Added tag jdk8-b75 for changeset 3b129a5ff9fd 2013-01-31 17:04:28 -08:00
David Katleman
7ecc657cee Added tag jdk8-b75 for changeset 5aa96ebbc95e 2013-01-31 17:04:24 -08:00
David Katleman
f9329eb66f Added tag jdk8-b75 for changeset a86f171d15a1 2013-01-31 17:04:19 -08:00
Weijun Wang
0c6cb9cdc2 8006564: Test sun/security/util/Oid/S11N.sh fails with timeout on Linux 32-bit
Reviewed-by: alanb
2013-02-01 07:39:41 +08:00
Brian Burkhalter
f7f0768c22 6355704: (fmt) %f formatting of BigDecimals is incorrect
Reviewed-by: darcy
2013-01-31 14:29:19 -08:00
Lana Steuck
15cde403c4 Merge 2013-01-31 14:10:14 -08:00
Lana Steuck
ad121b14cb Merge 2013-01-31 14:10:02 -08:00
Tim Bell
6b6febce98 8006933: Need to use nawk on Solaris to avoid awk limitations
Reviewed-by: erikj, dholmes, dsamersoff
2013-01-31 13:31:30 -08:00
Mike Duigou
665fca9d60 8006709: Add minimal support of MacOSX platform for NetBeans Projects
Adds support for MacOSX platform and architecture detection. Other minor updates (-source/target 1.8)

Reviewed-by: ohair
2013-01-31 13:27:04 -08:00
Xueming Shen
320ce960ce 8007298: Base64.getMimeDecoder().decode() throws IAE for a single non-base64 character
8006526: Base64.Decoder.decode(String) spec contains a copy-paste mistake

To ignore single non-base64 char in mime decoding

Reviewed-by: alanb
2013-01-31 13:13:14 -08:00
Joe Darcy
757d9cdeb9 8007115: Refactor regression tests for java.lang.reflect.Parameter
Reviewed-by: emc
2013-01-31 12:23:04 -08:00
Joe Darcy
4484857b50 8007313: Remove use of {ContainerFor/ContainedBy} from langtools
Reviewed-by: jjg
2013-01-31 12:16:03 -08:00
Joe Darcy
9101ca61f5 8005832: Remove java.lang.annotation.{ContainedBy, ContainerFor} annotation types
Reviewed-by: mduigou
2013-01-31 12:13:21 -08:00
Xueming Shen
907f0724ce 8005394: Base64.Decoder/Encoder.wrap(XStream) don't throw NPE for null args passed
To check null for dec/enc.wrap methods

Reviewed-by: alanb
2013-01-31 11:09:36 -08:00
David Buck
b3fa7187ae 7042126: (alt-rt) HashMap.clone implementation should be re-examined
Test case for cr7042126. Issue only found in OracleJDK, but test case is valid for OpenJDK as well

Reviewed-by: mduigou
2013-01-31 10:55:15 -08:00
John Cuthbertson
7d2ccf3a21 8005875: G1: Kitchensink fails with ParallelGCThreads=0
Check that the concurrent marking worker gang exists in ConcurrentMark::print_worker_threads_on(). Changes were also reviewed by Vitaly Davidovich <vitalyd@gmail.com>.

Reviewed-by: brutisso
2013-01-31 10:45:09 -08:00
Lana Steuck
c78a8aad38 Merge 2013-01-31 10:23:49 -08:00
Lana Steuck
40c0ad3990 Merge 2013-01-31 10:22:25 -08:00
Attila Szegedi
fe52eb5992 8006529: Methods always get callee - it should be conditional
This commit streamlines the bytecode function signatures, prologue, local variable use, scope creation, and invocation. It started out quite innocently when we noticed that we always emit __callee__ parameters for all functions even when they are not needed, but it turned out to be quite a deep rabbit hole. In the end, I identified exact conditions when functions need to have a callee parameter, when they need to receive parent scope, when they need to create their own scope, when they need to have variable arity signature, and when they need to have an "arguments" object, and made sure that callee parameters in signatures only show up when they are needed, that parent function's scope is only passed to a child function when it is needed, that the function only creates its own scope when it is needed. In crypto.js, the number of scopes dropped from 446 to 244, and the number of callees dropped from 315 to 145.

Reviewed-by: jlaskey, lagergren
2013-01-31 18:34:42 +01:00
Pete Brunet
018fbffe54 7179482: Component.accessibleContext and JComponent.accessibleContext refactoring
Reviewed-by: art, anthony, alexsch
2013-01-31 18:51:17 +04:00
Athijegannathan Sundararajan
bdcffc23f7 8007286: Add JavaAdapter and importPackage to compatibility script
Reviewed-by: lagergren, jlaskey
2013-01-31 20:07:40 +05:30
Leonid Romanov
d843dec3b7 8007006: [macosx] Closing subwindow loses main window menus
Reviewed-by: anthony
2013-01-31 18:25:59 +04:00
Fredrik Öhrström
2b389730e2 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:03:42 +01:00
Fredrik Öhrström
c2b707c559 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:02:58 +01:00
Fredrik Öhrström
ba0917c531 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:02:44 +01:00
Fredrik Öhrström
676769c08f 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:02:29 +01:00
Fredrik Öhrström
45c58805e7 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:01:45 +01:00
Fredrik Öhrström
9f5b40123d 8006872: Stop creating four jars with identical content in the new build system
Reviewed-by: erikj
2013-01-31 14:00:09 +01:00
Joel Borggrén-Franck
34e1726860 8005712: Simplify support for repeating annotations in j.l.r.AnnotatedElement
8004919: AnnotationSupport uses possibly half-constructed AnnotationType instances

Implements the simplified semantics for repeating annotations and removes the incorrect obtaining of an AnnotationType

Reviewed-by: darcy, abuckley
2013-01-31 10:10:34 +01:00
David Katleman
9af4557880 Merge 2013-01-30 13:39:23 -08:00
David Katleman
5725cfdc73 Merge 2013-01-30 13:04:22 -08:00
Alejandro Murillo
294ab2b404 Merge 2013-01-30 10:18:33 -08:00
Jonathan Gibbons
c3cd43825b 8007034: debug printer for javac internals
Reviewed-by: mcimadamore
2013-01-30 09:47:12 -08:00
Jonathan Gibbons
ebc0ebf54d 8007096: DocLint parsing problems with some comments
Reviewed-by: mcimadamore
2013-01-30 09:40:54 -08:00
Athijegannathan Sundararajan
fcd28bdcc5 8007140: Java.extend crashes when attempting to extend java.lang.Object
Reviewed-by: lagergren, hannesw
2013-01-30 21:15:14 +05:30
Hannes Wallnöfer
411b70d54a 8007109: Regression: String(ConsString) does not flatten argument to String
Reviewed-by: sundar, lagergren
2013-01-30 14:57:19 +01:00
Athijegannathan Sundararajan
8cd63a75f2 8007132: Java objects returned from constructor functions are lost
Reviewed-by: hannesw, lagergren, attila
2013-01-30 17:52:54 +05:30
Marcus Lagergren
30b950d2d2 8007062: Split Lower up into Lower/Attr/FinalizeTypes. Integrate AccessSpecalizer into FinalizeTypes
Lower suffered from being a "God class" trying to do everything at once.  As Nashorn code generation has grown, so has Lower. It does several post processing passes, tries to do several things at once even though all type information isn't in place, adjusting state afterwards and so on. It also performs control flow analysis, type attribution and constant folding, and  everything else code generation related before byte code emission. I have now separated the compilation process into Lower (create low level nodes from high level ones, copy code such as finally block inlining etc), Attr (assign types and symbols to all nodes - freeze slot and scope information) and FinalizeTypes (insert explicit casts, specialize invoke dynamic types for scope accesses). I've removed the kludgy AccessSpecializer, as this now integrates naturally with typing. Everything is now much easier to read and each module performs only one thing. I have added separate loggers for the separate tiers. In the process I have also fixed: (1) problems with type coercion (see test/script/basic/typecoercion.js, basically our coercion was too late and our symbol inference was erroneous. This only manifested itself in very rare occasions where toNumber coercion has side effects, such as for example when valueOf is overridden)  (2) copying literal nodes (literal copy did not use the superclass copy, which made all the Node specific fields not to be copied  (3) erroneous literal tokenization (literals shouldn't always just inherit token information from whatever node that creates them) (4) splitter weighnodes - unary nodes were considered weightless  (4) removed the hateful and kludgy "VarNode.shouldAppend", which really isn't needed when we have an attribution phase that determines self reference symbols (the only thing it was used for) (5) duplicate line number issues in the parser (6) convert bug in CodeGenerator for intermediate results of scope accesses (see test/script/basic/access-specializer.js) ... Several of these things just stopped being problems with the new architecture "can't happen anymore" and are not bug fixes per se. All tests run. No performance regressions exist that I've been able to measure. Some increases in performance were measured, but in the statistical margin of error (which is very wide as HotSpot currently has warmup issues with LambdaForms/invoke dynamic). Compile speed has not measurably increased.

Reviewed-by: jlaskey, attila
2013-01-30 12:26:45 +01:00
Lana Steuck
58717e9087 Merge 2013-01-29 20:19:48 -08:00
Lana Steuck
b034f7ca19 Merge 2013-01-29 20:16:12 -08:00
James Laskey
b342e3c536 8007094: Apply version to nashorn.jar manifest
Reviewed-by: sundar
2013-01-29 14:25:39 -04:00
Erik Joelsson
a1d7653c19 8006873: SWAT-b74 msvcr100.dll does not have the permission for all
Reviewed-by: alanb, tbell
2013-01-29 16:35:24 +01:00
Athijegannathan Sundararajan
ae80adfc10 8007091: Provide private API to pass application class loader for nashorn script engine
Reviewed-by: jlaskey, lagergren
2013-01-29 19:57:25 +05:30
Stefan Karlsson
e8860a177b 8004710: NPG: jmap could throw sun.jvm.hotspot.types.WrongTypeException after PermGen removal
When calculating live object regions, make sure that the alignment reserve, at the end of a TLAB, is excluded.

Reviewed-by: jmasa, brutisso
2013-01-29 10:51:33 +01:00
Joel Borggrén-Franck
b29b479461 8004698: Implement Core Reflection for Type Annotations
Reviewed-by: darcy
2013-01-29 10:32:49 +01:00
James Laskey
0b9014a9d6 8006676: Integrate Nashorn into new build system
Reviewed-by: jlaskey
2013-01-28 16:22:03 -04:00
Karen Kinnear
733d5fdd65 Merge 2013-01-28 09:33:55 -08:00
Athijegannathan Sundararajan
97a071dc3d 8007004: nashorn script engine should not use thread context class loader as script 'application loader'
Reviewed-by: attila, hannesw
2013-01-28 21:29:05 +05:30
Bharadwaj Yadavelli
cb255a0269 8004967: Default method cause VerifyError: Illegal use of nonvirtual
Recognize VM generated method in old verifier

Reviewed-by: acorn, coleenp
2013-01-28 10:55:30 -05:00
Karen Kinnear
b28f16c910 Merge 2013-01-28 10:34:07 -05:00
Jesper Wilhelmsson
2447f369f6 6348447: Specifying -XX:OldSize crashes 64-bit VMs
Heap size will be set to allow for OldSize to fit. Also reviewed by vitalyd@gmail.com

Reviewed-by: ehelin, jmasa
2013-01-28 15:41:45 +01:00
Erik Joelsson
7d75509a22 Merge 2013-01-28 14:23:20 +01:00
Erik Joelsson
8be9f14166 Merge 2013-01-28 14:23:09 +01:00
Athijegannathan Sundararajan
daaeb20eff 8006983: Introduce a command line option to switch off syntactic extensions of nashorn
Reviewed-by: lagergren, attila
2013-01-28 18:10:16 +05:30
Edvard Wendelin
a320378fac 8006864: Update java.security-linux to include changes in java.security
Reviewed-by: mchung, mullan
2013-01-28 11:07:07 +01:00
Karen Kinnear
3f92d0764c Merge 2013-01-27 21:58:34 -05:00
Vicente Romero
b5148d30e2 8006944: javac, combo tests should print out the number of threads used
Reviewed-by: mcimadamore
2013-01-27 19:38:44 +00:00
Dean Long
0a2347e0ba Merge 2013-01-27 01:07:09 -08:00
Lana Steuck
f018e9352d Merge 2013-01-26 19:24:46 -08:00
Lana Steuck
f76350f541 Merge 2013-01-26 19:22:51 -08:00
Lana Steuck
d6e0250020 Merge 2013-01-26 18:25:33 -08:00
Lana Steuck
739b41a21e Merge 2013-01-26 18:24:49 -08:00
Eric Mccorkle
c2419823c8 8006503: JVM_PrintStackTrace is not used in JDK
Reviewed-by: alanb, darcy
2013-01-26 16:57:02 +00:00
Morris Meyer
7d8f623180 6518907: cleanup IA64 specific code in Hotspot
Removed unused IA64 specific code

Reviewed-by: twisti, kvn, dholmes
2013-01-25 16:50:33 -08:00
David Chase
89b8658977 8006500: compiler/8004741/Test8004741.java fails intermediately
Rewrote the test to be more reliable, add test for invalid size exception

Reviewed-by: kvn
2013-01-25 16:09:14 -08:00
Morris Meyer
6c80586b40 8005811: Turn off TierdCompilation in JDK8 trunk for all platforms
Disable tiered compilation in jdk8 because of CodeCache and performance anomalies

Reviewed-by: kvn, twisti
2013-01-25 16:31:47 -08:00
Igor Ignatyev
1a9e6be809 8005439: no message about inline method if it specifed by CompileCommand
Reviewed-by: kvn, vlivanov
2013-02-01 03:02:01 -08:00
Igor Ignatyev
a25db953cc 8006410: allocating without ResourceMark when CompileCommand was specified
Reviewed-by: kvn, vlivanov
2013-02-01 02:50:23 -08:00
Yumin Qi
fe8363948e Merge 2013-01-25 13:47:52 -08:00
Ioi Lam
93b845e21b 6479360: PrintClassHistogram improvements
Jcmd <pid> GC.class_stats (UnlockDiagnosticVMOptions)

Reviewed-by: coleenp, hseigel, sla, acorn
2013-01-25 15:06:18 -05:00
Hannes Wallnöfer
327a6cf1b7 8006766: Array-like access to characters of a string is slow
Reviewed-by: lagergren, attila
2013-01-25 17:35:31 +01:00
Zhengyu Gu
fc0efc91c8 8000692: Remove old KERNEL code
Removed depreciated kernel VM source code from hotspot VM

Reviewed-by: dholmes, acorn
2013-01-25 10:04:08 -05:00
Yumin Qi
f3c57efb11 Merge 2013-01-25 04:23:49 -08:00
Alejandro Murillo
0c7d523859 8006827: new hotspot build - hs25-b18
Reviewed-by: jcoomes
2013-01-25 03:03:23 -08:00
Alejandro Murillo
bf0716e7e4 Merge 2013-01-25 03:02:56 -08:00
Alejandro Murillo
6e9aeb3520 Added tag hs25-b17 for changeset f767fc368725 2013-01-25 02:36:28 -08:00
Alejandro Murillo
d7fb5addc5 Merge 2013-01-25 02:36:28 -08:00
Christian Tornqvist
25189c1a6a 8006413: Add utility classes for writing better multiprocess tests in jtreg
Add a few utility classes to test/testlibrary to support multi process testing in jtreg tests. Added a test case for one of the utility classes. Also reviewed by Vitaly Davidovich

Reviewed-by: brutisso, dholmes, vlivanov, nloodin, mgerdin
2013-01-25 10:14:22 +01:00
Yunda
19303cc71d 8005278: Serviceability Agent: jmap -heap and jstack -m fail
BinaryTreeDictionary is typedef'ed as AFLBinaryTreeDictionary in vmStructs and in SA we still use old name for that. FreeList now is a template based class which is not reflect in SA type library. When SA does calculation of heap for CMS, the former will cause failure to retrieve BinaryTreeDictionary  sine the rename. The later will fail wherever it is used in SA.

Reviewed-by: dholmes, sla, coleenp
2013-01-24 23:30:45 -08:00
Serguei Spitsyn
020fe75e67 8005128: JSR 292: the mlvm redefineClassInBootstrap test crashes in ConstantPool::compare_entry_to
When constant pool is copied in merge_constant_pools the invokedynamic operands must be copied before.

Reviewed-by: coleenp, twisti
2013-01-24 22:13:32 -08:00
David Katleman
90c6fdd506 Added tag jdk8-b74 for changeset 2d74b1d7456b 2013-01-24 16:49:37 -08:00
David Katleman
686adf319b Added tag jdk8-b74 for changeset 64054e252871 2013-01-24 16:49:20 -08:00
David Katleman
bdd8df2f1b Added tag jdk8-b74 for changeset f0f3e46c8780 2013-01-24 16:49:01 -08:00
David Katleman
23ff2911e3 Added tag jdk8-b74 for changeset 6ab75b6a0432 2013-01-24 16:48:57 -08:00
David Katleman
86f89a0768 Added tag jdk8-b74 for changeset 8d54b69d4504 2013-01-24 16:48:45 -08:00
David Katleman
ad11d38f92 Added tag jdk8-b74 for changeset 5a4f1fb4c6ef 2013-01-24 16:48:39 -08:00
David Katleman
5288b84f0a Added tag jdk8-b74 for changeset dde885cc8685 2013-01-24 16:48:33 -08:00
Mandy Chung
fad9c0e89c 8004937: Improve proxy construction
Reviewed-by: jrose, ahgross
2013-01-24 16:45:38 -08:00
Daniel Fuchs
7303280ef5 8006446: Restrict MBeanServer access
Reviewed-by: alanb, mchung, darcy, jrose, ahgross, skoivu
2013-01-30 11:33:51 +01:00
Mandy Chung
7cb8f824d3 8006882: Proxy generated classes in sun.proxy package breaks JMockit
Reviewed-by: alanb, ahgross
2013-01-28 15:53:29 -08:00
Ioi Lam
27c881b2fb 8006280: Need to reorder metadata structures to reduce size (64-bit)
Reordered Klass, InstanceKlass and Method to save 8 bytes each

Reviewed-by: coleenp, jiangli
2013-01-24 10:57:38 -08:00
Bill Pittore
deceb833bf 8005722: Assert in c1_LIR.hpp incorrect wrt to number of register operands
In LIR_OpVisitState::visit() the receiver operand is processed twice

Reviewed-by: roland, vladidan
2013-01-24 13:27:54 -05:00
Vladimir Kozlov
4de970006b Merge 2013-02-12 09:54:34 -08:00
Bill Pittore
9bb5656e4b Merge 2013-02-08 16:08:17 -05:00
Joseph Provino
83321b989a 8003539: Minimal VM don't react to -Dcom.sun.management and -XX:+ManagementServer
A warning message should be displayed if these options are used with the Minimal VM.

Reviewed-by: dholmes, dsamersoff
2013-02-05 13:32:34 -05:00
Athijegannathan Sundararajan
5231fef61c 8006857: ClassCastException when interface implementing function uses arguments object
Reviewed-by: jlaskey, lagergren
2013-01-24 22:38:58 +05:30
Krystal Mo
c06a8276fe Merge 2013-01-24 09:06:16 -08:00
James Laskey
c2bdb49b75 8006852: Move tests from JIRA for prepopulated map failures
Reviewed-by: sundar
2013-01-24 12:15:29 -04:00
Sergey Malenkov
601fc96c27 8003400: JTree scrolling problem when using large model in WindowsLookAndFeel
Reviewed-by: alexsch
2013-01-24 18:06:24 +04:00
Jon Masamitsu
354116da47 Merge 2013-01-24 06:04:43 -08:00
Sergey Malenkov
6d5f0df029 8005138: test/java/beans/Introspector/TestTypeResolver.java fails
Reviewed-by: alexsch
2013-01-24 17:57:02 +04:00
Hannes Wallnöfer
d9ecc2ea0c 8006408: Clean up and specialize NativeString
Reviewed-by: jlaskey, lagergren
2013-01-24 14:55:57 +01:00
Sergey Bylokhov
2c1808e68d 8003173: [macosx] Fullscreen on Mac leaves an empty rectangle
Reviewed-by: anthony, alexsch
2013-01-24 17:50:03 +04:00
Sergey Malenkov
d22b9b7149 6817933: Setting the background of an HTML Widget changes the native Windows JFileChooser
Reviewed-by: alexsch
2013-01-24 17:26:32 +04:00
Athijegannathan Sundararajan
d3f071dc73 8006755: Functions inside with statements dont get correct scope
Reviewed-by: lagergren, attila
2013-01-24 17:49:03 +05:30
Alexander Zuev
c41878d46d 7143768: [macosx] Unexpected NullPointerException and java.io.IOException during DnD
Reviewed-by: alexp
2013-01-24 16:09:48 +04:00
Petr Pchelko
3f2ea7f894 8005997: [macosx] Printer Dialog opens an additional title bar
Reviewed-by: anthony, art
2013-01-24 15:55:04 +04:00
Alexander Potochkin
6eb458d364 7132793: [macosx] setWheelScrollEnabled action reversed
Reviewed-by: serb, art
2013-01-24 15:52:25 +04:00
Alexander Potochkin
7782e252f1 7147078: [macosx] Echo char set in TextField doesn't prevent word jumping
Reviewed-by: art
2013-01-24 15:26:40 +04:00
Athijegannathan Sundararajan
67db0ba236 8006575: Error in codegen for element access on primitive value
Reviewed-by: hannesw, lagergren
2013-01-24 16:21:32 +05:30
Krystal Mo
ae1a2f5e3c 8006758: LinkResolver assertion (caused by @Contended changes)
Treat anonymous classes as privileged code to restore the special handling for @Compiled during class file parsing

Reviewed-by: jrose, coleenp, kvn, dholmes
2013-01-24 02:03:38 -08:00
Erik Joelsson
24c9534dd7 Merge 2013-01-24 09:17:26 +01:00
Joe Darcy
6b27e06701 8006264: Add explanation of why default methods cannot be used in JDK 8 javax.lang.model
Reviewed-by: jjg
2013-01-23 20:11:07 -08:00
Jon Masamitsu
c727c73cce 8005452: NPG: Create new flags for Metaspace resizing policy
Reviewed-by: johnc, jwilhelm, coleenp, stefank
2013-01-23 19:08:04 -08:00
John Cuthbertson
251a9ff39c 8007772: G1: assert(!hr->isHumongous() || mr.start() == hr->bottom()) failed: the start of HeapRegion and MemRegion should be consistent for humongous regions
In do_marking_step(), we should always give up current region after scanning the object, if the region is humongous.

Reviewed-by: brutisso, jwilhelm, tamao
2013-02-11 15:24:48 -08:00
Bengt Rutisson
77ebf3cbc1 8002144: G1: large number of evacuation failures may lead to large c heap memory usage
Use Stack<> instead of GrowableArray to keep track of preserved marks. Also reviewed by vitalyd@gmail.com.

Reviewed-by: johnc, jcoomes
2013-02-10 21:15:16 +01:00
Bengt Rutisson
ff7575383f Merge 2013-02-07 18:40:45 -08:00
Bengt Rutisson
e39be2cb45 Merge 2013-02-07 22:04:17 +01:00
Jesper Wilhelmsson
2c17d50a8b 8006432: Ratio flags should be unsigned
Flags changed to be of uintx type

Reviewed-by: johnc, tamao
2013-02-07 15:51:25 +01:00
Tao Mao
63fd60257c 7052429: G1: Avoid unnecessary scanning of humongous regions during concurrent marking
Skip unnecessary scanning of bitmap for unmarked humongous objects/regions.

Reviewed-by: jwilhelm, johnc
2013-02-06 14:50:37 -08:00
David Katleman
f884e97af2 Merge 2013-01-23 15:40:21 -08:00
Vladimir Kozlov
8915295560 8003878: compiler/7196199 test failed on OS X since 8b54, jdk7u12b01
Limit vectors size to 16 bytes on BSD until the problem is fixed

Reviewed-by: twisti
2013-01-23 15:11:03 -08:00
Tim Bell
3fcddbbea2 8006797: build-infra JPRT builds need JPRT_ARCHIVE_INSTALL_BUNDLE in common/makefiles/Jprt.gmk
Reviewed-by: ohair
2013-01-23 13:30:11 -08:00
Michael Ernst
659a96edf9 8006775: JSR 308: Compiler changes in JDK8
Co-authored-by: Werner Dietl <wmdietl@cs.washington.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Co-authored-by: Mahmood Ali <mahmood@notnoop.com>
Reviewed-by: jjg
2013-01-23 13:27:24 -08:00
Maurizio Cimadamore
5b1a78dc92 8006694: temporarily workaround combo tests are causing time out in several platforms
Reviewed-by: jjg
2013-01-23 20:57:40 +00:00
Vladimir Kozlov
f1cf6ff588 8006799: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() (jdk part of 6896617)
Move hot loop in ISO_8859_1$Encode.encodeArrayLoop() into separate method encodeISOArray() to be replaced by JVM JIT compiler with optimized intrinsic code.

Reviewed-by: alanb, sherman
2013-01-23 11:47:07 -08:00
Joseph Provino
698fba94ef 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
Rename INCLUDE_ALTERNATE_GCS to INCLUDE_ALL_GCS and replace SERIALGC with INCLUDE_ALL_GCS.

Reviewed-by: coleenp, stefank
2013-01-23 13:02:39 -05:00
Coleen Phillimore
99039568f9 8006040: NPG: on_stack processing wastes space in ConstantPool
Added on_stack bit to flags.  Also MetadataMarkOnStack is used for more than JVMTI so had to be moved.

Reviewed-by: dholmes, stefank
2013-01-23 10:34:29 -05:00
Maurizio Cimadamore
eb646f3c09 8006692: jdk/test/java/util/Collections/BigBinarySearch.java fails to compile
Missing boxing cause spurious inference failure

Reviewed-by: jjg
2013-01-23 15:08:03 +00:00
Christopher Gruszka
ac591918e0 Merge 2013-01-23 08:50:19 -05:00
Athijegannathan Sundararajan
4135674f92 8006736: nashorn script engine should support the usage multiple global objects with same engine instance
Reviewed-by: lagergren, jlaskey, hannesw
2013-01-23 17:04:02 +05:30
Erik Joelsson
af4998b10e 8006658: build-infra: Make MILESTONE behave the same as JDK_BUILD_NUMBER
Reviewed-by: ohrstrom, dholmes, tbell
2013-01-23 11:42:29 +01:00
Erik Joelsson
0a44d7bfec 8006663: build-infra: Compare two arbitrary zip/jar files with compare.sh
Reviewed-by: tbell
2013-01-23 11:41:06 +01:00
Erik Joelsson
036eecdd79 8005855: build-infra: Remove -R flag when cross compiling
Reviewed-by: dholmes, tbell
2013-01-23 11:37:36 +01:00
Stephen Colebourne
4b926cfd51 8003680: JSR 310 Date/Time API
Integration of JSR310 Date/Time API for M6

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Richard Warburton <richard.warburton@gmail.com>
Co-authored-by: Michael Nascimento <misterm@gmail.com>
Reviewed-by: alanb, naoto, dholmes
2013-01-22 21:02:06 -08:00
Jonathan Gibbons
ef9719425e Merge 2013-01-22 19:07:20 -08:00
Jonathan Gibbons
cac8147988 8006728: temporarily workaround jtreg problems for doclint tests in othervm
Reviewed-by: jjh
2013-01-22 19:06:05 -08:00
Jonathan Gibbons
7bdddc8471 8006723: sjavac test fails to compile on clean build
Reviewed-by: ksrini
2013-01-22 18:43:22 -08:00
David Holmes
26936d0600 8006667: Merge issue: Profile attribute need to be examined before custom attributes
Swap profile checking and FXHelper checking

Reviewed-by: alanb
2013-01-22 20:04:15 -05:00
David Holmes
8b799721ae Merge 2013-01-22 19:31:02 -05:00
David Holmes
dfb3ff9459 Merge 2013-01-22 19:30:52 -05:00
Vladimir Kozlov
9e0c61f822 6896617: Optimize sun.nio.cs.ISO_8859_1$Encode.encodeArrayLoop() on x86
Use SSE4.2 and AVX2 instructions for encodeArray intrinsic.

Reviewed-by: roland
2013-01-22 15:34:16 -08:00
Zhengyu Gu
4d81507a36 Merge 2013-01-22 11:54:16 -08:00
Goetz Lindenmaier
44cdae9a57 8005055: pass outputStream to more opto debug routines
Pass the output stream to node->dump() and everything reachable from there

Reviewed-by: kvn
2013-01-22 11:31:25 -08:00
Zhengyu Gu
080750fe65 6871190: Don't terminate JVM if it is running in a non-interactive session
Don't handle CTRL_LOGOFF_EVENT event when the process is running in a non-interactive session

Reviewed-by: ctornqvi, acorn
2013-01-22 14:27:41 -05:00
Maurizio Cimadamore
1f8b2abf80 8006684: Compiler produces java.lang.VerifyError: Bad type on operand stack
Lambda desugaring generates spurious references to 'this' in static contexts

Reviewed-by: jjg
2013-01-22 16:39:51 +00:00
Athijegannathan Sundararajan
7014b0cced 8006678: Avoid too many Context.getGlobal() calls
Reviewed-by: lagergren, jlaskey
2013-01-22 22:07:12 +05:30
Maurizio Cimadamore
948888218b 8006673: TargetType52 fails because of bad golden file
Fix golden file in negative test

Reviewed-by: jjg
2013-01-22 16:23:35 +00:00
Jim Gish
43b8609138 4247235: (spec str) StringBuffer.insert(int, char[]) specification is inconsistent
Add blanket null-handling statement to StringBuilder and StringBuffer

Reviewed-by: mduigou
2013-01-22 11:14:13 -05:00
Akhil Arora
5dc4c11b2b 8004201: Add static utility methods to primitives to be used for redution operations
Reviewed-by: darcy, mduigou, briangoetz, dholmes
2013-01-25 16:13:39 -08:00
Henry Jen
293df92991 8005632: Extend java.util.Logger to use Supplier<String> for messages
Reviewed-by: briangoetz, mduigou
2013-01-25 16:13:32 -08:00
Kurchi Subhra Hazra
3e5a0c70ab 7017962: Obsolete link is used in URL class level spec
Change the link to an archived document

Reviewed-by: chegar, mduigou
2013-01-25 11:52:10 -08:00
Vinnie Ryan
2add9b3fcf 8006951: Avoid storing duplicate PKCS12 attributes
Reviewed-by: mullan
2013-01-25 17:47:37 +00:00
Vinnie Ryan
241fc73e25 8006946: PKCS12 test failure due to incorrect alias name
Reviewed-by: mullan
2013-01-25 16:19:39 +00:00
Alan Bateman
355fea6f2a 8006565: java.lang.instrument specification should make it clear that -javaagent is optional
Reviewed-by: sla, dcubed, mchung
2013-01-25 13:09:47 +00:00
Frank Ding
e349682e3d 7183373: URLClassloader.close() does not close JAR files whose resources have been loaded via getResource()
Reviewed-by: chegar
2013-01-25 17:00:18 +08:00
Joe Darcy
3807bcee8b 8006895: Clarify that FunctionalInferface is only informative
Reviewed-by: briangoetz
2013-01-24 16:54:11 -08:00
Vinnie Ryan
546eee6d15 8006863: javadoc cleanup for 8005408
Reviewed-by: alanb
2013-01-24 18:21:09 +00:00
Kumar Srinivasan
183657c9ab 8006850: [pack200] disable pack200 tests until JSR-308 is implemented
Reviewed-by: alanb
2013-01-24 09:34:07 -08:00
Vinnie Ryan
3727e751f6 8006855: PKCS12 test failures due to unsupported algorithm
Reviewed-by: mullan
2013-01-24 16:44:15 +00:00
Alan Bateman
a1d5ea2b9d 8006524: JSR-3: Allows java.beans to be optional
Reviewed-by: dfuchs, mchung
2013-01-24 09:47:09 +00:00
Sean Mullan
930299d58c 8006813: Compilation error in PKCS12KeyStore.java
Reviewed-by: valeriep
2013-01-23 20:46:39 -05:00
Vinnie Ryan
b680bc8ca7 8005408: KeyStore API enhancements
Reviewed-by: mullan
2013-01-23 23:13:54 +00:00
Vinnie Ryan
7dcd0b38a8 8006591: Protect keystore entries using stronger PBE algorithms
Reviewed-by: mullan
2013-01-23 21:25:49 +00:00
Xueming Shen
60e625f275 Merge 2013-01-23 10:31:10 -08:00
Xueming Shen
c3343fdb49 8006773: test/java/util/zip/ZipFile/FinalizeZipFile.java failing intermittently
Fixed the test case

Reviewed-by: alanb
2013-01-23 10:29:50 -08:00
Rob McKenna
6c5679d418 8004729: Add java.lang.reflect.Parameter and related changes for parameter reflection
Reviewed-by: darcy, forax, psandoz, dholmes, tbell
2013-01-23 17:54:34 +00:00
Alan Bateman
5f7ebf8d51 8006764: FunctionalInterface missing from rt.jar (old build)
Reviewed-by: lancea, forax
2013-01-23 15:12:28 +00:00
Chris Hegarty
12e480040a 8006669: sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/PostThruProxy.sh fails on mac
Reviewed-by: alanb
2013-01-23 14:45:44 +00:00
Alexey Utkin
3b0f760747 6519127: user.home property not set correctly
Registry-based approach was changed to SHGetKnownFolderPath/SHGetFolderPathW

Reviewed-by: alanb, anthony
2013-01-23 15:06:49 +04:00
Vinnie Ryan
cd509df8b6 8006741: javadoc cleanup for 6263419
Reviewed-by: alanb
2013-01-23 09:49:10 +00:00
Stephen Colebourne
df4d235c1f 8003680: JSR 310 Date/Time API
Integration of JSR310 Date/Time API for M6

Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Richard Warburton <richard.warburton@gmail.com>
Co-authored-by: Michael Nascimento <misterm@gmail.com>
Reviewed-by: alanb, naoto, dholmes
2013-01-22 20:59:21 -08:00
Stuart Marks
54752a2afe 8005646: TEST_BUG: java/rmi/activation/ActivationSystem/unregisterGroup/UnregisterGroup leaves process running
Reviewed-by: mchung
2013-01-22 18:30:49 -08:00
Vinnie Ryan
995a0dc1b8 6263419: No way to clean the memory for a java.security.Key
Reviewed-by: mullan
2013-01-22 23:32:15 +00:00
Stefan Karlsson
15d98b74e9 7140852: Add test for 7022100
Reviewed-by: sspitsyn, coleenp
2013-01-22 15:25:37 +01:00
Karen Kinnear
bc751c3469 8004903: VMThread::execute() calls Thread::check_for_valid_safepoint_state() on concurrent VM ops
Check_for_valid_safepoint_state() only applies to blocking VM ops

Reviewed-by: acorn, dholmes, dice, sspitsyn
2013-01-22 05:57:18 -08:00
Dave Dice
98c357abf8 8004902: correctness fixes motivated by contended locking work (6607129)
Misc correctness fixes

Reviewed-by: acorn, dholmes, dice, sspitsyn
2013-01-22 05:56:42 -08:00
Karen Kinnear
8f1dc20874 6444286: Possible naked oop related to biased locking revocation safepoint in jni_exit()
Add missing Handle.

Reviewed-by: acorn, dholmes, dice, sspitsyn
2013-01-22 05:55:04 -08:00
Attila Szegedi
245ec829ff 8006677: Remove unused FunctionNode flags
Reviewed-by: hannesw, jlaskey
2013-01-22 14:36:28 +01:00
Hannes Wallnöfer
739b531642 8006570: This-value for non-strict functions should be converted to object
Reviewed-by: jlaskey, lagergren, attila
2013-01-22 14:14:37 +01:00
Stefan Karlsson
fe173efccd 8006506: Add test for redefining methods in backtraces to java/lang/instrument tests
Reviewed-by: sspitsyn, coleenp
2013-01-22 13:53:53 +01:00
Mikael Gerdin
ad7544b47c 8004147: test/Makefile jtreg_tests target does not work with cygwin
Reviewed-by: ctornqvi, brutisso
2013-01-22 13:42:39 +01:00
Erik Joelsson
cd451cc955 8004151: build-infra: Generating X11 wrapper offset file is not cross compilable
Reviewed-by: dholmes, ohrstrom
2013-01-22 09:01:35 +01:00
Alan Bateman
a23a1a942b 8004502: Compact Profiles contents
Reviewed-by: dholmes, mchung
2013-01-21 23:35:36 -05:00
Alan Bateman
3ca765dfbd 8004931: add/removePropertyChangeListener should not exist in subset Profiles of Java SE
Reviewed-by: dholmes, mchung, ksrini
2013-01-21 23:23:12 -05:00
Alan Bateman
50ccbb6018 8003256: (profiles) Add support for profile identification
Reviewed-by: dholmes, mchung, ksrini
2013-01-21 23:21:15 -05:00
Alan Bateman
99f3285106 8003255: (profiles) Update JAR file specification to support profiles
Reviewed-by: dholmes, mchung, ksrini
2013-01-21 23:20:42 -05:00
David Holmes
945d6e8f23 8004265: Add build support for Compact Profiles
Reviewed-by: erikj, ohair
2013-01-21 23:17:58 -05:00
David Holmes
08f31d5198 8006651: build-infra: Import.gmk needs to add support for the minimal VM
Reviewed-by: erikj, ohair
2013-01-21 21:54:51 -05:00
Karen Kinnear
706efde6df Merge 2013-01-21 16:11:24 -05:00
Maurizio Cimadamore
3054ea5580 8005166: Add support for static interface methods
Support public static interface methods

Reviewed-by: jjg
2013-01-21 20:19:53 +00:00
Maurizio Cimadamore
a6fc182d40 8005851: Remove support for synchronized interface methods
Synchronized default methods are no longer supported

Reviewed-by: jjg
2013-01-21 20:15:16 +00:00
Maurizio Cimadamore
422c8bd914 8006566: Remove transient lambda-related guards from JavacParser
Remove transitional internal flag for allowing intersection types in cast

Reviewed-by: jjg
2013-01-21 20:14:39 +00:00
Maurizio Cimadamore
442154dcf9 8005244: Implement overload resolution as per latest spec EDR
Add support for stuck expressions and provisional applicability

Reviewed-by: jjg
2013-01-21 20:13:56 +00:00
Lana Steuck
8c4608f165 Merge 2013-01-21 11:16:36 -08:00
Lana Steuck
e5aa886e8b Merge 2013-01-21 11:16:28 -08:00
Lance Andersen
11e010320c 8006642: Fix javadoc warnings due to Integer.MAX_VALUE
Reviewed-by: alanb
2013-01-21 14:08:39 -05:00
Jonathan Gibbons
f251cc24ca 8006251: doclint: incorrect position for diagnostic for illegal text in tags
Reviewed-by: mcimadamore
2013-01-21 10:07:37 -08:00
Peter Jensen
7967c92db0 8006263: Supplementary test cases needed for doclint
Reviewed-by: mcimadamore
2013-01-21 10:00:46 -08:00
Athijegannathan Sundararajan
017fe2d002 8006635: Reduce access levels as much as possible
Reviewed-by: jlaskey, lagergren, attila
2013-01-21 21:17:38 +05:30
Erik Joelsson
ece23e1bac 8006579: build-infra: In jvm.cfg, alias -server to -client when no server jvm is built
Reviewed-by: tbell
2013-01-21 14:58:23 +01:00
Alexander Scherbatiy
14d1261536 8004298: NPE in WindowsTreeUI.ensureRowsAreVisible
Reviewed-by: serb
2013-01-21 17:55:31 +04:00
Doug Lea
3f14786363 8005311: Add Scalable Updatable Variables, DoubleAccumulator, DoubleAdder, LongAccumulator, LongAdder
Reviewed-by: chegar, darcy, goetz
2013-01-21 13:50:05 +00:00
Erik Joelsson
94b0107f2e Merge 2013-01-21 11:42:31 +01:00
Erik Joelsson
dab7afc69f 8006583: build-infra: Remove /javax/swing/SwingBeanInfoBase.java from src.zip
Reviewed-by: tbell
2013-01-21 11:42:17 +01:00
Attila Szegedi
acaee2a2f4 8006525: Give StaticClass objects their own linker
Reviewed-by: hannesw, lagergren
2013-01-21 11:03:56 +01:00
Bengt Rutisson
cfbcddfb0f 8006431: os::Bsd::initialize_system_info() sets _physical_memory too large
Use HW_MEMSIZE instead of HW_USERMEM to get a 64 bit value of the physical memory on the machine. Also reviewed by vitalyd@gmail.com.

Reviewed-by: sla, dholmes, dlong, mikael
2013-01-21 09:00:04 +01:00
Lana Steuck
f466a4f675 Merge 2013-01-20 23:39:11 -08:00
Lana Steuck
444cf2ed48 Merge 2013-01-20 23:38:27 -08:00
Lana Steuck
8e565b0c0e Merge 2013-01-20 23:37:21 -08:00
Lana Steuck
aa42a1616b Merge 2013-01-20 23:35:25 -08:00
Jason Uh
3d92cb12a6 8006092: SecurityPermission: printIdentity doesn't exist
Reviewed-by: weijun
2013-01-21 15:05:49 +08:00
David Holmes
2f7185008f 8004265: Add build support for Compact Profiles
Reviewed-by: erikj, ohair
2013-01-21 01:50:40 -05:00
Alan Bateman
c4c9a281f3 8004182: Add support for profiles in javac
Reviewed-by: dholmes
2013-01-21 01:46:31 -05:00
Masayoshi Okutsu
6bc0d6d200 8004489: Add support for Minguo and Hijrah calendars to CalendarNameProvider SPI
8006509: Add more calendar symbol names from CLDR

Reviewed-by: peytoia
2013-01-21 15:41:30 +09:00
Jonathan Gibbons
caf667de05 8004182: Add support for profiles in javac
Reviewed-by: mcimadamore
2013-01-21 01:27:42 -05:00
Bhavesh Patel
bd4ebc07d8 8006124: javadoc/doclet should be updated to support profiles
Reviewed-by: jjg
2013-01-21 00:45:35 -05:00
Bhavesh Patel
2c52089918 8006124: javadoc/doclet should be updated to support profiles
Reviewed-by: jjg, dholmes
2013-01-21 00:31:34 -05:00
Bhavesh Patel
2b742e4081 8006124: javadoc/doclet should be updated to support profiles
Reviewed-by: jjg, dholmes
2013-01-21 00:29:59 -05:00
Masayoshi Okutsu
f9d0dd3d72 4745761: (cal) RFE: Support builder for constructing Calendar
Reviewed-by: peytoia
2013-01-21 12:04:55 +09:00
Chris Hegarty
6b32c387f1 8006560: java/net/ipv6tests/B6521014.java fails intermittently
Reviewed-by: khazra, wetmore
2013-01-20 09:37:51 +00:00
Athijegannathan Sundararajan
993b92c985 8006557: JDK8/Lambda build clashes on Map.replace()
Reviewed-by: jlaskey
2013-01-19 22:35:43 +05:30
Lance Andersen
69757a1c92 8005080: JDBC 4.2 Core changes
Reviewed-by: naoto
2013-01-19 10:53:14 -05:00
Lance Andersen
c98a554aaf 8006139: add missing methods to javax.sql.rowset.serial.SQLInputImpl, SQLOutputImpl
Reviewed-by: naoto, ulfzibis, alanb
2013-01-19 10:11:19 -05:00
Mark Sheppard
4e11f499f4 8006568: HTTP protocol handler NLTM Authentication should use Base64 API
Reviewed-by: chegar, alanb
2013-01-19 08:39:20 +00:00
Athijegannathan Sundararajan
7784f11d28 8006584: improve variable handling in NashornScriptEngine
Reviewed-by: jlaskey, hannesw
2013-01-19 09:14:43 +05:30
Ragini Prasad
435bcab6c4 8000839: Integrate the Java Access Bridge with Java Runtime
Reviewed-by: ptbrunet, erikj
2013-01-18 11:33:31 -08:00
Ragini Prasad
a9080d9ab2 8000839: Integrate the Java Access Bridge with Java Runtime
Reviewed-by: ptbrunet, erikj
2013-01-18 11:31:33 -08:00
Alan Bateman
69b0c6aad4 6939260: (fs) BasicFileAttributes.lastModifiedTime() should return last modified time with higher precision
Reviewed-by: chegar
2013-01-18 18:48:44 +00:00
Staffan Larsen
091328ba71 Merge 2013-01-18 19:13:41 +01:00
John Zavgren
9bad85cb03 8005120: Compiler warnings in socket transport native code
Reviewed-by: chegar, dsamersoff
2013-01-18 17:34:40 +00:00
Erik Joelsson
8b7552a616 8003693: build-infra: bridgeBuild should allow for partial build (no hotspot)
Reviewed-by: tbell
2013-01-18 16:48:25 +01:00
Erik Joelsson
52b64fa9dc 8006567: jre/lib/applet missing from Mac JDK installation
Reviewed-by: tbell
2013-01-18 16:44:07 +01:00
Maurizio Cimadamore
00ae27b2cf 8006561: Langtools test failure: missing diags/examples
Forgot to hg add tests

Reviewed-by: jjg
2013-01-18 15:38:14 +00:00
Anton Litvinov
ca94a86847 8006417: JComboBox.showPopup(), hidePopup() fails in JRE 1.7 on OS X
Reviewed-by: art, serb
2013-01-18 18:34:46 +04:00
Petr Pchelko
db0f450d53 7179050: [macosx] Make LWAWT be able to run on AppKit thread
Removed irrelevant assertions from the LWAWT native methods

Reviewed-by: serb, anthony
2013-01-18 18:17:02 +04:00
Alejandro Murillo
1c9730cfb8 8006511: new hotspot build - hs25-b17
Reviewed-by: jcoomes
2013-01-18 05:33:32 -08:00
Alejandro Murillo
ab8570e77f Added tag hs25-b16 for changeset bf71fcc9d682 2013-01-18 05:19:07 -08:00
Alejandro Murillo
6e59c39db8 Merge 2013-01-18 05:19:06 -08:00
Staffan Larsen
c3d91fec59 Merge 2013-01-18 14:15:51 +01:00
Athijegannathan Sundararajan
cef1f6c50b 8006562: findOwnMH in nashorn "objects" package should be cleaned up
Reviewed-by: jlaskey, lagergren
2013-01-18 17:55:04 +05:30
Anthony Petrov
04fc62c5ed 8005465: [macosx] Evaluate if checking for the -XstartOnFirstThread is still needed in awt.m
Allow one to start AWT on the main thread w/o exceptions

Reviewed-by: art, serb
2013-01-18 14:17:11 +04:00
Bengt Rutisson
f3576a18a9 Merge 2013-01-18 11:03:15 +01:00
Erik Joelsson
272e33b245 8006520: build-infra: Fix sparkle-framework configure parameter
Reviewed-by: tbell, ohair
2013-01-18 09:58:23 +01:00
Athijegannathan Sundararajan
07484149d6 8006527: nashorn jsr223 engine does not work in sandbox
Reviewed-by: jlaskey, attila, lagergren
2013-01-18 08:45:06 +05:30
Coleen Phillimore
833b7fcfff 8006548: version wrong in new constantPool code
Fix increment problem with saved_version

Reviewed-by: dholmes
2013-01-17 22:11:57 -05:00
Jon Masamitsu
59f0209008 8006537: Assert when dumping archive with default methods
Reviewed-by: coleenp
2013-01-17 19:04:48 -08:00
Vladimir Kozlov
3eb6582f4b Merge 2013-01-17 18:47:36 -08:00
Fredrik Öhrström
3d5f55b851 8004658: Add internal smart javac wrapper to solve JEP 139
Reviewed-by: jjg
2013-01-18 00:16:21 +01:00
Jim Gish
a7f43eaad5 8006534: CLONE - TestLibrary.getUnusedRandomPort() fails intermittently-doesn't retry enough times
Increase number of retries to twice the number of ports in the reserved range

Reviewed-by: mduigou
2013-01-17 15:09:46 -05:00
Kurchi Subhra Hazra
8f2bd71dc9 7171415: java.net.URI.equals/hashCode not consistent for some URIs
Rewrite URI.hashCode() to consider encoded characters, also reviewed by vitalyd@gmail.com, schlosna@gmail.com

Reviewed-by: chegar
2013-01-17 14:50:02 -08:00
Brian Burkhalter
fe16fc39d6 8006090: Formatter asserts with -esa
Removed the offending assert

Reviewed-by: alanb, darcy
2013-01-17 12:49:33 -08:00
Coleen Phillimore
e508ba9b0b 7174978: NPG: Fix bactrace builder for class redefinition
Remove Method* from backtrace but save version so redefine classes doesn't give inaccurate line numbers.  Removed old Merlin API with duplicate code.

Reviewed-by: dholmes, sspitsyn
2013-01-17 13:40:31 -05:00
Maurizio Cimadamore
0a95b1d28c 8005852: Treatment of '_' as identifier
Warn when '_' is found in an identifier position

Reviewed-by: jjg
2013-01-17 18:15:20 +00:00
Harold Seigel
68f3dd76c9 7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems
Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro.

Reviewed-by: dholmes, coleenp, mikael, kvn
2013-01-17 10:25:16 -05:00
Konstantin Shefov
b7bcfe73b1 7124209: [macosx] SpringLayout issue. BASELINE is not in the range: [NORTH, SOUTH]
Reviewed-by: serb, alexsch
2013-01-17 15:08:08 +00:00
James Laskey
e1e509319e 8006517: PropertyHashMap.Element.equals() compares to Property
Reviewed-by: sundar
2013-01-17 10:33:39 -04:00
Stefan Karlsson
6799149f7d 8006513: Null pointer in DefaultMethods::generate_default_methods when merging annotations
Reviewed-by: brutisso, jfranck
2013-01-17 11:39:48 +01:00
Yong Jeffrey Huang
a4c3f06259 Merge 2013-01-16 23:08:12 -08:00
Dean Long
6e8916cdbb Merge 2013-01-17 01:27:02 -05:00
David Katleman
b8e0cde9e1 Merge 2013-01-16 22:21:30 -08:00
David Katleman
c9583f70f7 Merge 2013-01-16 22:17:39 -08:00
David Katleman
d67df37b2b Merge 2013-01-16 22:17:36 -08:00
David Katleman
675e3578b4 Merge 2013-01-16 22:16:51 -08:00
David Katleman
f421c295bd Merge 2013-01-16 20:53:05 -08:00
Jonathan Gibbons
7b493a180e 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
Reviewed-by: darcy
2013-01-16 20:41:14 -08:00
Yong Jeffrey Huang
73f88f3896 Merge 2013-01-16 19:05:13 -08:00
Lana Steuck
270d599981 Merge 2013-01-16 15:57:25 -08:00
Karen Kinnear
4ce43bafa5 Merge 2013-01-16 18:23:37 -05:00
David Chase
c803a77fa8 8006204: please JTREGify test/compiler/7190310/Test7190310.java
Add proper jtreg annotations in the preceding comment, including an explicit timeout.

Reviewed-by: kvn, twisti
2013-01-16 14:55:18 -08:00
Joe Darcy
e942cdde81 8006283: Change to Class.cast() in javax.lang.model implementation for repeating annotations
Reviewed-by: jjg
2013-01-16 13:22:09 -08:00
Lana Steuck
b11bbbe239 Merge 2013-01-16 12:14:29 -08:00
Lana Steuck
7026f02404 Merge 2013-01-16 12:07:32 -08:00
Lana Steuck
65b346ba67 Merge 2013-01-16 12:06:39 -08:00
David Katleman
2062fc003c Added tag jdk8-b73 for changeset b568005e66bd 2013-01-16 12:00:21 -08:00
David Katleman
656c28326c Added tag jdk8-b73 for changeset 24d25ecda7ce 2013-01-16 12:00:10 -08:00
David Katleman
4598fecb7c Added tag jdk8-b73 for changeset a7dead2f55ef 2013-01-16 11:59:59 -08:00
David Katleman
41ec1cb065 Added tag jdk8-b73 for changeset 4c46a5207766 2013-01-16 11:59:54 -08:00
David Katleman
c5c2fe5f14 Added tag jdk8-b73 for changeset b63b5628ae56 2013-01-16 11:59:44 -08:00
David Katleman
7716c3be5e Added tag jdk8-b73 for changeset 8268581591da 2013-01-16 11:59:38 -08:00
David Katleman
15750269ce Added tag jdk8-b73 for changeset e6f9cd2122f9 2013-01-16 11:59:37 -08:00
Lana Steuck
2c1924638e Merge 2013-01-16 11:58:15 -08:00
Jason Uh
5d2a6972af 8005939: sun/security/x509/{X509CRLImplX509CertImpl}/Verify.java fail in confusing way when some providers not present
Reviewed-by: mullan, weijun
2013-01-16 13:35:17 -05:00
Jonathan Gibbons
17ebfc350d 8006236: doclint: structural issue hidden
Reviewed-by: darcy
2013-01-16 10:29:52 -08:00
Maurizio Cimadamore
5a60f56dbe 8005964: Regression: difference in error recovery after ambiguity causes JCK test failure
Wrong implementation of ResolveError.access in AmbiguityError

Reviewed-by: jjh
2013-01-16 17:40:28 +00:00
Maurizio Cimadamore
3b3feb3853 8005299: Add FunctionalInterface checking to javac
Javac should check that types annotated with @FunctionalInterface are indeed functional interfaces

Reviewed-by: jjg
2013-01-16 16:30:11 +00:00
Maurizio Cimadamore
d19bc80ca1 8005854: Add support for array constructor references
Support constructor references of the kind int[]::new

Reviewed-by: jjg
2013-01-16 16:27:01 +00:00
Athijegannathan Sundararajan
71e9d57ee3 8006424: Passing null or undefined to adapter class constructors results in NPE or ClassCastException
Reviewed-by: attila, hannesw, jlaskey
2013-01-16 21:26:55 +05:30
Erik Joelsson
fbb2e494a8 8006385: build-infra: linux and solaris *-debuginfo-*.zip file created from the new makefile has extra HUDSON direcotry in jre/lib/i386/server
Reviewed-by: tbell
2013-01-16 16:40:16 +01:00
Aleksey Shipilev
07e2e8803a 8006403: Regression: jstack failed due to the FieldInfo regression in SA
Reviewed-by: sla, dholmes
2013-01-16 16:30:04 +01:00
Jason Uh
68eb431db8 8005389: Backout fix for JDK-6500133
Reviewed-by: mullan
2013-01-16 09:51:21 -05:00
Mikhail Cherkasov
9a4e15eaf6 8005492: Reduce number of warnings in sun/awt/* classes
Reviewed-by: art, anthony
2013-01-16 17:26:41 +04:00
Athijegannathan Sundararajan
d35ae9ab05 8006412: Improve toString method of ScriptObjectMirror class
Reviewed-by: jlaskey, lagergren
2013-01-16 17:58:51 +05:30
Doug Lea
dcc8fbec72 8001666: Add lambda-compatible atomics and accumulators to the ActomicXXX classes
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Reviewed-by: dl, chegar, darcy, goetz
2013-01-16 12:09:35 +00:00
Bengt Rutisson
38f6de7a0c 8006242: G1: WorkerDataArray<T>::verify() too strict for double calculations
Also reviewed by vitalyd@gmail.com.

Reviewed-by: johnc, mgerdin
2013-01-16 12:46:27 +01:00
James Laskey
c6c424f27a 8006304: Remove pre-population of maps for constructor produced maps
Reviewed-by: sundar
2013-01-16 07:06:40 -04:00
Doug Lea
7062898817 8005926: Merge ThreadLocalRandom state into java.lang.Thread
Reviewed-by: shade, chegar
2013-01-16 10:14:09 +00:00
Yong Jeffrey Huang
ef774a39f7 Merge 2013-01-15 19:08:34 -08:00
David Chase
cc15237ca5 8005821: C2: -XX:+PrintIntrinsics is broken
Check all print inlining flags when processing inlining list.

Reviewed-by: kvn, twisti
2013-01-15 14:45:12 -08:00
Ioi Lam
84fce989dd 8005467: CDS size information is incorrect and unfriendly
Changed words to bytes, and added usage percentage information

Reviewed-by: coleenp, twisti
2013-01-15 17:05:53 -05:00
Jonathan Gibbons
f8b61f9b0c 8006224: Doclint NPE for attribute with no value
Reviewed-by: darcy
2013-01-15 13:03:11 -08:00
Chris Hegarty
b60eabe813 8006344: Broken javadoc link in javax.lang.model.element.Element
Reviewed-by: lancea, alanb, jfranck
2013-01-15 20:38:39 +00:00
John Cuthbertson
b3b1b412b1 8001425: G1: Change the default values for certain G1 specific flags
Changes to default and ergonomic flag values recommended by performance team. Changes were also reviewed by Monica Beckwith <monica.beckwith@oracle.com>.

Reviewed-by: brutisso, huntch
2013-01-15 12:32:26 -08:00
Christian Thalinger
5dda34f798 8006109: test/java/util/AbstractSequentialList/AddAll.java fails: assert(rtype == ctype) failed: mismatched return types
Reviewed-by: kvn
2013-01-15 12:06:18 -08:00
Rob McKenna
bdca3e8f8c 8005618: TEST_BUG: java/lang/ProcessBuilder/Basic.java failing intermittently
Reviewed-by: alanb, martin, dholmes
2013-01-15 19:58:22 +00:00
David Katleman
7f6891593a Merge 2013-01-15 10:08:04 -08:00
David Katleman
f3d016ffd9 Merge 2013-01-15 10:07:26 -08:00
David Katleman
43cad4a619 Merge 2013-01-15 10:07:22 -08:00
David Katleman
a3ef57ec3c Merge 2013-01-15 10:06:59 -08:00
Sergey Bylokhov
08f29b04df 7124525: [macosx] No animation on certain Swing components in Aqua LaF
Reviewed-by: alexsch, swingler
2013-01-15 21:57:47 +04:00
Attila Szegedi
a2efb1b4f5 8006337: Discarded arguments for INVOKESTATIC must still be evaluated for side effects
Reviewed-by: hannesw, jlaskey, sundar
2013-01-15 18:08:50 +01:00
Attila Szegedi
311e57397d 8005958: invoking a function through INVOKESTATIC with more arguments than it declares resulted in malformed bytecode being generated
Reviewed-by: lagergren, jlaskey
2013-01-15 17:09:44 +01:00
Erik Joelsson
492a251bdb 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest
Reviewed-by: alanb, tbell
2013-01-15 16:50:22 +01:00
Attila Szegedi
0c53c5de50 8006293: Reduce ScriptObject.findCallMethodMethod
Reviewed-by: lagergren, jlaskey
2013-01-15 13:10:20 +01:00
Mark Sheppard
cb7b639e6a 8005406: HTTP server implementation should use Base64 API
Reviewed-by: khazra, alanb, chegar
2013-01-15 11:44:20 +00:00
Alexey Utkin
5bd5533490 8005250: Downgrade normative references to ${java.home}/lib folder from Java client code
Javadoc was changed in accordance with CCC-8005250 request.

Reviewed-by: alanb, amenkov
2013-01-15 14:26:59 +04:00
Stefan Karlsson
9d65c6d24f 8005994: Method annotations are allocated unnecessarily during class file parsing
Also reviewed by: vitalyd@gmail.com

Reviewed-by: coleenp, acorn
2013-01-15 10:09:45 +01:00
Stefan Karlsson
67fc68ea7f 8005590: java_lang_Class injected field resolved_constructor appears unused
Reviewed-by: coleenp, dholmes
2013-01-15 13:32:13 +01:00
Erik Joelsson
9ea953b481 Merge 2013-01-15 09:50:47 +01:00
Alexander Scherbatiy
97013ba028 8003978: closed/javax/swing/JRootPane/bug4670486.java fails since jdk7u12b01 on macosx
Reviewed-by: serb, leonidr
2013-01-15 12:49:03 +04:00
Xue-Lei Andrew Fan
40039951b8 8006265: Add test SSLEngineDeadlock.java to ProblemList
Reviewed-by: weijun
2013-01-14 18:31:48 -08:00
Kelly O'Hair
c79f62bb7d 8005284: build-infra: nonstandard copyright headers under common/autoconf/build-aux
Reviewed-by: katleman
2013-01-14 16:38:25 -08:00
Kumar Srinivasan
a788c5b6b8 8005252: pack200 should support MethodParameters
Reviewed-by: jrose
2013-01-14 15:46:54 -08:00
Jonathan Gibbons
f92bbd3311 8006241: Test DocRootSlash.java fails
Reviewed-by: darcy
2013-01-14 14:17:25 -08:00
Jonathan Gibbons
a2f594bf74 8006119: update javac to follow latest spec for repeatable annotations
Reviewed-by: darcy
2013-01-14 13:50:01 -08:00
Bengt Rutisson
33b7cd7cae 8005972: ParNew should not update the tenuring threshold when promotion failed has occurred
Reviewed-by: ysr, johnc, jwilhelm
2013-01-14 21:30:45 +01:00
Christopher Gruszka
c882c29132 Merge 2013-01-14 14:40:58 -05:00
Naoto Sato
9fa2377054 7162007: Clean up i18n related caches
Reviewed-by: okutsu, ohair
2013-01-14 11:09:53 -08:00
Mikael Vidstedt
b4546eb428 8005592: ClassLoaderDataGraph::_unloading incorrectly defined as nonstatic in vmStructs
Added assertion to catch problem earlier and removed the unused field

Reviewed-by: dholmes, acorn
2013-01-14 11:00:56 -08:00
Joel Borggrén-Franck
9e3a121357 7193719: Support repeating annotations in javax.lang.model
Reviewed-by: jjg
2013-01-14 19:52:36 +01:00
Alexander Harlap
95cbed6639 8005204: Code Cache Reduction: command line options implementation
Adding more detailed output on CodeCache usage

Reviewed-by: kvn, vladidan
2013-01-14 13:52:08 -05:00
Alexander Harlap
5613847626 8005639: Move InlineSynchronizedMethods flag from develop to product
Move InlineSynchronizedMethods flag from develop to product

Reviewed-by: kvn, vladidan
2013-01-14 13:44:49 -05:00
Coleen Phillimore
6972d9ff95 Merge 2013-01-14 08:37:14 -08:00
Vladimir Ivanov
f8b9f3900c 8006095: C1: SIGSEGV w/ -XX:+LogCompilation
Avoid printing inlining decision when compilation fails

Reviewed-by: kvn, roland
2013-01-14 08:22:32 -08:00
Eric Mccorkle
be0c8e9f08 8006005: Fix constant pool index validation and alignment trap for method parameter reflection
This patch addresses an alignment trap due to the storage format of method parameters data in constMethod.  It also adds code to validate constant pool indexes for method parameters data.

Reviewed-by: jrose, dholmes
2013-01-14 11:01:39 -05:00
Andreas Rieber
246e4e8daf 8006181: nashorn script engine does not run jrunscript's initialization script
Reviewed-by: lagergren, jlaskey
2013-01-14 21:30:13 +05:30
Attila Szegedi
f36a46aea4 8006168: ability to generate multi-type Java adapters
Reviewed-by: lagergren, jlaskey
2013-01-14 16:00:55 +01:00
Erik Joelsson
efc2bb8cee 8006100: build-infra: Bundle up the correct images in jprt
Reviewed-by: tbell
2013-01-14 15:30:22 +01:00
Aleksey Shipilev
0614ed6542 8003985: Support @Contended Annotation - JEP 142
HotSpot changes to support @Contended annotation.

Reviewed-by: coleenp, kvn, jrose
2013-01-14 15:17:47 +01:00
Alexander Scherbatiy
73b452e941 7166409: bug4331515.java fail with NullPointerException on ubuntu10.04-x86 for JDK8
Reviewed-by: serb
2013-01-14 08:32:29 -05:00
Erik Joelsson
7510da3514 8006074: build-infra: Configure fails to find SetEnv.Cmd in microsoft sdk
Reviewed-by: tbell, ohair
2013-01-14 13:09:59 +01:00
Erik Helin
a3639fdea1 8004018: Remove old initialization flags
Reviewed-by: dholmes, stefank
2013-01-14 09:58:52 +01:00
Yong Jeffrey Huang
48aff5a267 7114053: [sq] Inproper tanslation for iso lanugage of Albanian
Reviewed-by: naoto
2013-01-13 18:45:43 -08:00
Peter Levart
e912773451 8005232: (JEP-149) Class Instance size reduction
Moved the fields for cached reflection objects into a seperate ReflectionData object to reduce dynamic footprint.

Reviewed-by: dholmes, mchung, shade
2013-01-13 19:57:06 -05:00
Mark Sheppard
7a8ddfee99 8006153: HTTP protocol handler authenication should use Base64 API
Reviewed-by: chegar, alanb
2013-01-13 22:09:50 +00:00
Xueming Shen
c7c2bd14d7 Merge 2013-01-11 22:45:42 -08:00
Ioi Lam
7428b2f902 8005466: JAR file entry hash table uses too much memory (zlib_util.c)
Realign the fields of jzcell struct

Reviewed-by: sherman
2013-01-11 22:43:29 -08:00
Christian Thalinger
827930b510 8006127: remove printing code added with 8006031
Reviewed-by: kvn
2013-01-11 20:01:16 -08:00
Aleksey Shipilev
fb60d01e36 8006123: Support @Contended Annotation - JEP 142 (jdk part)
Jdk changes for 8003895.

Reviewed-by: darcy, jrose, coleenp, dholmes, kvn
2013-01-11 16:50:34 -08:00
Roman Kennke
b17ebac5b5 8005820: Shark: enable JSR292 support
Reviewed-by: twisti
2013-01-11 16:47:23 -08:00
Roman Kennke
ba649f4203 8005818: Shark: fix OSR for non-empty incoming stack
Reviewed-by: twisti
2013-01-11 16:47:23 -08:00
Roman Kennke
a0a0d0b65e 8005817: Shark: implement deoptimization support
Reviewed-by: twisti
2013-01-11 16:47:23 -08:00
Roman Kennke
a42478ecf4 8005816: Shark: fix volatile float field access
Reviewed-by: twisti
2013-01-11 16:47:23 -08:00
Olivier Lagneau
546e2eb164 7131459: [Fmt-De] DecimalFormat produces wrong format() results when close to a tie
Reviewed-by: darcy
2013-01-11 15:39:08 -08:00
Christian Thalinger
6c57a4b9f8 8006031: LibraryCallKit::inline_array_copyOf disabled unintentionally with 7172640
Reviewed-by: kvn
2013-01-11 14:07:09 -08:00
Jiangli Zhou
2cbabcea4a 8005895: Inefficient InstanceKlass field packing wasts memory
Pack _misc_has_default_methods into the _misc_flags, move _idnum_allocated_count.

Reviewed-by: coleenp, shade
2013-01-11 16:55:07 -05:00
Alan Bateman
c12b624078 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
Reviewed-by: chegar
2013-01-11 20:19:55 +00:00
Zhengyu Gu
ae35dfeeec Merge 2013-01-11 09:53:24 -08:00
Zhengyu Gu
93d2366337 8005936: PrintNMTStatistics doesn't work for normal JVM exit
Moved NMT shutdown code to JVM exit handler to ensure NMT statistics is printed when PrintNMTStatistics is enabled

Reviewed-by: acorn, dholmes, coleenp
2013-01-11 12:30:54 -05:00
Athijegannathan Sundararajan
7e7ea2a295 8006093: Add a makefile target to run all tests (test, test262, perf tests)
Reviewed-by: attila, hannesw
2013-01-11 20:34:22 +05:30
Athijegannathan Sundararajan
a8b9e9a36d 8006082: Provide option to run octane benchmarks in separate processes
Reviewed-by: lagergren, jlaskey
2013-01-11 18:26:18 +05:30
Alan Bateman
36e2ef2ba8 8005566: (fs) test/java/nio/file/Files/Misc.java failing (sol)
Reviewed-by: chegar
2013-01-11 12:27:57 +00:00
Alejandro Murillo
d06c06026a 8006034: new hotspot build - hs25-b16
Reviewed-by: jcoomes
2013-01-11 02:02:51 -08:00
Erik Joelsson
ad4210a395 8005850: build-infra: Make --enable-openjdk-only really disable custom
Reviewed-by: ohair, dholmes
2013-01-11 10:46:59 +01:00
Alejandro Murillo
95d6d393e9 Added tag hs25-b15 for changeset 8bac833614e0 2013-01-11 01:43:10 -08:00
Alejandro Murillo
54489e4ba1 Merge 2013-01-11 01:43:09 -08:00
Marcus Lagergren
8bbf26bc89 8005976: Break out AccessSpecializer into one pass before CodeGenerator instead of iterative applications from CodeGenerator
Now scope and slot information is guaranteed to be fixed AND NOT CHANGE before CodeGeneration. We want to keep it that way to build future type specializations and bring all type work out of CodeGenerator.

Reviewed-by: attila, hannesw
2013-01-11 10:40:51 +01:00
Joe Darcy
3dfc6b7512 8006062: Add @Repeatable to repeating annotations regression tests in JDK repo
Reviewed-by: jjg
2013-01-10 21:12:27 -08:00
David Buck
8f70550080 8003147: port fix for BCEL bug 39695
Added support for Local Variable Type Table so that BCEL library can be used to modify methods with generics-related debug data without violating class file format

Reviewed-by: lancea
2013-01-10 20:26:00 -08:00
Mandy Chung
3243aaf47a 8005615: Java Logger fails to load tomcat logger implementation (JULI)
Reviewed-by: alanb, ahgross
2013-01-10 19:43:36 -08:00
Jonathan Gibbons
7518dede81 8004834: Add doclint support into javadoc
Reviewed-by: darcy
2013-01-10 19:38:57 -08:00
Jonathan Gibbons
56dd0c2a5c Merge 2013-01-10 19:37:26 -08:00
Jonathan Gibbons
4837a1c13d 8004834: Add doclint support into javadoc
Reviewed-by: erikj, tbell
2013-01-10 19:36:36 -08:00
Jonathan Gibbons
ce51b6ebee 8004834: Add doclint support into javadoc
Reviewed-by: erikj, tbell
2013-01-10 19:36:13 -08:00
Jeremy Manson
cac8a55fb2 8005921: Memory leaks in vmStructs.cpp
Reviewed-by: dholmes, mikael, rasbold
2013-01-10 21:00:11 -05:00
Mikael Vidstedt
e7e6443c6d 8004747: Remove last_entry from VM_STRUCT macros
Instead of passing in last_entry to all the VM_ macros just expand it in the main vmStructs.cpp file.

Reviewed-by: dholmes, sspitsyn, minqi
2013-01-10 17:06:26 -08:00
Lana Steuck
3475f97172 Merge 2013-01-10 15:53:02 -08:00
Lana Steuck
2af47c361c Merge 2013-01-10 15:52:12 -08:00
Lana Steuck
ce7e25b7ad Merge 2013-01-10 15:49:34 -08:00
Lana Steuck
543d0a4abe Merge 2013-01-10 15:49:12 -08:00
Jonathan Gibbons
80a7fb0bb4 8006033: bug in Pretty.toSimpleString
Reviewed-by: darcy
2013-01-10 15:48:46 -08:00
Karen Kinnear
472004ca58 7199207: NPG: Crash in PlaceholderTable::verify after StackOverflow
Reduce scope of placeholder table entries to improve cleanup

Reviewed-by: dholmes, coleenp
2013-01-10 17:38:20 -05:00
Jonathan Gibbons
ca5da47efc 8006037: extra space in javac -help for -J and @ options
Reviewed-by: darcy
2013-01-10 14:09:33 -08:00
Chris Hegarty
a2dea4d9f4 8006007: j.u.c.atomic classes should use intrinsic getAndXXX provided by 7023898
Reviewed-by: dl, shade
2013-01-10 21:52:38 +00:00
Jim Gish
5c5820e950 8005582: java/lang/Runtime/exec/WinCommand.java intermittent test failures
Remove file-deletion code at cleanup which conflicts with jtreg cleanup

Reviewed-by: chegar
2013-01-10 15:09:45 -05:00
Brent Christian
f7eb6cd556 8005962: TEST_BUG: java/util/Properties/MacJNUEncoding can fail in certain environments
Test script now sets LC_ALL, other small changes, relocate test

Reviewed-by: naoto, alanb
2013-01-10 10:21:44 -08:00
Vladimir Kozlov
91c93084cb Merge 2013-01-10 10:00:43 -08:00
David Katleman
bd2402428b Added tag jdk8-b72 for changeset e905c5894743 2013-01-10 09:56:09 -08:00
David Katleman
49feba985e Added tag jdk8-b72 for changeset 21fe12436601 2013-01-10 09:55:58 -08:00
David Katleman
28f35575da Added tag jdk8-b72 for changeset 1cd43fe99320 2013-01-10 09:55:52 -08:00
David Katleman
09e823e002 Added tag jdk8-b72 for changeset c65f0fb0d9de 2013-01-10 09:55:43 -08:00
David Katleman
0adc452e4f Added tag jdk8-b72 for changeset 371ef2925907 2013-01-10 09:55:30 -08:00
David Katleman
714ada87e7 Added tag jdk8-b72 for changeset e927c8725ba4 2013-01-10 09:55:26 -08:00
David Katleman
d696ea84e6 Added tag jdk8-b72 for changeset a521fc006ff6 2013-01-10 09:55:25 -08:00
Jon Masamitsu
be38ea68e5 Merge 2013-01-10 07:32:32 -08:00
Attila Szegedi
ddf4b86c57 8005983: JavaAdapterFactory generated proxy classes should take extra constructor arguments at the end
Reviewed-by: lagergren, sundar
2013-01-10 15:28:05 +01:00
Athijegannathan Sundararajan
164350cecf 8005982: NASHORN-71.js failing in nightlys
Reviewed-by: attila, lagergren, jlaskey
2013-01-10 19:55:38 +05:30
Athijegannathan Sundararajan
643a6b824c 8005987: ant octane tries to run non-benchmark scripts
Reviewed-by: lagergren, attila, jlaskey
2013-01-10 19:03:25 +05:30
Fredrik Ohrstrom
a1118e2d86 8005856: build-infra: Remove special handling of base module classes header generation
Reviewed-by: alanb, tbell, ohair
2013-01-10 12:23:15 +01:00
Erik Joelsson
4ed6eedb66 8005858: build-infra: Add missed comparison of sec-windows-bin.zip and friends to compare.sh
Reviewed-by: tbell, ohair
2013-01-10 12:20:16 +01:00
Marcus Lagergren
3d269485fc 8005971: runsunspider.js should check results of benchmarks
Reviewed-by: attila, hannesw
2013-01-10 10:28:57 +01:00
Joe Darcy
f2c492220c 8005713: Simplify library support for repeating annotations in java.lang.annotation
Reviewed-by: abuckley
2013-01-09 20:20:21 -08:00
Joe Darcy
51e7243003 8004730: Add language model support for parameter reflection
Reviewed-by: abuckley
2013-01-09 20:02:53 -08:00
Dean Long
f1bd82ba8f Merge 2013-01-09 21:18:52 -05:00
Brian Burkhalter
af27b8c59d 7103957: NegativeArraySizeException while initializing class IntegerCache
Reviewed-by: darcy, mchung
2013-01-09 16:58:47 -08:00
Christian Thalinger
a55305503e 8005418: JSR 292: virtual dispatch bug in 292 impl
Reviewed-by: jrose, kvn
2013-01-09 15:37:23 -08:00
Karen Kinnear
9cc0c0af8b Merge 2013-01-09 18:06:34 -05:00
Zhengyu Gu
e6db535078 Merge 2013-01-09 12:10:25 -08:00
Zhengyu Gu
030fa5107d 7152671: RFE: Windows decoder should add some std dirs to the symbol search path
Added JRE/JDK bin directories to decoder's symbol search path

Reviewed-by: dcubed, sla
2013-01-09 14:46:55 -05:00
Jonathan Gibbons
4779676ac1 8005644: set default max errs and max warns
Reviewed-by: darcy
2013-01-09 10:26:58 -08:00
Athijegannathan Sundararajan
ff9829969f 8005940: provide ant targets to get and update external test scripts
Reviewed-by: jlaskey, lagergren
2013-01-09 22:32:40 +05:30
Bharadwaj Yadavalli
8762d54e63 8005689: InterfaceAccessFlagsTest failures in Lambda-JDK tests
Fix verifier for new interface access flags

Reviewed-by: acorn, kvn
2013-01-09 11:39:30 -05:00
Erik Joelsson
45b5d84c8f 8005903: build-infra: bad symlink: j2sdk-bundle/jdk1.8.0.jdk/Contents/MacOS/libjli.dylib
Reviewed-by: tbell
2013-01-09 16:13:29 +01:00
Attila Szegedi
12801c40c5 8005777: Bug in the FacetIntrospector of Dynalink - non-public class should search super
Reviewed-by: lagergren, sundar
2013-01-09 15:02:48 +01:00
Sean Mullan
86b40c8697 Merge 2013-01-09 08:59:58 -05:00
Alexander Scherbatiy
19b3fdf5ee 8005019: JTable passes row index instead of length when inserts selection interval
Reviewed-by: serb, denis
2013-01-09 16:52:08 +04:00
Fredrik Öhrström
33f2917473 8005096: Move a few source files in swing/beaninfo and in a demo
Reviewed-by: ohair, erikj, malenkov
2013-01-09 13:33:52 +01:00
Bengt Rutisson
0f2c37ea4a 8005489: VM hangs during GC with ParallelGC and ParallelGCThreads=0
Print an error message and exit the VM if UseParallalGC is combined with ParllelGCThreads==0. Also reviewed by vitalyd@gmail.com.

Reviewed-by: stefank, ehelin
2013-01-09 09:48:58 +01:00
Tim Bell
3c8b65b820 8005794: in new infra, how do we change java -version?
Added configure parameter --with-user-release-suffix

Reviewed-by: ohair, tbell
2013-01-08 16:23:45 -08:00
Joe Darcy
df5b548d02 8005298: Add FunctionalInterface type to the core libraries
Reviewed-by: mduigou
2013-01-08 16:08:29 -08:00
Sean Mullan
d01edb0815 Merge 2013-01-08 19:02:55 -05:00
Sean Mullan
b492dc9bac 7019834: Eliminate dependency from PolicyFile to com.sun.security.auth.PrincipalComparator
Add new java.security.Principal.implies method

Reviewed-by: alanb
2013-01-08 19:00:12 -05:00
Zhengyu Gu
f4da82981d Merge 2013-01-08 15:47:23 -08:00
Coleen Phillimore
3296803650 Merge 2013-01-08 13:44:10 -08:00
David Katleman
908a847808 Merge 2013-01-08 13:15:54 -08:00
David Katleman
7426677a62 Merge 2013-01-08 13:14:45 -08:00
David Katleman
70ec9b9666 Merge 2013-01-08 13:14:42 -08:00
David Katleman
d6b52d13ee Merge 2013-01-08 13:14:22 -08:00
Valerie Peng
91510ba8ea Merge 2013-01-08 13:06:22 -08:00
Dan Xu
6cc211f4e1 8002306: (se) Selector.open fails if invoked with thread interrupt status set [win]
Reviewed-by: alanb
2013-01-08 20:37:27 +00:00
Valerie Peng
c6f02e06f0 8004044: Lazily instantiate SunJCE.RANDOM
Replace the static initialization of SunJCE.RANDOM object w/ lazy initialization

Reviewed-by: mchung
2013-01-08 11:55:21 -08:00
Zhengyu Gu
db4cfa5011 Merge 2013-01-08 11:39:53 -08:00
Vladimir Kozlov
38c81fb411 8005419: Improve intrinsics code performance on x86 by using AVX2
Use 256bit vpxor,vptest instructions in String.compareTo() and equals() intrinsics.

Reviewed-by: twisti
2013-01-08 11:30:51 -08:00
Zhengyu Gu
5c6318e816 8005048: NMT: #loaded classes needs to just show the # defined classes
Count number of instance classes so that it matches class metadata size

Reviewed-by: coleenp, acorn
2013-01-08 14:04:25 -05:00
Eric Mccorkle
be968245ec 8004728: Add hotspot support for parameter reflection
Add hotspot support for parameter reflection

Reviewed-by: acorn, jrose, coleenp
2013-01-08 14:01:36 -05:00
Harold Seigel
cfea76669a 8005076: Creating a CDS archive with one alignment and running another causes a crash
Save the alignment when writing the CDS and compare it when reading the CDS.

Reviewed-by: kvn, coleenp
2013-01-08 13:38:11 -05:00
Jiangli Zhou
8d91f983e0 8001341: SIGSEGV in methodOopDesc::fast_exception_handler_bci_for(KlassHandle,int,Thread*)+0x3e9
Use methodHandle.

Reviewed-by: coleenp, acorn, twisti, sspitsyn
2013-01-08 13:01:19 -05:00
Athijegannathan Sundararajan
e40b456a27 8005848: assigning to global toString variable affects Object.prototype.toString
Reviewed-by: jlaskey, lagergren
2013-01-08 21:16:07 +05:30
Marcus Lagergren
dd47345d51 8005842: Loops in ASTWriter. Corrected @Reference and @Ignore node annotation for IR nodes
Reviewed-by: hannesw, sundar
2013-01-08 15:20:40 +01:00
Vicente Romero
9d4f6a0ebe 8005167: execution time of combo tests in javac should be improved
Reviewed-by: jjg, jjh
2013-01-08 13:47:57 +00:00
Attila Szegedi
df21b0860f 8005801: Refactor findSetMethod
FindSetMethod() was a very large single method, very unreadable and unmaintainable. It was broken into easy-to-understand pieces. The refactoring required introduction of a comand-object like entity, SetMethodCreator, to contain the nontrivial transient state of the algorithm that made the original big method so resistant to refactoring in the first place.

Reviewed-by: lagergren, sundar
2013-01-08 14:14:17 +01:00
Attila Szegedi
3cb7831567 8005846: Remove Mangler in favor of Dynalink's NameCodec
Reviewed-by: jlaskey, sundar
2013-01-08 13:50:11 +01:00
Marcus Lagergren
eb0f10508f 8005843: refSymbols lookup of unbound variable could cause NullPointerException in Lower
Reviewed-by: hannesw, attila
2013-01-08 10:52:11 +01:00
Athijegannathan Sundararajan
d8e79f1ce1 8005835: NASHORN-668 output fails to compare with the corresponding .EXPECTED file
Reviewed-by: lagergren, hannesw
2013-01-08 15:02:36 +05:30
Maurizio Cimadamore
5ee942d5a8 8005184: Restructure DeferredAttr to allow pluggable deferred type completers
Add hooks to generalize deferred type completion via custom helper objects

Reviewed-by: jjg
2013-01-08 10:17:29 +01:00
Maurizio Cimadamore
c932023b04 8005179: Cleanup Resolve.AmbiguityError
Linearize nested ambiguity errors

Reviewed-by: jjg
2013-01-08 10:16:26 +01:00
Maurizio Cimadamore
159b251085 8005243: Restructure method check code to allow pluggable checkers
Add interface to perform a method check - to be implemented by helper classes

Reviewed-by: jjg
2013-01-08 10:15:30 +01:00
Marcus Lagergren
51ceb76240 8005788: Loggers and their corresponding system properties not working correctly
1-1 mapping now maintained. Used Context err instead of System.err in several places (after bootstrapping Context). Problematic closing of err stream replaced by @SuppressWarnings("resource")

Reviewed-by: jlaskey, sundar
2013-01-08 09:59:28 +01:00
Weijun Wang
d9c892c9fd 8005447: default principal should act as anyone
Reviewed-by: valeriep
2013-01-08 14:54:56 +08:00
Athijegannathan Sundararajan
b501e8fdc4 8005782: get rid of javadoc errors, warnings in nashorn build
Reviewed-by: lagergren
2013-01-08 08:51:00 +05:30
Stuart Marks
f660de4e1e 7187882: TEST_BUG: java/rmi/activation/checkusage/CheckUsage.java fails intermittently
Tighten up JavaVM test library API, and adjust tests to match.

Reviewed-by: mchung, dmocek
2013-01-07 18:09:07 -08:00
Valerie Peng
2edaf46a3d Merge 2013-01-07 14:40:07 -08:00
Morris Meyer
b3fe91a803 8004537: replace AbstractAssembler emit_long with emit_int32
Reviewed-by: jrose, kvn, twisti
2013-01-07 14:08:28 -08:00
Tim Bell
cd3ceb4771 8005442: autogen.sh sets DATE_WHEN_GENERATED to empty string on Solaris version 11 or later
Reviewed-by: ohair
2013-01-07 14:01:09 -08:00
Brent Christian
b21bc8e16d 8003228: (props) sun.jnu.encoding should be set to UTF-8 [macosx]
Hard-code sun.jnu.encoding to UTF-8 on Mac

Reviewed-by: naoto
2013-01-07 13:19:03 -08:00
Harold Seigel
89e575df23 8003705: CDS failed on Windows: can not map in the CDS
Map memory only once to prevent 'already mapped' failures.

Reviewed-by: acorn, zgu
2013-01-07 15:32:51 -05:00
Valerie Peng
96c5499439 6996769: support AEAD cipher
Added implementation for GCM mode under AES cipher

Reviewed-by: weijun
2013-01-07 11:11:54 -08:00
Petr Hejl
569e8ef170 8005703: Offsets miscalculated for blocks
Reviewed-by: lagergren
2013-01-07 14:41:16 -04:00
Marcus Lagergren
24e583d55f 8005789: Forgot to document -Dnashorn.unstable.relink.threshold
Added documentation to DEVELOPER_README, fixed code convention warnings

Reviewed-by: attila
2013-01-07 19:31:36 +01:00
David Dehaven
1381be8b23 8004547: Extend JavaFX launcher support to allow full JavaFX launch feature set
Reviewed-by: mchung, kcr, ksrini
2013-01-07 09:58:48 -08:00
Jim Holmlund
259f5d7cc8 8005647: langtools/test/tools/javap/MethodParameters.java fails on windows
Fix javap to not output \r\r\n

Reviewed-by: jjg
2013-01-07 17:51:05 +00:00
Chris Hegarty
f4c27e0ba1 8005709: Add at since tags to new FJP getCommonPoolParallelism and commonPool
Reviewed-by: dl
2013-01-05 17:06:54 +00:00
Bhavesh Patel
d0ff55ec00 8005092: javadoc should check for synthesized bit on an annotation
Reviewed-by: jjg
2013-01-05 00:55:53 -08:00
Bhavesh Patel
1dbfb160ba 8004891: Check for abstract method in javadoc does not conform to the language model
Reviewed-by: jjg
2013-01-04 23:06:05 -08:00
Kelly O'Hair
ec348edbe6 8004229: build-infra: Umbrella for switch of default "make" to new makefiles
Reviewed-by: erikj, tbell
2013-01-04 21:04:03 -08:00
Jon Masamitsu
7fb60025ee 8005672: Clean up some changes to GC logging with GCCause's
Reviewed-by: johnc, ysr
2013-01-04 17:04:46 -08:00
Jon Masamitsu
cca092892b 8000325: Change default for CMSClassUnloadingEnabled to true
Reviewed-by: stefank, ysr
2013-01-04 17:04:25 -08:00
Amy Lu
6ae79cff82 8005683: ProblemList.txt updates (01/2013)
Reviewed-by: mchung, alanb
2013-01-04 16:10:14 -08:00
Erik Joelsson
02d2100562 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
Reviewed-by: tbell
2013-01-04 22:43:32 +01:00
Erik Joelsson
174782e022 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
Reviewed-by: tbell
2013-01-04 22:43:13 +01:00
Bengt Rutisson
2574114b01 8003822: Deprecate the incremental mode of CMS
Reviewed-by: johnc, jwilhelm
2013-01-04 21:33:22 +01:00
Christopher Gruszka
7695a75883 Merge 2013-01-04 13:11:42 -05:00
Erik Joelsson
a4434fe7db 8005654: build-infra: Create sec-bin.zip
Reviewed-by: tbell
2013-01-04 17:09:10 +01:00
Erik Joelsson
e92b3e716e 8005654: build-infra: Create sec-bin.zip
Reviewed-by: tbell
2013-01-04 17:08:33 +01:00
Erik Joelsson
260c554c06 8005597: build-infra: bridgeBuild broken for pure openjdk build
Reviewed-by: tbell
2013-01-04 17:05:13 +01:00
Erik Joelsson
839f973de6 8005692: build-infra: Target "all" should do the right thing
Reviewed-by: tbell
2013-01-04 16:56:37 +01:00
Erik Joelsson
df61de8df2 8005694: build-infra: Cleanup of misc changes in build-infra
Reviewed-by: tbell
2013-01-04 16:54:41 +01:00
James Laskey
311f43d5a6 8005663: Update copyright year to 2013
Reviewed-by: sundar
2013-01-04 09:58:33 -04:00
James Laskey
33e2b39ed3 8005665: JavaDoc should only display public interfaces
Reviewed-by: sundar
2013-01-04 09:58:30 -04:00
James Laskey
440f8df1ec 8005666: Add webrev to .hgignore
Reviewed-by: sundar
2013-01-04 09:58:26 -04:00
Chris Hegarty
c994d9bc0e 8005638: Less secure Authentication schemes should work when more secure schemes are not available
Reviewed-by: alanb
2013-01-04 11:34:17 +00:00
Chris Hegarty
6061c09cab 8005659: Add tools/pack200/AttributeTests.java to exclude list (ProblemList.txt) until pack200 updated to support method parameters
Reviewed-by: mchung, ksrini
2013-01-04 11:18:00 +00:00
Erik Joelsson
c7144600bf 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
Reviewed-by: ohair
2013-01-04 11:31:32 +01:00
Erik Joelsson
24f8d04828 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
Reviewed-by: ohair
2013-01-04 11:31:16 +01:00
Erik Joelsson
a393578bcc 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
Reviewed-by: ohair
2013-01-04 11:31:00 +01:00
Bengt Rutisson
2cd5c87cb9 8003820: Deprecate untested and rarely used GC combinations
Log warning messages for DefNew+CMS and ParNew+SerialOld

Reviewed-by: ysr, jwilhelm, jcoomes
2013-01-04 11:10:17 +01:00
Vladimir Kozlov
7b9133b99c 8005544: Use 256bit YMM registers in arraycopy stubs on x86
Use YMM registers in arraycopy and array_fill stubs.

Reviewed-by: roland, twisti
2013-01-03 16:30:47 -08:00
Vladimir Kozlov
cfcd28fd9d 8005522: use fast-string instructions on x86 for zeroing
Use 'rep stosb' instead of 'rep stosq' when fast-string operations are available.

Reviewed-by: twisti, roland
2013-01-03 15:09:55 -08:00
Jon Masamitsu
6f5991fa38 8004895: NPG: JMapPermCore test failure caused by warnings about missing field
Reviewed-by: johnc
2013-01-03 15:03:27 -08:00
David Katleman
696db0f4f7 Added tag jdk8-b71 for changeset 3849a5b1c05c 2013-01-03 12:44:58 -08:00
David Katleman
36dee83516 Added tag jdk8-b71 for changeset 8c4241503c02 2013-01-03 12:44:50 -08:00
David Katleman
240cfb1ef1 Added tag jdk8-b71 for changeset 25285d2ea668 2013-01-03 12:44:47 -08:00
David Katleman
98f5be72c4 Added tag jdk8-b71 for changeset c27887135b51 2013-01-03 12:44:46 -08:00
David Katleman
54b645a88b Added tag jdk8-b71 for changeset 03dafcea1815 2013-01-03 12:44:39 -08:00
David Katleman
1c2cee9c68 Added tag jdk8-b71 for changeset 9d40ca78a623 2013-01-03 12:44:34 -08:00
David Katleman
37f63f5f8a Added tag jdk8-b71 for changeset 456ba4f4c541 2013-01-03 12:44:32 -08:00
Bill Pittore
782ef982f6 8004051: assert(_oprs_len[mode] < maxNumberOfOperands) failed: array overflow
Assert is triggered when number of register based arguments passed to a java method exceeds 16.

Reviewed-by: roland, vladidan
2013-01-03 15:08:43 -05:00
Erik Joelsson
9ff32c288e 8005635: build-infra: Support building install in jprt
Co-authored-by: Tim Bell <tim.bell@oracle.com>
Reviewed-by: ohair
2013-01-03 20:55:52 +01:00
Erik Joelsson
f2fab62173 8005635: build-infra: Support building install in jprt
Co-authored-by: Tim Bell <tim.bell@oracle.com>
Reviewed-by: ohair
2013-01-03 20:54:38 +01:00
Chris Hegarty
83223ad4ac 8005634: tools/launcher/VersionCheck.java fails version check on jdeps
Add jdeps to the list of tools that do not support '-version'

Reviewed-by: mchung
2013-01-03 10:00:55 +00:00
Coleen Phillimore
64499d9494 8005494: SIGSEGV in Rewriter::relocate_and_link() when testing Weblogic with CompressedOops and KlassPtrs
Relocate functions with jsr's when rewriting so not repeated after reading shared archive

Reviewed-by: twisti, jrose
2013-01-02 20:28:09 -05:00
Christopher Gruszka
282c765e3d Merge 2013-01-02 14:54:58 -05:00
Erik Joelsson
1d85687c30 8005355: build-infra: Java security signing (need a top-level make target)
Reviewed-by: tbell, ohair
2013-01-02 15:36:00 +01:00
Erik Joelsson
55ba91ee3e 8005355: build-infra: Java security signing (need a top-level make target)
Reviewed-by: tbell, ohair
2013-01-02 15:35:12 +01:00
Erik Joelsson
f80cc97adb 8005347: build-infra: Verify 'gnumake source' at the top level works ok
Reviewed-by: tbell, ohair, dholmes
2013-01-02 11:29:29 +01:00
Lana Steuck
87a4453583 Merge 2013-01-01 17:50:29 -08:00
Lana Steuck
cc77f0e79c Merge 2013-01-01 12:47:16 -08:00
Erik Joelsson
36c06a232d 8001895: build-infra: Make JDK_BUILD_NUMBER and MILESTONE customizable
Added configure params

Reviewed-by: ohair
2013-01-01 14:13:18 +01:00
Qi Zuo
8a93671af6 8005583: Install build(gnumake all) failed preventing RE from doing JDK8 combo builds
Reviewed-by: paulk, billyh
2012-12-31 14:52:11 -05:00
Jonathan Gibbons
39734d27f0 8005195: Doclint regression tests fail on windows
Reviewed-by: mcimadamore
2012-12-30 06:17:36 -08:00
Erik Joelsson
75a99396e7 8004490: build-infra: mac: hotspot is always built in product, regardless of --with-debug-level setting
Reviewed-by: tbell
2012-12-30 12:15:02 +01:00
Bengt Rutisson
53cdde9124 8005396: Use ParNew with only one thread instead of DefNew as default for CMS on single CPU machines
Reviewed-by: jmasa, jcoomes
2012-12-30 08:47:52 +01:00
John Cuthbertson
15bae865ac 8004816: G1: Kitchensink failures after marking stack changes
Reset the marking state, including the mark stack overflow flag, in the event of a marking stack overflow during serial reference processing.

Reviewed-by: jmasa
2013-01-03 16:28:22 -08:00
Eric Mccorkle
73b497c12e 8004727: Add compiler support for parameter reflection
Reviewed-by: jjg
2012-12-29 17:33:17 -08:00
Mandy Chung
e8ce882d43 8003562: Provide a CLI tool to analyze class dependencies
Reviewed-by: jjg, alanb, ulfzibis, erikj
2012-12-28 22:25:21 -08:00
Mandy Chung
87ea670a65 8003562: Provide a CLI tool to analyze class dependencies
Reviewed-by: jjg, alanb, ulfzibis, erikj
2012-12-28 22:20:53 -08:00
Lana Steuck
f2c7a7867a Merge 2012-12-28 18:39:09 -08:00
Lana Steuck
b7af263526 Merge 2012-12-28 18:36:41 -08:00
Lana Steuck
5294fa2499 Merge 2012-12-28 18:31:52 -08:00
Lana Steuck
dcbabfcf7b Merge 2012-12-28 18:31:31 -08:00
Lana Steuck
177206a185 Merge 2012-12-28 18:30:56 -08:00
Lana Steuck
46b23b4009 Merge 2012-12-28 18:28:39 -08:00
Stuart Marks
dbdd083e7c Merge 2012-12-28 17:36:41 -08:00
Jim Gish
f933209475 8005594: Fix to 8003265 breaks build
Backout changeset d05f028770b9

Reviewed-by: smarks, wetmore
2012-12-28 18:32:26 -05:00
Jim Gish
2fc01efdd8 8005118: Javadoc styles are inconsistent
Use a common javadoc style in the String classes

Reviewed-by: darcy
2012-12-28 16:56:54 -05:00
Lana Steuck
33a20f586c Merge 2013-01-01 17:49:22 -08:00
Chris Hegarty
c2f4000a6f 8005556: java/net/Socks/SocksV4Test.java is missing @run tag
Reviewed-by: alanb
2012-12-29 11:00:15 +00:00
Mandy Chung
f85705002e 8003562: Provide a CLI tool to analyze class dependencies
Reviewed-by: jjg, alanb, ulfzibis, erikj
2012-12-28 22:21:40 -08:00
Shanliang Jiang
36ae539974 7120365: DiffHBTest.java fails due to ConcurrentModificationException
The problem is from the server notification forwarder, it should use a copy of listener set to do iterate.

Reviewed-by: alanb
2012-12-28 16:44:27 +01:00
Xue-Lei Andrew Fan
a16e8f75d6 8003265: Need to clone array of input/output parameters
Reviewed-by: mullan
2012-12-28 03:50:57 -08:00
Erik Joelsson
e781e203bf 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
Reviewed-by: ohair, tbell
2012-12-28 09:51:46 +01:00
Erik Joelsson
8ae1606066 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
Reviewed-by: ohair, tbell
2012-12-28 09:51:15 +01:00
Xue-Lei Andrew Fan
6d41a58c82 7109274: Restrict the use of certificates with RSA keys less than 1024 bits
This restriction is applied via the Java Security property, "jdk.certpath.disabledAlgorithms". This will impact providers that adhere to this security property.

Reviewed-by: mullan
2012-12-28 00:48:12 -08:00
Masayoshi Okutsu
552c289b79 8005561: typo in Calendar
Reviewed-by: peytoia
2012-12-28 16:39:22 +09:00
Yuka Kamiya
ada3653e48 8005277: Regression in JDK 7 in Bidi implementation
Reviewed-by: okutsu
2012-12-28 15:07:08 +09:00
Masayoshi Okutsu
12ae00bd7d 8005471: DateFormat: Time zone info is not localized when adapter is CLDR
Reviewed-by: peytoia
2012-12-28 14:13:10 +09:00
Joe Wang
c04f299d28 8005473: Warnings compiling jaxp
Clean up compiling warnings.

Reviewed-by: weijun, chegar, forax
2012-12-27 18:17:58 -08:00
Chris Hegarty
d2bce7f267 8003981: Support Parallel Array Sorting - JEP 103
Co-authored-by: David Holmes <david.holmes@oracle.com>
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: chegar, forax, dholmes, dl
2012-12-27 21:55:24 +00:00
David Katleman
645890b143 Added tag jdk8-b70 for changeset 08e2eaa7999a 2012-12-27 12:15:17 -08:00
David Katleman
b4bb519963 Added tag jdk8-b70 for changeset ee8e64d2ea04 2012-12-27 12:15:09 -08:00
David Katleman
cea2872b76 Added tag jdk8-b70 for changeset 2981496fa5fa 2012-12-27 12:15:06 -08:00
David Katleman
1ca719243f Added tag jdk8-b70 for changeset 6ca279338b6b 2012-12-27 12:15:03 -08:00
David Katleman
ca417aacd2 Added tag jdk8-b70 for changeset fabcdf88c360 2012-12-27 12:14:58 -08:00
David Katleman
919a2e217f Added tag jdk8-b70 for changeset e6b0cf31279d 2012-12-27 12:14:55 -08:00
David Katleman
ae64839a12 Added tag jdk8-b70 for changeset 5e47d0354a44 2012-12-27 12:14:53 -08:00
Erik Joelsson
9268fe1857 8005548: build-infra: Fix docs target on windows
Fix path sep variable

Reviewed-by: tbell
2012-12-27 20:55:53 +01:00
Erik Joelsson
b9ea1c8108 8005540: build-infra: Improve incremental build speed on windows by caching find results
Reviewed-by: ohair
2012-12-27 20:18:42 +01:00
Erik Joelsson
1ac4606dea 8005540: build-infra: Improve incremental build speed on windows by caching find results
Reviewed-by: ohair
2012-12-27 20:18:21 +01:00
Erik Joelsson
ce4f8fe85b 8001942: build-infra: General permission problems on Windows/cygwin
Added sanity check for file permissions in configure

Reviewed-by: tbell, ohair
2012-12-27 20:15:22 +01:00
Dmitry Cherepanov
d11167de22 8001161: mac: EmbeddedFrame doesn't become active window
Reviewed-by: ant
2012-12-27 16:08:30 +04:00
David Katleman
d9c8359951 Merge 2012-12-26 14:25:03 -08:00
David Katleman
da7613dbbd Merge 2012-12-26 14:24:32 -08:00
David Katleman
8cbd71d7bf Merge 2012-12-26 14:23:58 -08:00
David Katleman
614dd26d3d Merge 2012-12-26 14:23:50 -08:00
David Katleman
23e90c98b2 Merge 2012-12-26 14:23:27 -08:00
Sean Mullan
2826ca39d3 Merge 2012-12-26 10:08:36 -05:00
Sean Mullan
4bc8e6ac87 8005117: Eliminate dependency from ConfigSpiFile to com.sun.security.auth.login.ConfigFile
Reviewed-by: alanb, mchung, weijun
2012-12-26 10:07:00 -05:00
Bhavesh Patel
8a40619e4d 8004893: the javadoc/doclet needs to be updated to accommodate lambda changes
Reviewed-by: jjg
2012-12-25 17:23:59 -08:00
Yumin Qi
a5fbc1aa4d Merge 2012-12-24 11:46:38 -08:00
Andrew Brygin
dfbb5287a9 8005402: Need to provide benchmarks for color management
Reviewed-by: jgodinez, prr
2012-12-24 14:22:23 +04:00
Andrew Brygin
78a555f9e0 7124245: [lcms] ColorConvertOp to color space CS_GRAY apparently converts orange to 244,244,0
Reviewed-by: prr
2012-12-24 14:03:04 +04:00
Yong Jeffrey Huang
2185318b56 Merge 2012-12-23 19:11:15 -08:00
Roland Westrelin
73d6d417be 8005071: Incremental inlining for JSR 292
Post parse inlining driven by number of live nodes.

Reviewed-by: twisti, kvn, jrose
2012-12-23 17:08:22 +01:00
James Laskey
dca6998949 8005440: Improve .hgignore filtering for Nashorn repo
Reviewed-by: sundar
2012-12-22 08:49:58 -04:00
Joe Wang
7dd77a4b62 8005280: (props) Improve test coverage for small XML parser
Added a few more invalid XML files, international characters to LoadAndStore test, and a behavior compatibility test.

Reviewed-by: alanb, lancea
2012-12-21 17:29:23 -08:00
Jim Laskey
98762d6ee0 8005403: Open-source Nashorn
Co-authored-by: Akhil Arora <akhil.arora@oracle.com>
Co-authored-by: Andreas Woess <andreas.woess@jku.at>
Co-authored-by: Attila Szegedi <attila.szegedi@oracle.com>
Co-authored-by: Hannes Wallnoefer <hannes.wallnoefer@oracle.com>
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Co-authored-by: Marcus Lagergren <marcus.lagergren@oracle.com>
Co-authored-by: Pavel Semenov <pavel.semenov@oracle.com>
Co-authored-by: Pavel Stepanov <pavel.stepanov@oracle.com>
Co-authored-by: Petr Hejl <petr.hejl@oracle.com>
Co-authored-by: Petr Pisl <petr.pisl@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: attila, hannesw, lagergren, sundar
2012-12-21 16:36:24 -04:00
John Cuthbertson
2df5f7cc5a 8001424: G1: Rename certain G1-specific flags
Rename G1DefaultMinNewGenPercent, G1DefaultMaxNewGenPercent, and G1OldCSetRegionLiveThresholdPercent to G1NewSizePercent, G1MaxNewSizePercent, and G1MixedGCLiveThresholdPercent respectively. The previous names are no longer accepted.

Reviewed-by: brutisso, ysr
2012-12-21 11:45:34 -08:00
Tao Mao
7cb614b0e5 8004132: SerialGC: ValidateMarkSweep broken when running GCOld
Remove bit-rotten ValidateMarkSweep functionality and flag.

Reviewed-by: johnc, jmasa
2013-01-02 11:32:41 -08:00
Jon Masamitsu
86dd796322 8005486: NPG: Incorrect assertion in ChunkManager::list_index()
Reviewed-by: coleenp
2012-12-26 15:05:30 -08:00
Alejandro Murillo
52a0bed8f5 8005382: new hotspot build - hs25-b15
Reviewed-by: jcoomes
2012-12-21 10:27:49 -08:00
Alejandro Murillo
11425ca9ff Merge 2012-12-21 10:27:22 -08:00
Alejandro Murillo
0c6644eb2e Added tag hs25-b14 for changeset 2fb5c8602c9f 2012-12-21 10:17:16 -08:00
Alejandro Murillo
fb6df17a6d Merge 2012-12-21 10:17:15 -08:00
Jesper Wilhelmsson
917282a86d Merge 2012-12-21 16:33:22 +01:00
Martin Buchholz
1d3157ac87 8003512: javac doesn't work with jar files with >64k entries
Reviewed-by: jjg, ksrini
2012-12-21 15:27:55 +00:00
Joe Darcy
378571e10e 8005282: Use @library tag with non-relative path for javac tests
Reviewed-by: jjg
2012-12-21 08:45:43 -08:00
Alexander Potochkin
84f4754563 8003982: new test javax/swing/AncestorNotifier/7193219/bug7193219.java failed on macosx
Reviewed-by: anthony, alexsch
2012-12-21 19:11:50 +04:00
Shanliang Jiang
446a481b15 8005325: The script should use TESTVMOPTS
Put back TESTVMOPTS which was removed by mistake.

Reviewed-by: smarks
2012-12-21 10:58:20 +01:00
Roland Westrelin
42c79d741b Merge 2012-12-21 01:39:34 -08:00
Jaroslav Bachorik
ad4080a20a 7146162: javax/management/remote/mandatory/connection/BrokenConnectionTest.java failing intermittently
ClientCommunicatorAdmin should call gotIOException((IOException)e) instead of restart((IOException)e) when detecting a communication error, because the method gotIOException will send a failure notification if necessary.

Reviewed-by: emcmanus, sjiang
2012-12-21 09:27:37 +01:00
Stuart Marks
1fd4da4d29 8005290: remove -showversion from RMI test library subprocess mechanism
Reviewed-by: jgish, chegar, dmocek
2012-12-20 20:11:45 -08:00
Yong Jeffrey Huang
06be28ce8d 7195759: ISO 4217 Amendment 154
Reviewed-by: naoto
2012-12-20 18:53:46 -08:00
Morris Meyer
113e9ab39d 8004250: replace AbstractAssembler a_byte/a_long with emit_int8/emit_int32
Reviewed-by: jrose, kvn, twisti
2012-12-20 18:53:44 -08:00
David Katleman
5dc630b150 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:24:51 -08:00
David Katleman
306cab1006 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:24:50 -08:00
David Katleman
8208c844dd 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:24:18 -08:00
David Katleman
fb31951ddf 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:23:11 -08:00
David Katleman
b3404d2c71 8004982: JDK8 source with GPL header errors
Reviewed-by: ohair
2012-12-20 16:22:44 -08:00
Jennifer Godinez
9008a63fde 7180359: Assertion in awt_Win32GraphicsDevice.cpp when running specjbb in jprt
Reviewed-by: bae, prr
2012-12-20 14:43:35 -08:00
Aleksey Shipilev
fede1f0216 8004330: Add missing Unsafe entry points for addAndGet() family
Fix java names for getAndSet intrinsics

Reviewed-by: kvn
2012-12-20 14:17:52 -08:00
John Coomes
958099576a 8005364: initial hg tags for nashorn repo
Reviewed-by: amurillo
2012-12-20 14:16:21 -08:00
Alan Bateman
50185a4371 8005281: (props) loadFromXML/storeToXML with small parser is not thread safe
Reviewed-by: mchung
2012-12-20 20:40:04 +00:00
Alan Bateman
27f7bfd9f0 8001048: JSR-160: Allow IIOP transport to be optional
Reviewed-by: dsamersoff, dfuchs, mchung
2012-12-20 20:29:59 +00:00
Doug Lea
f2c8fd3d1a 8004330: Add missing Unsafe entry points for addAndGet() family
Add Unsafe addAndGet() methods which have intrinsics in Hotspot (7023898)

Reviewed-by: alanb, kvn
2012-12-20 12:24:52 -08:00
Christian Thalinger
d8b54b1219 8005345: JSR 292: JDK performance tweaks
Reviewed-by: kvn, jrose
2012-12-20 11:16:14 -08:00
Jonathan Gibbons
e2bd09e6f6 8005307: fix missing @bug tags
Reviewed-by: jjh
2012-12-20 17:59:46 +00:00
David Katleman
16bb0e7a81 Added tag jdk8-b69 for changeset ec5621e36729 2012-12-20 09:18:36 -08:00
David Katleman
b2724c11c4 Added tag jdk8-b69 for changeset 5dfed9cbd6cf 2012-12-20 09:18:20 -08:00
David Katleman
553bf8aba9 Added tag jdk8-b69 for changeset d703e9dcfdfd 2012-12-20 09:18:10 -08:00
David Katleman
11dfefe252 Added tag jdk8-b69 for changeset 2d4530f2c281 2012-12-20 09:18:07 -08:00
David Katleman
5f74f40caa Added tag jdk8-b69 for changeset 72008e0da092 2012-12-20 09:17:47 -08:00
David Katleman
4630ee07bb Added tag jdk8-b69 for changeset 554224849d39 2012-12-20 09:17:38 -08:00
David Katleman
d571173bc7 Added tag jdk8-b69 for changeset 0798861b8903 2012-12-20 09:17:34 -08:00
Jaroslav Bachorik
96c02bccd3 8005309: Missed tests for 6783290,6937053,7009998
Missed tests for 6783290,6937053,7009998

Reviewed-by: sjiang, emcmanus
2012-12-20 20:12:32 +04:00
Chris Hegarty
6d67de55fa 8005306: Redundant cast warning in KeepAliveStream.java
Reviewed-by: alanb
2012-12-20 15:04:53 +00:00
Doug Lea
a3f6c5ebeb 8002356: Add ForkJoin common pool and CountedCompleter
Reviewed-by: chegar, mduigou
2012-12-20 13:44:06 +00:00
Chris Hegarty
3b34f3b493 8003335: Better handling of Finalizer thread
Reviewed-by: alanb, ahgross
2012-12-20 13:40:27 +00:00
Darryl Mocek
1bb9122f69 8001329: Augment RMI logging
Reviewed-by: smarks, hawtin, alanb
2013-02-05 16:38:25 -08:00
Daniel Fuchs
e064f7ea78 8001322: Refactor deserialization
Reviewed-by: mchung, skoivu, smarks
2013-03-14 13:10:32 +01:00
Stuart Marks
d4eb039764 8001040: Rework RMI model
Reviewed-by: alanb, ahgross, coffeys, dmocek
2013-02-27 14:17:05 -08:00
Valerie Peng
009c674511 8000897: VM crash in CompileBroker
Fixed to use the corresponding digest length when generating output.

Reviewed-by: mullan
2013-02-26 11:12:40 -08:00
Michael McMahon
724cfc1897 8000724: Improve networking serialization
Delegate InetAddress fields to a holder object

Reviewed-by: alanb, chegar
2013-02-13 10:40:31 +00:00
Sergey Malenkov
9f917b11d6 7200507: Refactor Introspector internals
Reviewed-by: ahgross, art
2013-02-08 17:32:25 +04:00
Andrew Brygin
65172138ad 8007014: Improve image handling
Reviewed-by: prr, mschoene, jgodinez
2013-02-07 19:15:59 +04:00
Jaroslav Bachorik
199a9c32b2 7009998: JMX synchronization during connection restart is faulty
Add a return statement after the re-connecting has finished and the state is CONNECTED

Reviewed-by: sjiang
2012-12-20 17:24:56 +04:00
Jaroslav Bachorik
bba9907d2a 6937053: RMI unmarshalling errors in ClientNotifForwarder cause silent failure
The catch block in the fetchNotifs() method is extended to expect UnmarshalException

Reviewed-by: emcmanus
2012-12-20 16:56:33 +04:00
Erik Joelsson
8c190945b9 8005178: build-infra: Dependency on libfdlibm on mac is broken
Reviewed-by: tbell, ohair
2012-12-20 13:05:21 +01:00
Jaroslav Bachorik
28979bd7a2 6783290: MBeanInfo/MBeanFeatureInfo has inconsistent readObject/writeObject
Call readObject in all cases

Reviewed-by: emcmanus
2012-12-20 16:02:42 +04:00
Joel Borggren-Franck
6ed6cb5375 8004823: Add VM support for type annotation reflection
Reviewed-by: dholmes, coleenp
2012-12-20 10:22:19 +01:00
David Holmes
2a45536ba1 7190137: Add support for JVM_VARIANT minimal1
Allow configuration of minimal1 as a target VM along with client and server

Reviewed-by: ohair, erikj
2012-12-20 01:44:02 -05:00
Erik Helin
5bac85fc66 8004691: Add a jtreg test that exercises the ExecuteInternalVMTests flag
Reviewed-by: stefank, brutisso, kvn, ctornqvi
2012-12-20 05:31:40 +01:00
Vladimir Kozlov
e508acf372 8004741: Missing compiled exception handle table entry for multidimensional array allocation
Added missing exception path for multidimensional array allocation and use Throwable type instead of OutOfMemoryError for allocation's exception.

Reviewed-by: twisti
2012-12-19 19:21:15 -08:00
Yumin Qi
ddb2b5d004 Merge 2012-12-19 16:10:19 -08:00
Vladimir Kozlov
960d969ade 8004835: Improve AES intrinsics on x86
Enable AES intrinsics on non-AVX cpus, group together aes instructions in crypto stubs.

Reviewed-by: roland, twisti
2012-12-19 15:40:35 -08:00
Richard Reingruber
ba0d2572eb 8005033: clear high word for integer pop count on SPARC
Reviewed-by: kvn, twisti
2012-12-19 14:44:00 -08:00
David Katleman
6fd78e16c1 Merge 2012-12-19 13:38:05 -08:00
David Katleman
940d0ee783 Merge 2012-12-19 13:36:21 -08:00
Joe Darcy
059b2b67b3 8005097: Tie isSynthetic javadoc to the JLS
Reviewed-by: mduigou
2012-12-19 11:53:52 -08:00
Ron Durbin
9c761152db 8005044: remove crufty '_g' support from HS runtime code
Phase 2 is removing '_g' support from the Runtime code.

Reviewed-by: dcubed, coleenp, hseigel
2012-12-19 10:35:08 -08:00
Alan Bateman
4ce906db2b 8005248: (props) Integrate small footprint parser into Properties
Reviewed-by: joehw, mchung, psandoz, erikj
2012-12-19 14:53:33 +00:00
Joe Wang
122ca6521e 8004371: (props) Properties.loadFromXML needs small footprint XML parser as fallback when JAXP is not present
Reviewed-by: alanb, mchung, psandoz
2012-12-19 12:09:10 +00:00
Shanliang Jiang
679f2eee3f 7158614: JMXStartStopTest.sh failing intermittently
Fixed 3 problems here: 1) checked the lock file too eary 2) never got the process id of a java test 3) some shell commands were not supported in some Solaris machines.

Reviewed-by: dsamersoff, alanb
2012-12-19 11:06:51 +01:00
Erik Joelsson
606197bf4b 8004803: build-infra: Cannot use icedtea as boot for closed build
Set bootclasspath to javac and not the running jvm

Reviewed-by: ohair
2012-12-19 09:46:28 +01:00
Joe Wang
9ee412031f 8003261: static field is public but not final
Add final to fVersion field, and make it a non-compile time constant.

Reviewed-by: hawtin, lancea, dholmes, chegar
2012-12-18 21:11:43 -08:00
Lana Steuck
a0e241952c Merge 2012-12-18 18:14:50 -08:00
Aleksey Shipilev
f39122797e 8004318: JEP-171: Support Unsafe fences intrinsics
Add three memory-ordering intrinsics to the sun.misc.Unsafe class.

Reviewed-by: twisti, kvn
2012-12-18 17:47:50 -08:00
Lana Steuck
f79b7e879f Merge 2012-12-18 17:42:13 -08:00
Aleksey Shipilev
4c293ebcd6 8004318: JEP-171: Support Unsafe fences intrinsics
Add three memory-ordering intrinsics to the sun.misc.Unsafe class.

Reviewed-by: twisti, kvn
2012-12-18 17:37:44 -08:00
Lana Steuck
5c4f1d7778 Merge 2012-12-18 16:14:59 -08:00
Joel Borggren-Franck
6fec53905c 8004699: Add type annotation storage to Constructor, Field and Method
Reviewed-by: darcy, dholmes
2012-12-18 14:49:39 -08:00
Joe Darcy
407aefdc02 8005042: Add Method.isDefault to core reflection
Reviewed-by: alanb, forax, mduigou, jgish, mchung
2012-12-18 14:44:13 -08:00
Sean Mullan
be64e9b087 8004302: javax/xml/soap/Test7013971.java fails since jdk6u39b01
Reviewed-by: vinnie, skoivu, mgrebac, ohair, tbell
2012-12-18 13:48:48 -05:00
Morris Meyer
52da261983 8004536: replace AbstractAssembler emit_word with emit_int16
Reviewed-by: jrose, kvn, twisti
2012-12-18 10:47:23 -08:00
Erik Joelsson
a54661714f 8001901: build-infra: Fix "misbehaving" which command on Solaris
Removed all uses of which in configure on solaris.

Reviewed-by: ohair
2012-12-18 17:54:39 +01:00
Vladimir Ivanov
8eb3b25c4f Merge 2012-12-18 08:19:53 -08:00
Konstantin Shefov
f569dcc7e9 7104594: [macosx] Test closed/javax/swing/JFrame/4962534/bug4962534 expects Metal L&F by default
Reviewed-by: yan, alexsch
2012-12-18 15:17:58 +00:00
Vladimir Ivanov
6d08af845e 8003135: HotSpot inlines and hoists the Thread.currentThread().isInterrupted() out of the loop
Make the load of TLS._osthread._interrupted flag in Thread.isInterrupted(Z)Z intrinsic effectively volatile.

Reviewed-by: kvn, jrose
2012-12-18 06:52:00 -08:00
Roland Westrelin
b1c3e5ccc6 8005031: Some cleanup in c2 to prepare for incremental inlining support
Collection of small changes to prepare for incremental inlining.

Reviewed-by: twisti, kvn
2012-12-18 14:55:25 +01:00
Stefan Karlsson
da4c36cdcb 8005108: NPG: MetaspaceAux::used_in_bytes(), capacity_in_bytes() and reserved_in_bytes() return inconsistent numbers
Reverted the changes to these functions from JDK-8000662

Reviewed-by: brutisso, jmasa
2012-12-18 10:40:51 +01:00
Fredrik Öhrström
ccafa0b2e1 8004145: New improved hgforest.sh, ctrl-c now properly terminates mercurial processes
Reviewed-by: ohair, erikj
2012-12-18 09:57:01 +01:00
Martin Buchholz
e046c9d3f5 8004863: Infinite Loop in KeepAliveStream
Reviewed-by: chegar
2012-12-17 18:39:59 -08:00
Bharadwaj Yadavalli
fb74718339 8004548: remove unused AbstractAssembler::print(Label&)
Reviewed-by: kvn, twisti
2012-12-17 11:00:22 -08:00
Zhengyu Gu
934898a792 Merge 2012-12-17 10:40:52 -08:00
Jonathan Gibbons
fe6a78af86 8004832: Add new doclint package
Reviewed-by: erikj, ohair
2012-12-17 10:31:27 -08:00
Zhengyu Gu
c75042e28b 8004802: jcmd VM.native_memory baseline=false crashes VM
NMT has to check option's value also to determine which command to execute

Reviewed-by: acorn, coleenp, hseigel
2012-12-17 13:14:02 -05:00
Mario Torre
d398aa77d7 8005018: X11: focus problems with openjdk 1.7.0 under gnome3 when selected keyboard is not the first in keyboard list
Don't consider extraenous bits when checking button mask, so that grabWindowRef on the window is not confused and released correctly

Reviewed-by: art, anthony
2012-12-17 17:43:21 +01:00
Jonathan Gibbons
d159fff7fd 8005090: Include com.sun.source.doctree in Tree API docs
Reviewed-by: erikj
2012-12-17 08:34:43 -08:00
Jonathan Gibbons
2533b1ce06 8005090: Include com.sun.source.doctree in Tree API docs
Reviewed-by: erikj
2012-12-17 08:34:02 -08:00
Chris Hegarty
00802749ea 8005081: java/util/prefs/PrefsSpi.sh fails on macos-x
Reviewed-by: alanb
2012-12-17 16:27:05 +00:00
Erik Helin
7fc460bae3 8004845: Catch incorrect usage of new and delete during compile time for value objects and stack objects
Makes the "new" and "delete" operator of _ValueObj and StackObj private

Reviewed-by: dholmes, coleenp
2012-12-17 15:25:26 +01:00
Sean Mullan
627cd88eba Merge 2012-12-17 08:30:06 -05:00
Sean Mullan
f458bb3861 8004234: Downgrade normative references to ${java.home}/lib/security/krb5.conf
Reviewed-by: alanb, weijun
2012-12-17 08:28:27 -05:00
Sergey Malenkov
aed660dc95 8005065: [findbugs] reference to mutable array in JavaBeans
Reviewed-by: alexsch
2012-12-17 16:58:56 +04:00
Alexey Utkin
c5c34df7bf 8004928: TEST_BUG: Reduce dependence of CoreLib tests from the AWT subsystem
The tests were refactored to drop AWT dependence where it was possible.

Reviewed-by: alanb, mchung
2012-12-17 14:34:37 +04:00
Bengt Rutisson
a3355065be 7173959: Jvm crashed during coherence exabus (tmb) testing
Mapping of aligned memory needs to be MT safe. Also reviewed by: vitalyd@gmail.com

Reviewed-by: dholmes, coleenp, zgu
2012-12-17 08:49:20 +01:00
Lana Steuck
166cf4fbc1 Merge 2012-12-16 22:09:28 -08:00
Lana Steuck
7aab781edb Merge 2012-12-16 22:05:19 -08:00
Lana Steuck
3855230f7a Merge 2012-12-16 22:02:35 -08:00
Weijun Wang
5ded9d47a1 7197159: accept different kvno if there no match
Reviewed-by: xuelei
2012-12-17 12:18:46 +08:00
Joel Borggrén-Franck
72cbbd7f3b 8005098: Provide isSynthesized() information on Attribute.Compound
Reviewed-by: jjg
2012-12-16 11:09:36 +01:00
Jonathan Gibbons
aee2457cd0 8004833: Integrate doclint support into javac
Reviewed-by: mcimadamore
2012-12-19 11:29:56 +00:00
Lana Steuck
5cf1075de1 Merge 2012-12-18 18:15:47 -08:00
Maurizio Cimadamore
2296453268 8005193: New regression test test/tools/javac/lambda/BadMethodCall2.java fails
Bad golden file in negative test

Reviewed-by: jjh
2012-12-18 22:16:45 +00:00
Fredrik Öhrström
d61f7ca328 8004657: Add hooks to javac to enable reporting dependency information
Reviewed-by: jjg, mcimadamore
2012-12-18 10:23:40 +01:00
Joe Darcy
da02d4f3d5 8005046: Provide checking for a default method in javax.lang.model
Reviewed-by: jjg
2012-12-18 00:24:54 -08:00
Mandy Chung
9f039ad8bd 8005137: Rename DocLint.call to DocLint.init which overrides Plugin.init
Reviewed-by: darcy, jjh
2012-12-17 15:19:38 -08:00
Jonathan Gibbons
3ce1d65326 8004961: rename Plugin.call to Plugin.init
Reviewed-by: mcimadamore
2012-12-17 10:55:40 -08:00
Maurizio Cimadamore
08823b6103 8004099: Bad compiler diagnostic generated when poly expression is passed to non-existent method
Some code paths in resolve do not use methodArguments to correctly format actuals

Reviewed-by: jjg
2012-12-17 16:13:01 +00:00
Jonathan Gibbons
4a3e904c6e 8004832: Add new doclint package
Reviewed-by: mcimadamore
2012-12-17 07:47:05 -08:00
Maurizio Cimadamore
c5acce4569 8004814: javadoc should be able to detect default methods
Reviewed-by: jjg
2012-12-17 14:54:42 +00:00
Lana Steuck
c38e124ed5 Merge 2012-12-16 22:10:52 -08:00
Alan Bateman
29698e6212 8004963: URLConnection, downgrade normative reference to ${java.home}/lib/content-types.properties
Reviewed-by: chegar
2012-12-15 15:07:35 +00:00
Vicente Romero
c1804d6409 8000518: Javac generates duplicate name_and_type constant pool entry for class BinaryOpValueExp.java
Reviewed-by: jjg, mcimadamore
2012-12-15 13:54:51 +00:00
Coleen Phillimore
a7b0cbd4e6 Merge 2012-12-14 16:43:37 -08:00
Alejandro Murillo
b3c9917021 8005036: new hotspot build - hs25-b14
Reviewed-by: jcoomes
2012-12-14 14:27:40 -08:00
Alejandro Murillo
4cb99fc37e Added tag hs25-b13 for changeset a644646e04e5 2012-12-14 14:19:36 -08:00
Alejandro Murillo
e668a7a7a1 Merge 2012-12-14 14:19:35 -08:00
Joe Wang
fd69767808 8003260: [findbug] some fields should be package protected
Change public or protected mutable static fields to private or package private.

Reviewed-by: lancea
2012-12-14 13:24:34 -08:00
Lana Steuck
49be988925 Merge 2012-12-14 13:15:39 -08:00
Lana Steuck
0118983407 Merge 2012-12-14 13:14:33 -08:00
Christian Thalinger
110d953ab2 Merge 2012-12-14 12:11:17 -08:00
Christian Thalinger
40a871f3e9 8003238: JSR 292: intermittent exception failure with java/lang/invoke/CallSiteTest.java
Reviewed-by: jrose, kvn
2012-12-14 12:06:42 -08:00
Gary Collins
11605cf755 Merge 2012-12-14 11:45:55 -08:00
Lana Steuck
25706f6a77 Merge 2012-12-14 11:22:54 -08:00
Lana Steuck
39ddaf8a4b Merge 2012-12-14 11:22:16 -08:00
Lana Steuck
abe9bf1b53 Merge 2012-12-14 11:21:09 -08:00
Ron Durbin
af7cedec67 7153050: remove crufty '_g' support from HotSpot repo makefiles
Phase 1 is removing '_g' support from the Makefiles.

Reviewed-by: dcubed, sspitsyn, coleenp, tbell
2012-12-14 10:06:52 -08:00
Konstantin Shefov
65793d5644 6757986: javax/swing/JInternalFrame/5066752/bug5066752.java needs correction
Reviewed-by: serb, alexsch
2012-12-14 13:32:59 +00:00
Vicente Romero
630bba40bd 8004976: test/tools/javac/7153958/CPoolRefClassContainingInlinedCts.java can fail
Reviewed-by: jjg, mcimadamore
2012-12-14 11:16:46 +00:00
David Holmes
516f5d5da2 8003632: HPROF class file version java.lang.RuntimeException errors
Reviewed-by: mchung, lancea
2012-12-13 21:18:27 -05:00
Stefan Karlsson
9d5b19ab0a Merge 2012-12-13 09:06:38 -08:00
David Katleman
f329e18992 Added tag jdk8-b68 for changeset 36e1566efb55 2012-12-13 09:05:43 -08:00
David Katleman
d25f3ac7fb Added tag jdk8-b68 for changeset e56b4a0c1da8 2012-12-13 09:05:35 -08:00
David Katleman
294f5f158e Added tag jdk8-b68 for changeset 461e60cdcd3e 2012-12-13 09:05:31 -08:00
David Katleman
892ca4947b Added tag jdk8-b68 for changeset 0447ec5a0e8c 2012-12-13 09:05:29 -08:00
David Katleman
7b0930ff0e Added tag jdk8-b68 for changeset 9e5f94da743d 2012-12-13 09:05:20 -08:00
David Katleman
dc523aae7a Added tag jdk8-b68 for changeset 9b354f853d8b 2012-12-13 09:05:15 -08:00
David Katleman
e3a5678c3e Added tag jdk8-b68 for changeset 388af7398bc9 2012-12-13 09:05:11 -08:00
Rob McKenna
7524cd99c1 8000525: Java.net.httpcookie api does not support 2-digit year format
Reviewed-by: chegar
2012-12-13 15:28:40 +00:00
Konstantin Shefov
077973261a 7132385: [macosx] IconifyTest of RepaintManager could use some delay
Reviewed-by: serb, alexsch
2012-12-13 15:14:22 +00:00
Mark Sheppard
c9063f559f 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
2012-12-13 14:47:35 +00:00
Sean Mullan
25435d7aa4 Merge 2012-12-13 09:37:29 -05:00
Jason Uh
e3c39dffe5 7193792: sun/security/pkcs11/ec/TestECDSA.java failing intermittently
Reviewed-by: vinnie, wetmore
2012-12-13 09:35:35 -05:00
Chris Hegarty
453bef09b0 8004675: Inet6Address.getHostAddress should use string scope identifier where available
...and some minor stylistic cleanup

Reviewed-by: khazra, dsamersoff, michaelm
2012-12-13 14:33:32 +00:00
Chris Hegarty
2f8cd2937d 8004925: java/net/Socks/SocksV4Test.java failing on all platforms
Reviewed-by: alanb, dsamersoff
2012-12-13 09:55:55 +00:00
Erik Helin
0ed52d16e2 8004661: Comment and function name java_lang_String::toHash is wrong
Renamed to hash_code

Reviewed-by: dholmes, coleenp, brutisso
2012-12-13 10:09:49 +01:00
Volker Simonis
2b3c2f2603 8004674: Add necessary .inline.hpp files to fix non-PCH build
Reviewed-by: stefank, coleenp
2012-12-13 09:28:14 +01:00
Roman Kennke
9032aa3391 8004898: library_call.cpp build error after 7172640 with GCC 4.7.2
Fix opto/library_call.cpp compilation errors

Reviewed-by: twisti, coleenp
2012-12-12 21:40:04 -05:00
Lance Andersen
e57799bc0e 8004357: Implement various methods in SerialBlob/Clob/Array and specify Thread Safety
Reviewed-by: naoto
2012-12-12 20:57:45 -05:00
Weijun Wang
85db8f9602 8004235: Disable native JGSS provider on Mac
Reviewed-by: erikj, valeriep
2012-12-13 08:11:38 +08:00
Jim Gish
3e23931d0c 8004651: TEST: java/util/logging/CheckLockLocationTest.java failed to delete file (win)
Failure to delete test log file should be a warning instead of test failure

Reviewed-by: mduigou, smarks
2012-12-12 15:37:27 -08:00
Joe Wang
d1398dfca7 8001235: Improve JAXP HTTP handling
Reviewed-by: lancea, skoivu
2012-12-12 15:19:19 -08:00
Stefan Karlsson
47424a5d4d 8005002: Crash because of a raw oop in ClassLoaderData::add_dependency
Move the handelization of 'last' to a point before the GC might enter.

Reviewed-by: dholmes, sspitsyn, coleenp
2012-12-12 22:41:13 +01:00
Paul Nauman
0d7c6381b3 8004713: Stackoverflowerror thrown when thread stack straddles 0x80000000
Use unsigned comparison when checking for stack overflow

Reviewed-by: kvn, twisti
2012-12-13 17:27:55 -08:00
David Katleman
f522d676c3 Merge 2012-12-12 13:21:39 -08:00
David Katleman
4ddb77631b Merge 2012-12-12 13:19:32 -08:00
John Cuthbertson
73843e1140 8001028: Improve GC option handling
If there are not enough native resources to create the ReferenceHandler or Finalizer Java threads, the VM will attempt to throw an OOME before the java.lang.Class class has been initialized. This can result in assertion failures and other crashes. Move the initialization of the java.lang.Class class to just before the initialization of the java.lang.ref.Finalizer class.

Reviewed-by: jwilhelm, dholmes, coleenp
2012-12-12 12:07:32 -08:00
Stuart Marks
38887c7167 8004748: clean up @build tags in RMI tests
Reviewed-by: alanb, darcy, mchung
2012-12-12 09:53:01 -08:00
Denis Fokin
3780f56b0f 8004341: Two JCK tests fails with 7u11 b06
Reviewed-by: serb, skoivu
2012-12-12 21:08:19 +04:00
Coleen Phillimore
54bbf614e8 8004883: NPG: clean up anonymous class fix
Add klass_holder() to return either mirror or class_loader depending on if the class is anonymous or not.

Reviewed-by: stefank, jrose
2012-12-12 11:39:29 -05:00
Rob McKenna
bf46e16bbc 8004337: java/sql tests aren't run in test/Makefile
Reviewed-by: lancea, alanb
2012-12-12 15:57:14 +00:00
Sean Mullan
6d9c854a3d Merge 2012-12-12 09:27:35 -05:00
Sean Mullan
f7ad1c8c98 8004064: Downgrade normative references to ${java.home}/lib/security/java.security
Reviewed-by: alanb, vinnie, xuelei
2012-12-12 09:25:24 -05:00
Alan Bateman
64b0adf837 8004874: Reduce dependency on java.beans to only add/removePropertyChangeListener
Reviewed-by: ksrini, mchung, dholmes
2012-12-12 13:03:05 +00:00
Chris Hegarty
2f710eebba 8004921: Trivial javadoc warnings in Base64
Reviewed-by: darcy
2012-12-12 11:35:18 +00:00
Weijun Wang
c740727efc 8004904: Makefile for ntlm
Reviewed-by: erikj, chegar
2012-12-12 18:39:34 +08:00
Jayashree Viswanathan
2c1f08ea9e 8004316: Printer - tempfile having incorrect extension
Reviewed-by: bae, jgodinez
2012-12-12 13:28:35 +08:00
Mike Duigou
20d79bf440 8004905: Correct license of test to remove classpath exception
Reviewed-by: akhil
2012-12-11 20:49:44 -08:00
Akhil Arora
ee1832fd74 8003246: Add InitialValue Supplier to ThreadLocal
Reviewed-by: mduigou, forax, dl, chegar, briangoetz
2012-12-11 15:33:16 -08:00
Jiangli Zhou
511a9d8982 8004076: Move _max_locals and _size_of_parameters to ConstMethod for better sharing
Move _max_locals and _size_of_parameters to ConstMethod for better sharing.

Reviewed-by: coleenp, minqi, jrose
2012-12-11 12:41:31 -05:00
Petr Pchelko
c745a7e923 7154778: [macosx] NSView-based implementation of sun.awt.EmbeddedFrame
The new implementation of EmbeddedFrame to support SWT_AWT Bridge

Reviewed-by: anthony, serb, leonidr
2012-12-11 19:45:00 +04:00
Erik Joelsson
5695b639f8 8001753: build-infra: mismatch with full debug symbol control for hotspot
Changing boolean values of ENABLE_DEBUG_SYMBOLS.

Reviewed-by: dholmes, ohair
2012-12-11 12:27:34 +01:00
Erik Joelsson
7e37c10bf1 8001753: build-infra: mismatch with full debug symbol control for hotspot
Enabling hotspot to use the FDS settings established at configure time

Reviewed-by: dholmes, ohair
2012-12-11 11:33:34 +01:00
Erik Joelsson
f5fc8bc650 8003945: build-infra: problems finding compiler when using --with-dev-kit
Search all compiler names in dev-kit dir first.

Reviewed-by: tbell
2012-12-11 11:29:58 +01:00
Weijun Wang
2be2f20b65 8004488: wrong permissions checked in krb5
Reviewed-by: xuelei
2012-12-11 13:14:56 +08:00
Lana Steuck
e28423afe9 Merge 2012-12-10 20:59:38 -08:00
Lana Steuck
393e43594b Merge 2012-12-10 20:58:36 -08:00
Lana Steuck
a4c1246b3a Merge 2012-12-10 20:52:08 -08:00
Frank Ding
9cb760fd37 6512101: Incorrect encoding in NetworkInterface.getDisplayName()
Reviewed-by: chegar, dsamersoff
2012-12-11 10:42:24 +08:00
Mandy Chung
e4a502d7f5 4819681: Typo in http://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/LogManager.html
Simple capitalization typo in LogManager() description

Reviewed-by: darcy, mchung
2012-12-10 15:15:57 -08:00
Michael McMahon
5e999034a3 8003948: NTLM/Negotiate authentication problem
Reviewed-by: chegar, weijun
2012-12-10 14:56:44 +00:00
Masayoshi Okutsu
78a8ed73a2 8000983: Support narrow display names for calendar fields
8003267: Support generic time zone names in TimeZoneNameProvider (SPI)

Reviewed-by: naoto
2012-12-10 10:52:11 +09:00
Dan Xu
8be8c66772 7194370: (fs) WatchService fails if volume S/N is 0 [win]
Reviewed-by: alanb, forax
2012-12-09 19:13:08 +00:00
David Dehaven
4698a5c96d 8004042: Arrrghs.java test failed on windows with access error
Reviewed-by: smarks, jjh, ksrini
2012-12-09 07:43:12 -08:00
Bharadwaj Yadavalli
04fee0b792 8004668: Build failure for Zero target
Fixed build failure for Zero target

Reviewed-by: twisti, kvn
2012-12-07 18:13:23 -08:00
John Cuthbertson
1dff0005b9 Merge 2012-12-07 16:08:05 -08:00
Alejandro Murillo
ba2a5a260d 8004724: new hotspot build - hs25-b13
Reviewed-by: jcoomes
2012-12-07 10:55:16 -08:00
Jaroslav Bachorik
07d6fc6bd1 8000537: Contextualize RequiredModelMBean class
Contextualize RequiredModelMBean class

Reviewed-by: asaha
2012-12-07 22:49:08 +04:00
Alejandro Murillo
0d262db9b4 Added tag hs25-b12 for changeset 31453af433e7 2012-12-07 10:46:54 -08:00
Alejandro Murillo
b059fdfdb3 Merge 2012-12-07 10:46:53 -08:00
Erik Joelsson
f790d59eca 8004045: build-infra: Error 12 from zip when updating src.zip
Hiding this error from make so that it doesn't fail

Reviewed-by: ohrstrom, dholmes
2012-12-07 17:23:42 +01:00
Jesper Wilhelmsson
6c64f0223c Merge 2012-12-07 07:36:51 -08:00
Roland Westrelin
d8921b191a Merge 2012-12-07 01:09:03 -08:00
Robert Field
846f0f2ded 8003881: Prevent lambda implementing inner classes from allowing the creation of new instances
Lambda implementing inner classes now has private constructor (thanks Kumar)

Reviewed-by: ksrini
2012-12-06 21:55:55 -08:00
Henry Jen
b7f53938ae 8004685: add java.util.function to CORE_PKGS.gmk
Reviewed-by: mduigou
2012-12-06 15:38:31 -08:00
Lance Andersen
fbc76e673a 8004374: CachedRowSetSwriter.writeData reports wrong number of conflicts in SyncProviderException
Reviewed-by: naoto
2012-12-06 15:51:44 -05:00
David Katleman
453c37183c Added tag jdk8-b67 for changeset 68edf7c31a6d 2012-12-06 12:04:44 -08:00
David Katleman
d8eae9f3ec Added tag jdk8-b67 for changeset 558a3373ba7e 2012-12-06 12:04:35 -08:00
David Katleman
8dfc01a8f3 Added tag jdk8-b67 for changeset 8f2ccadbf32b 2012-12-06 12:04:30 -08:00
David Katleman
8afda75ade Added tag jdk8-b67 for changeset 11084bacb67d 2012-12-06 12:04:27 -08:00
David Katleman
d337116170 Added tag jdk8-b67 for changeset af8f87762e23 2012-12-06 12:04:17 -08:00
David Katleman
a3784507bf Added tag jdk8-b67 for changeset 66fb055d7580 2012-12-06 12:04:12 -08:00
David Katleman
dcf65b2a52 Added tag jdk8-b67 for changeset dc59b2c5a701 2012-12-06 12:04:11 -08:00
Christian Thalinger
cd08acf8ea Merge 2012-12-06 11:05:33 -08:00
Christian Thalinger
34733bb83c 8003250: SPARC: move MacroAssembler into separate file
Reviewed-by: jrose, kvn
2012-12-06 09:57:41 -08:00
Nils Eliasson
c44c5e64ed Merge 2012-12-06 14:33:52 +01:00
Erik Joelsson
6fd00f446e 8004104: build-infra: Minor cleanup
Reviewed-by: ohrstrom, tbell
2012-12-06 12:09:33 +01:00
Nils Eliasson
7cd4aaa02d 8003934: Fix generation of malformed options to Projectcreator
Makefile produces unmatched quotes due to nmake bug

Reviewed-by: jwilhelm, brutisso
2012-12-06 09:50:08 +01:00
Jim Gish
aab1dbdc30 8004317: TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported
Reviewed-by: alanb, dmocek, smarks
2012-12-05 21:08:14 -08:00
Mandy Chung
d093c6fbb6 8004175: Restricted packages added in java.security are missing in java.security-{macosx, solaris, windows}
Reviewed-by: alanb, ahgross, mullan
2012-12-05 14:02:58 -08:00
Edvard Wendelin
f92370665e Merge 2013-02-03 23:25:38 +01:00
David Katleman
7350163053 Merge 2012-12-05 12:53:55 -08:00
David Katleman
c18cb33802 Merge 2012-12-05 12:52:47 -08:00
Erik Joelsson
cbba06982b 8003414: build-infra: fails on on windows
Added extra check that windows sdk is valid.

Reviewed-by: tbell, ohrstrom, ohair
2012-12-05 16:35:25 +01:00
Alan Bateman
f5797a2ffe 8004491: Build breakage on Linux due to 8004188
Reviewed-by: chegar, erikj
2012-12-05 12:20:00 +00:00
Erik Joelsson
6c560d6b09 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
Reviewed-by: ohair, tbell, dholmes
2012-12-05 10:12:57 +01:00
Erik Joelsson
e60836f1d6 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
Fixed bug in setting up make dependencies in SetupArchive.

Reviewed-by: ohair, tbell, dholmes
2012-12-05 10:12:14 +01:00
Erik Joelsson
f148219a1f 8001541: Cannot build on Solaris using softlinks
Fixed softlink resolver macro in configure.

Reviewed-by: tbell, ohair
2012-12-05 09:39:34 +01:00
Jason Uh
a3f91508bd 8004188: Rename src/share/lib/security/java.security to java.security-linux
Reviewed-by: mullan, mchung
2012-12-04 17:40:41 -05:00
Jim Gish
f436d23492 8003596: TEST_BUG: java/util/logging/CheckLockLocationTest.java failing [win]
Reviewed-by: alanb
2012-12-04 20:21:19 +00:00
Lana Steuck
0e089aadcd Merge 2012-12-04 11:46:27 -08:00
Lana Steuck
e7f9c73f87 Merge 2012-12-04 11:41:44 -08:00
Maurizio Cimadamore
01dc08a587 8004360: regression test DefaultMethodRegressionTests fails in langtools
Ignore broken failing test

Reviewed-by: jjg
2012-12-04 17:19:42 +00:00
Krystal Mo
e6ab16c283 8004066: TEST_BUG: test/java/lang/Math/DivModTests.java assumes ArithmeticException message
Reviewed-by: twisti, alanb, dholmes
2012-12-04 15:10:03 +00:00
Dan Xu
00ad2900dd 7142921: (fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
7144997: (fs) Files.probeContentType returns null on Solaris 64-bit

Reviewed-by: alanb, mduigou
2012-12-04 14:07:30 +00:00
Andrew Haley
0b8ff32553 8004344: Fix a crash in ToolkitErrorHandler() in XlibWrapper.c
Code does not check for JNU_GetEnv returning NULL.

Reviewed-by: anthony
2012-12-04 14:02:08 +00:00
Jayashree Viswanathan
ec15d0a1b0 4631925: JColor Chooser is not fully accessible
Reviewed-by: alexsch
2012-12-04 17:17:45 +04:00
Alexander Scherbatiy
8841803399 8002077: Possible mnemonic issue on JFileChooser Save button on nimbus L&F
Reviewed-by: serb
2012-12-04 16:42:19 +04:00
Jaroslav Tulach
288c935f0d 8003830: NPE at BasicTreeUI$Actions.page:4470
Reviewed-by: serb, alexsch
2012-12-04 15:56:02 +04:00
Alexander Scherbatiy
367e07444a 6671481: NPE at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection
Reviewed-by: serb
2012-12-04 15:26:57 +04:00
Christian Thalinger
c5240e7c53 8004319: test/gc/7168848/HumongousAlloc.java fails after 7172640
Reviewed-by: kvn, johnc
2012-12-03 15:48:49 -08:00
Jon Masamitsu
e8b3b89264 8005082: NPG: Add specialized Metachunk sizes for reflection and anonymous classloaders
Reviewed-by: johnc, coleenp
2012-12-03 15:09:39 -08:00
Jason Uh
e4c0346aa9 7199143: RFE: OCSP revocation checker should provide possibility to specify connection timeout
Added com.sun.security.ocsp.timeout system property to control timeout

Reviewed-by: mullan, vinnie
2012-12-03 11:07:20 -05:00
Xue-Lei Andrew Fan
eb66ce8b2e 8004184: security tests leave JSSEServer running
Use othervm mode to release resources,  and correct the system properties issues in JSSE

Reviewed-by: chegar
2012-12-03 06:00:19 -08:00
Andrew Brygin
0c7b2461a2 7124347: [macosx] java.lang.InternalError: not implemented yet on call Graphics2D.drawRenderedImage
Reviewed-by: prr, flar
2012-12-03 16:26:47 +04:00
Joel Borggrén-Franck
e4c3d2d727 8001114: Container annotation is not checked for semantic correctness
Reviewed-by: jjg
2012-12-03 11:16:32 +01:00
Jan Lahoda
9537c44ca5 8004504: ListBuffer could reuse List.nil() as the sentinel element
ListBuffer.last now points to the last elements with client data, or null if none.

Reviewed-by: jjg, mcimadamore
2012-12-12 20:26:56 +01:00
Jonathan Gibbons
1c8e65a20e 8004828: refactor init of *DocImpl classes
Reviewed-by: darcy
2012-12-11 15:05:55 -08:00
Vicente Romero
8fc2d739bd 8003967: detect and remove all mutable implicit static enum fields in langtools
Reviewed-by: jjg
2012-12-10 16:21:26 +00:00
Maurizio Cimadamore
5c0bff8f21 8004094: Javac compiler error - synthetic method accessor generated with duplicate name
Method clash check logic should skip methods marked with ACC_SYNTHETIC

Reviewed-by: jjg
2012-12-10 12:10:50 +00:00
Erik Joelsson
c4bb9ec3b8 8003819: build-infra: backslashes at end of LIB and INCLUDE in spec.gmk
Removing trailing backslash from LIB and INCLUDE.

Reviewed-by: ohrstrom, ohair
2012-12-03 10:26:55 +01:00
Weijun Wang
fdd109b467 7198507: [TEST_BUG] sun/security/tools/keytool/console.sh should be rewritten
Reviewed-by: xuelei
2012-12-03 17:14:03 +08:00
Bill Pittore
ecdf296456 7200297: agent code does not handle multiple boot library path elements correctly
When bug 6819213 was fixed it enabled sun.boot.library.path property to contain multiple paths. Code in agents does not handle multiple paths when attempting to find dependent shared libs.

Reviewed-by: dholmes, sspitsyn, dsamersoff
2012-12-02 19:16:56 -05:00
Alan Bateman
d2d5213b87 8003846: Override mechanism for currency data should not require creating currency.properties in java.home
Reviewed-by: naoto
2012-12-02 16:37:31 +00:00
Xueming Shen
e78a1eb083 8004212: java.util.Base64 methods decodeArray and decodeBuffer should return the number of bytes written
To return the length instead of position

Reviewed-by: alanb
2012-12-01 11:36:25 -08:00
Lana Steuck
76863b84de Merge 2012-11-30 17:09:05 -08:00
Alejandro Murillo
6a66f24366 8004248: new hotspot build - hs25-b12
Reviewed-by: jcoomes
2012-11-30 17:00:32 -08:00
Alejandro Murillo
1944119a77 Added tag hs25-b11 for changeset 7236115a66ae 2012-11-30 16:45:27 -08:00
Alejandro Murillo
654d3dcd3e Merge 2012-11-30 16:45:26 -08:00
Lana Steuck
cc4aa039e3 Merge 2012-11-30 16:34:51 -08:00
Lana Steuck
351dbc4683 Merge 2012-11-30 16:33:50 -08:00
Lana Steuck
574b90d1c6 Merge 2012-11-30 16:31:13 -08:00
Lana Steuck
ad0ada24a2 Merge 2012-11-30 16:02:00 -08:00
Christian Thalinger
2c2c007448 8003240: x86: move MacroAssembler into separate file
Reviewed-by: kvn
2012-11-30 15:23:16 -08:00
John Cuthbertson
6c0bf79f7a Merge 2012-11-30 12:01:34 -08:00
Kurchi Subhra Hazra
d7cae9afff 7197662: (prefs) java/util/prefs/AddNodeChangeListener.java fails by timeout or by "couldn't get file lock"
Set -Djava.util.prefs.userRoot to current working directory of user in the prefs tests

Reviewed-by: alanb, chegar, weijun, dxu
2012-11-30 12:00:07 -08:00
Bharadwaj Yadavalli
a533392684 8003195: AbstractAssembler should not store code pointers but use the CodeSection directly
Reviewed-by: twisti, kvn
2012-11-30 11:44:05 -08:00
David Chase
98c1b902dd 8001885: JSR 292 classes should use jdk.internal.org.objectweb.asm
Reviewed-by: kvn, jrose, twisti
2012-11-30 11:42:55 -08:00
Maurizio Cimadamore
d7884e5ae2 8002099: Add support for intersection types in cast expression
Add parser and type-checking support for intersection types in cast expressions

Reviewed-by: jjg
2012-11-30 15:14:48 +00:00
Maurizio Cimadamore
c76c08e82a 8004101: Add checks for method reference well-formedness
Bring method reference type-checking in sync with latest EDR

Reviewed-by: jjg
2012-11-30 15:14:36 +00:00
Maurizio Cimadamore
0db60b7bb2 8004102: Add support for generic functional descriptors
Method references are allowed to have a generic functional interface descriptor target

Reviewed-by: jjg
2012-11-30 15:14:25 +00:00
Maurizio Cimadamore
684271da34 8004105: Expression statement lambdas should be void-compatible
Fix lambda compatibility rules as per latest EDR

Reviewed-by: jjg
2012-11-30 15:14:12 +00:00
Konstantin Shefov
792a1f9d72 7124242: [macosx] Test doesn't work because of the frame round corners in the LaF
Reviewed-by: anthony, yan, alexsch
2012-11-30 12:39:37 +00:00
Denis Fokin
eb67f3f1da 7201064: Better dialogue checking
Reviewed-by: serb, skoivu
2012-11-30 15:51:44 +04:00
Joel Borggrén-Franck
5b7045b5ba 8004110: Remove debug code form sun/reflect/annotation/AnnotationSupport.java
Reviewed-by: jjg, darcy
2012-11-30 09:47:17 +01:00
Alan Bateman
a42dd61e45 7165762: (aio) Default thread pool should be configured so that threads terminated after a timeout period
Reviewed-by: chegar
2012-11-30 16:29:32 +00:00
Alan Bateman
2f3796af9d 8003949: LogManager, downgrade normative reference to ${java.home}/lib/logging.properties
Reviewed-by: psandoz, mchung
2012-11-30 11:18:16 +00:00
Shi Jun Zhang
4b272f6fdd 8004211: Remove unused dlinfo local variable in launcher code
Reviewed-by: alanb
2012-11-30 17:24:54 +08:00
Andrew Brygin
96a62b95f3 7124223: [macosx] Regression test failure with new exception, when glyph is positioned explicitly
Reviewed-by: jgodinez
2012-11-30 11:32:36 +04:00
Staffan Larsen
c1126e3727 7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo
Reviewed-by: okutsu
2012-11-30 08:17:02 +01:00
Amy Lu
dd42277862 8004134: More ProblemList.txt updates (11/2012)
Reviewed-by: alanb
2012-11-29 14:43:46 -08:00
Stefan Karlsson
98abf6fb1c 8004199: Change the ASM package for Test8003720
Reviewed-by: kvn, jrose
2012-11-29 23:02:52 +01:00
Chris Plummer
fdf8ceee2d Merge 2012-11-29 13:55:49 -08:00
Coleen Phillimore
7aa43fc5d8 8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Add ClassLoaderData object for each anonymous class with metaspaces to allocate in.

Reviewed-by: twisti, jrose, stefank
2012-11-29 16:50:29 -05:00
David Katleman
e21b3cc37b Added tag jdk8-b66 for changeset 4f273518dc3b 2012-11-29 11:31:48 -08:00
David Katleman
32e0bb9c4e Added tag jdk8-b66 for changeset bc93357f4936 2012-11-29 11:31:01 -08:00
David Katleman
1bedcf62af Added tag jdk8-b66 for changeset b2f74901d05c 2012-11-29 11:30:33 -08:00
David Katleman
cc7b34ea06 Added tag jdk8-b66 for changeset bc221bce9150 2012-11-29 11:30:24 -08:00
David Katleman
d926f93877 Added tag jdk8-b66 for changeset fe1a7da1f85c 2012-11-29 11:30:04 -08:00
David Katleman
e0d4a1ff33 Added tag jdk8-b66 for changeset f83c6348160b 2012-11-29 11:29:48 -08:00
David Katleman
484044afec Added tag jdk8-b66 for changeset d31d8682bc9e 2012-11-29 11:29:44 -08:00
John Cuthbertson
defec7ae16 Merge 2012-11-29 11:23:15 -08:00
Jon Masamitsu
e74d551608 8003554: NPG: move Metablock and Metachunk code out of metaspace.cpp
Reviewed-by: coleenp
2012-11-29 10:09:04 -08:00
John Cuthbertson
4e43b88153 8004170: G1: Verbose GC output is not getting flushed to log file using JDK 8
Add flushes to G1CollectedHeap::log_gc_footer() and TraceCPUTime destructor.

Reviewed-by: jwilhelm, azeemj, brutisso
2012-11-30 11:46:17 -08:00
Peter Levart
79727a83aa 8004141: UnsafeStaticFieldAccessorImpl#base should be final
Reviewed-by: chegar, alanb
2012-11-29 17:03:52 +00:00
Alexander Scherbatiy
463528217c 8000423: Diacritic is not applyed to a base letter on Linux
Reviewed-by: anthony, serb
2012-11-29 07:42:23 -05:00
Jim Gish
7aed72aa11 8003380: Compiler warnings in logging test code
Use generics, suppress warnings where appropriate, remove unused imports, etc.

Reviewed-by: lancea, chegar
2012-11-29 12:28:02 +00:00
Michael McMahon
38bcfd05a2 Merge 2012-11-29 09:47:31 +00:00
Vicente Romero
ba3ae37ef0 7153958: add constant pool reference to class containing inlined constants
Reviewed-by: jjg, mcimadamore
2012-11-29 09:41:48 +00:00
Michael McMahon
ab75d799e3 7200720: crash in net.dll during NTLM authentication
Reviewed-by: chegar, dsamersoff
2012-11-29 09:41:20 +00:00
Stuart Marks
2d91430e91 8004131: move jdi tests out of core testset
Reviewed-by: alanb, chegar
2012-11-28 17:31:35 -08:00
Mike Duigou
2a4b35660e 6553074: String{Buffer,Builder}.indexOf(Str, int) contains unnecessary allocation
It is not necessary to extract the value array with toCharArray. The value array can now be used directly.

Reviewed-by: alanb
2012-11-29 14:09:45 -08:00
Mike Duigou
1cf41521cc 7175464: entrySetView field is never updated in NavigableSubMap
The method entrySet() in AscendingSubMap and DescendingSubMap failed to cache the entrySetView.

Reviewed-by: alanb, psandoz
2012-11-29 14:07:47 -08:00
Stuart Marks
f721ac5ad5 8004131: move jdi tests out of core testset
Reviewed-by: alanb, chegar
2012-11-28 17:31:30 -08:00
Coleen Phillimore
6538c5134b 8003635: NPG: AsynchGetCallTrace broken by Method* virtual call
Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer.

Reviewed-by: dholmes, sspitsyn, dcubed, jmasa
2012-11-28 17:50:21 -05:00
David Katleman
f620e53bca Merge 2012-11-28 14:07:26 -08:00
David Katleman
8a5c8801ab Merge 2012-11-28 14:06:14 -08:00
David Katleman
fb719ffc25 Merge 2012-11-28 14:03:53 -08:00
Mandy Chung
67a70e3b75 8003869: Eliminate java.lang.invoke.InnerClassLambdaMetafactory dependency on java.util.logging
Reviewed-by: alanb, dholmes
2012-11-28 10:50:54 -08:00
Mandy Chung
6c4d705c91 8003851: MethodHandleNatives dependency on java.sql.DriverManager
Reviewed-by: alanb, dholmes
2012-11-28 10:49:15 -08:00
Daniel Fuchs
996befafc2 Merge 2012-11-28 10:08:31 -08:00
Joel Borggrén-Franck
36464f41e2 7154390: Add support for repeating annotations in j.l.r.AnnotatedElement
Reviewed-by: darcy
2012-11-28 09:21:37 -08:00
Coleen Phillimore
696ef20cb4 Merge 2012-11-28 08:43:26 -08:00
Zhengyu Gu
052a8eade3 Merge 2012-11-28 06:42:03 -08:00
Zhengyu Gu
408c9d46f3 8003689: MemTracker::init_tracking_options() reads outside array if commandline argument is empty
Fixed potential buffer overrun when giving empty option to NativeMemoryTracking commandline option

Reviewed-by: ctornqvi, hseigel, kvn
2012-11-28 09:19:38 -05:00
Daniel Fuchs
d1b26bf6dd 8003476: Cleanup warnings in com.sun.jmx.snmp code
Reviewed-by: alanb, smarks
2012-11-28 15:14:47 +01:00
Florian Weimer
a1c151acd0 8004019: Removes unused method HandshakeHash.setCertificateVerifyAlg()
Certification verification in HandshakeHash was abandoned during TLS 1.2 implementation

Reviewed-by: xuelei, weijun
2012-11-28 05:18:57 -08:00
Harold Seigel
ef28e7a277 6924920: Class Data Sharing limit on the java version string can create failures
Truncate the java version string and add a hash value if it is too long.

Reviewed-by: dholmes, coleenp
2012-11-28 08:17:59 -05:00
Erik Joelsson
2f74d6d52e 8003482: build-infra: Use correct manifest in security jars
Reviewed-by: ohair, ohrstrom
2012-11-28 14:10:00 +01:00
Erik Joelsson
861d5c3e01 8003528: build-infra: Diffs in libjava and hotspot libs on solaris
Reorder libraries on link command line to match old build.

Reviewed-by: ohair, ohrstrom
2012-11-28 13:49:33 +01:00
Erik Joelsson
760fa57658 8003528: build-infra: Diffs in libjava and hotspot libs on solaris
Linking against server jvm first if available. Adding filters and exceptions for hotspot lib compare on solaris.

Reviewed-by: ohair, ohrstrom
2012-11-28 13:48:36 +01:00
Erik Joelsson
858cebeb66 8003844: build-infra: docs target isn't working properly
Fixed docs and docs-clean target. Added compare support for docs.

Reviewed-by: ohair, jjg, ohrstrom
2012-11-28 13:40:17 +01:00
Erik Joelsson
29a342dabe 8003844: build-infra: docs target isn't working properly
Adding resources to bootstrap javadoc.jar. Adding missing .js resource suffix

Reviewed-by: ohair, jjg, ohrstrom
2012-11-28 13:37:50 +01:00
Erik Joelsson
bf822bfa13 8003477: build-infra: Remove explicit source file listings for libs when possible
Reviewed-by: ohair, ohrstrom
2012-11-28 13:29:35 +01:00
Erik Joelsson
318015ba7a 8001460: build-infra: Linker warnings on macosx
Remove creation of empty i386 section from fdlibm

Reviewed-by: ohair
2012-11-28 13:20:43 +01:00
Erik Joelsson
fb43b09f46 8001460: build-infra: Linker warnings on macosx
Only linking against jvm variant specific dirs if they are expected to exist.

Reviewed-by: ohair
2012-11-28 13:15:56 +01:00
Andrew Brygin
35183211d7 7064516: ImageIO.read() fails to load an image
Reviewed-by: jgodinez, prr
2012-11-28 14:12:32 +04:00
Erik Joelsson
b197a6ca68 8003960: build-infra: Jarsigner launcher has wrong classname
Fixed package name in launcher

Reviewed-by: alanb, ohair, ohrstrom
2012-11-28 09:47:25 +01:00
Vadim Pakhnushev
17ab9f5969 5082749: GIF stream metadata specification of aspect ratio is incorrect
Reviewed-by: bae, prr
2012-11-28 12:38:43 +04:00
Vadim Pakhnushev
d89c34023b 4649812: GIFImageReader handles transparency incorrectly
Reviewed-by: bae, prr
2012-11-28 12:28:10 +04:00
Xueming Shen
ff1d49bc5b 8004088: hg push for bug#4235519 failed to push all files
Pushed all base64 files

Reviewed-by: alanb, mduigou
2012-11-27 22:07:11 -08:00
Xueming Shen
aad815709f 4235519: Make sun.misc.BASE64{De,En}coder classes public
To add java.util.Base64

Reviewed-by: alanb, mduigou
2012-11-27 21:51:26 -08:00
Goetz Lindenmaier
8e00acca17 8003850: add support for constants in stub code
Remember the code section and switch back to the proper one when adding constants.

Reviewed-by: twisti, kvn
2012-11-27 17:41:38 -08:00
Bharadwaj Yadavalli
2d2532e740 7092905: C2: Keep track of the number of dead nodes
Keep an (almost) accurate running count of the reachable (live) flow graph nodes.

Reviewed-by: kvn, twisti, jrose, vlivanov
2012-11-27 17:24:15 -08:00
Rob McKenna
f0bbdd0834 8003597: TEST_BUG: Eliminate dependency on javaweb from closed net tests
Reviewed-by: chegar
2012-11-28 00:47:38 +00:00
John Cuthbertson
c00c803b89 7194633: G1: Assertion and guarantee failures in block offset table
Add detailed error messages to assertions and guarantees in G1's block offset table.

Reviewed-by: ysr, brutisso
2012-11-27 14:11:37 -08:00
Jiangli Zhou
10f71a3f72 8003848: Make ConstMethod::generic_signature_index optional and move Method::_max_stack to ConstMethod
Make ConstMethod::generic_signature_index optional and move Method::_max_stack to ConstMethod.

Reviewed-by: bdelsart, sspitsyn, coleenp
2012-11-27 17:03:56 -05:00
Roman Kennke
96562be9e5 8003868: fix shark for latest HotSpot and LLVM
Reviewed-by: twisti
2012-11-27 12:48:52 -08:00
Chris Hegarty
24fde021e4 8003833: Spurious NPE from Socket.getIn/OutputStream
Reviewed-by: alanb, dsamersoff
2012-11-27 17:15:19 +00:00
Mikael Vidstedt
8c32bcb315 8003879: Duplicate definitions in vmStructs
Removed duplicate entries

Reviewed-by: dholmes, sspitsyn
2012-11-27 07:57:57 -08:00
Stefan Karlsson
57204d9f34 8003935: Simplify the needed includes for using Thread::current()
Reviewed-by: dholmes, rbackman, coleenp
2012-11-27 14:20:21 +01:00
Sergey Bylokhov
bfc0bfcd8e 8002308: [macosx] 7198229 should be applied to the user action only
Reviewed-by: anthony, skovatch
2012-11-27 17:03:19 +04:00
Stefan Karlsson
3c2f3a321a 8003720: NPG: Method in interpreter stack frame can be deallocated
Pass down a closure during root scanning to keep the class of the method alive.

Reviewed-by: coleenp, jcoomes
2012-11-27 10:13:20 +01:00
Mandy Chung
7dde39f4f5 6664509: Add logging context
6664528: Find log level matching its name or value given at construction time

Reviewed-by: alanb, ahgross, jgish, hawtin
2012-11-26 22:49:06 -08:00
Christian Thalinger
31411dbc32 7172640: C2: instrinsic implementations in LibraryCallKit should use argument() instead of pop()
Reviewed-by: kvn, jrose
2012-11-26 17:25:11 -08:00
Mike Duigou
8288138aac 8001634: Initial set of functional interface types
Add the core functional interfaces used by the JSR335 libraries.

Reviewed-by: dholmes, briangoetz, darcy
2012-11-26 15:08:13 -08:00
Gilles Duboscq
2e2b69e96b 8003722: More gcc 4.7 compilation errors
Add a few more this->qualifications.

Reviewed-by: coleenp, dholmes
2012-11-26 12:31:03 -05:00
Denis Fokin
6ddbe35ee2 7186952: Improve clipboard access
Reviewed-by: serb, ahgross
2012-11-26 20:49:54 +04:00
Nils Eliasson
42c0192ee6 8003983: LogCompilation tool is broken since c1 support
Fixed emitting and parsing

Reviewed-by: jrose, kvn
2012-11-26 15:11:55 +01:00
Sean Mullan
033919cce4 Merge 2012-11-26 08:34:25 -05:00
Sean Mullan
3f59d3882d Merge 2012-11-26 08:23:20 -05:00
Sean Mullan
c9b91fa45a 7167056: Clarify that BasicPermission names that contain non-wildcard asterisks are not invalid
Reviewed-by: weijun, xuelei
2012-11-26 08:12:19 -05:00
Alexey Utkin
d869bfa179 7162111: TEST_BUG: change tests run in headless mode [macosx] (open)
In problem tests detection of AWT headless mode was introduced or AWT dependence was removed.

Reviewed-by: alanb
2012-11-26 15:54:39 +04:00
Florian Weimer
9eb345a1e4 8003951: Removes unused variables in sun.security.ssl
Reviewed-by: xuelei
2012-11-24 04:27:28 -08:00
Florian Weimer
7363eaae0e 8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
Reviewed-by: xuelei
2012-11-24 04:09:19 -08:00
Xue-Lei Andrew Fan
a2314ab9ca 8001751: Javadoc warnings in JSSE code
Reviewed-by: alanb
2012-11-24 03:34:27 -08:00
Vicente Romero
9bbd892818 7144981: javac should ignore ignorable characters in input
Reviewed-by: jjg, mcimadamore
2012-11-23 15:13:45 +00:00
Eric Caspole
7fb8379371 8004068: Fix build problems caused by on-demand imports
Reviewed-by: jjg
2012-11-27 13:55:10 -08:00
Alexey Utkin
68a92f6e88 8003898: X11 toolkit can be chosen as the default toolkit
XToolkit is not selected for any values of system-wide environment variables (ex. DISPLAY).

Reviewed-by: anthony, art
2012-11-23 13:07:54 +04:00
David Holmes
68137e4136 Merge 2012-11-21 21:26:12 -05:00
David Holmes
8b54df7773 8003591: Abstract_VM_Version::internal_vm_info_string needs to stringify FLOAT_ARCH for ease of use
Reviewed-by: coleenp, kvn
2012-11-21 20:07:52 -05:00
Vicente Romero
1d4cbc27ff 6574624: javax.tools.JavaCompiler spec contains errors in sample code
Reviewed-by: jjg, mcimadamore
2012-11-21 19:09:39 +00:00
Vicente Romero
07e9c8cf27 7190862: javap shows an incorrect type for operands if the 'wide' prefix is used
7109747: (javap) classfile not treating iinc_w correctly

Reviewed-by: jjg, mcimadamore
2012-11-21 18:40:45 +00:00
Mikael Vidstedt
5791b1f1c3 8003690: Example code in JVMTI GetStackTrace documentation is broken
Fixed to minor errors in example code

Reviewed-by: sspitsyn, dholmes
2012-11-21 09:02:13 -08:00
Alexander Zuev
e0eaca5e5a 8003273: Missing testcase for 7171812
Reviewed-by: art, serb
2012-11-21 20:42:54 +04:00
Vladimir Ivanov
7f0d3fe5e7 8001538: hs_err file does not list anymore compiled methods in compilation events
Fixed message buffer size calculation.

Reviewed-by: kvn, twisti
2012-11-21 05:57:12 -08:00
Sergey Bylokhov
55eba1fa2e 7154516: [macosx] Popup menus have no visible borders
Reviewed-by: anthony, denis
2012-11-21 15:58:09 +04:00
Sergey Bylokhov
6a2db1d680 7193214: Consider simplifying CPlatformWindow.setResizable()
Reviewed-by: anthony, denis
2012-11-21 15:54:41 +04:00
Sergey Bylokhov
27d64e18d2 7124552: [macosx] NullPointerException in getBufferStrategy()
7124219: [macosx] Unable to draw images to fullscreen

Reviewed-by: bae, anthony
2012-11-21 15:50:34 +04:00
David Buck
df3c665be3 7198904: (alt-rt) TreeMap.clone is broken
Test case for cr7198904. Issue only found in OracleJDK, but test case is valid for OpenJDK as well

Reviewed-by: mduigou, dholmes
2012-11-20 21:35:18 -08:00
Coleen Phillimore
274b3df2dc Merge 2012-11-20 20:27:40 -05:00
Lana Steuck
c8adadc51c Merge 2012-11-20 11:50:37 -08:00
Lana Steuck
822139baf8 Merge 2012-11-20 11:49:27 -08:00
Lana Steuck
12c1fa1d8b Merge 2012-11-20 11:47:52 -08:00
Lana Steuck
8eed09101d Merge 2012-11-20 11:46:43 -08:00
Robert Field
d1a78e2021 8003639: convert lambda testng tests to jtreg and add them
Reviewed-by: mcimadamore
2012-11-20 09:58:55 -08:00
Maurizio Cimadamore
d1eede168b 8003663: lambda test fails on Windows
Fix path separator issue in test

Reviewed-by: jjg
2012-11-20 15:43:28 +00:00
Jonathan Gibbons
f2fa2a199c 8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
Reviewed-by: ksrini
2012-11-20 07:25:11 -08:00
Jonathan Gibbons
f0fe027b50 8003649: regression/langtools: tools/javac/doctree
Reviewed-by: ksrini
2012-11-20 07:21:07 -08:00
Sergey Malenkov
f19ad0fb5b 8003333: Regression: java/beans/EventHandler/Test6277266.java fails with ACE
Reviewed-by: art
2012-11-20 18:56:01 +04:00
Erik Helin
7e892709bd 7198334: UseNUMA modifies system parameters on non-NUMA system
The flags MinHeapDeltaBytes and UseNUMAInterleaving must be adjusted after the OS have adjusted the UseNUMA flag in the method os::init_2.

Reviewed-by: dholmes, brutisso
2012-11-20 11:40:11 +01:00
Andrew Brygin
b9b5963522 8002325: Improve management of images
Reviewed-by: prr, ahgross
2012-11-20 11:46:42 +04:00
Steve Sides
6dfea5e847 8003660: (launcher) 8001533 regression tests
Reviewed-by: ksrini, mchung, kcr, ddehaven
2012-11-19 19:50:39 -08:00
David Dehaven
5f0debc005 8001533: java launcher must launch javafx applications
Reviewed-by: ksrini, mchung, kcr, alanb
2012-11-19 19:49:38 -08:00
John Zavgren
0bb98e7294 8000476: Memory Leaks and uninitialized memory access in PKCS11 and other native code
Reviewed-by: dsamersoff, valeriep, chegar
2012-11-20 09:26:38 +00:00
Jonathan Gibbons
61235e9c09 8003655: Add javac.jvm.ClassFile.V52
Reviewed-by: ksrini
2012-11-19 16:40:54 -08:00
Bhavesh Patel
55e7dd8b71 8002304: Group methods by types in methods summary section
Reviewed-by: jjg
2012-11-19 16:10:34 -08:00
Darryl Mocek
103aa32912 8001242: Improve RMI HTTP conformance
Reviewed-by: ahgross, mchung, smarks
2012-11-19 15:38:56 -08:00
Erik Joelsson
4850bec745 8003300: build-infra: fails on solaris when objcopy is not found
Only call BASIC_FIXUP_EXECUTABLE() if objcopy was found.

Reviewed-by: tbell
2012-11-19 14:06:30 -08:00
Darryl Mocek
52caa8646b 6563318: RMI data sanitization
Reviewed-by: ahgross, hawtin, mchung, smarks
2012-11-19 13:54:12 -08:00
Jonathan Gibbons
5a30b6af0c 8001098: Provide a simple light-weight "plug-in" mechanism for javac
Reviewed-by: mcimadamore
2012-11-19 11:38:49 -08:00
Alan Bateman
c94385feb8 8003607: More ProblemList.txt updates (11/2012)
Reviewed-by: lancea
2012-11-19 13:17:40 +00:00
Weijun Wang
2aea4cbc8c 8002344: Krb5LoginModule config class does not return proper KDC list from DNS
Co-authored-by: Severin Gehwolf <sgehwolf@redhat.com>
Reviewed-by: weijun
2012-11-19 11:13:08 +08:00
Florian Weimer
28ca680a31 8003587: Warning cleanup in package javax.net.ssl
Removes unnecessary imports and adds missing Override annotations

Reviewed-by: xuelei
2012-11-18 01:31:44 -08:00
Maurizio Cimadamore
a494f0ab86 8003280: Add lambda tests
Turn on lambda expression, method reference and default method support

Reviewed-by: jjg
2012-11-17 19:01:03 +00:00
Brent Christian
a9594cbceb 7178922: (props) re-visit how os.name is determined on Mac
Reviewed-by: alanb, mchung, skovatch, serb
2012-11-16 17:01:19 -08:00
David Chase
fea11c53eb 7146636: compiler/6865265/StackOverflowBug.java fails due to changed stack minimum
Increase the stack size in the run parameters.

Reviewed-by: kvn
2012-11-16 15:49:46 -08:00
Kurchi Subhra Hazra
ef1950d024 8003518: (prefs) Tests in jdk/test/java/util/prefs should not be run concurrently
Add java/util/prefs to exclusiveAccess.dirs in TEST.ROOT

Reviewed-by: alanb, mchung
2012-11-16 12:28:45 -08:00
Jim Holmlund
c39f1d99b4 8003357: Add support for jtreg -concurrency to langtools/test/Makefile
Reviewed-by: jjg
2012-11-16 18:27:36 +00:00
Alejandro Murillo
a054222634 8003541: new hotspot build - hs25-b11
Reviewed-by: jcoomes
2012-11-16 09:43:43 -08:00
Alejandro Murillo
03311b147c Added tag hs25-b10 for changeset 6d791db85d73 2012-11-16 09:36:41 -08:00
Alejandro Murillo
f3a0849e39 Merge 2012-11-16 09:36:40 -08:00
Coleen Phillimore
ddec2a3aed Merge 2012-11-16 09:19:12 -05:00
Zhengyu Gu
2cb72bf989 8003487: NMT: incorrect assertion in VMMemPointerIterator::remove_released_region method (memSnapshot.cpp)
The assertion is applied to only the region to be released, also performs region integrity checking

Reviewed-by: acorn, coleenp
2012-11-16 09:05:19 -05:00
Nils Eliasson
d055fd81db Merge 2012-11-16 09:59:08 +01:00
Jonathan Gibbons
b3a3f7cdf3 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
Reviewed-by: darcy
2012-11-15 23:07:24 -08:00
Andrew Brygin
7749e896e7 8001972: Improve image processing
Reviewed-by: prr, ahgross
2012-11-16 11:05:43 +04:00
Naoto Sato
6c62e2d0f1 7199750: Loading sequence of service provider is changed
Reviewed-by: okutsu
2012-11-15 20:17:05 -08:00
Jonathan Gibbons
6ef527a3e7 8002079: update DocFile to use a JavaFileManager
Reviewed-by: darcy
2012-11-15 19:54:20 -08:00
Weijun Wang
78ff6a33ee 8003263: redundant cast build failure after 8003120
Reviewed-by: alanb
2012-11-16 10:34:14 +08:00
David Katleman
b379df39d9 Added tag jdk8-b65 for changeset 0e685b019743 2012-11-15 15:40:23 -08:00
David Katleman
6e2b60ce65 Added tag jdk8-b65 for changeset 3afebf1aaea2 2012-11-15 15:40:03 -08:00
David Katleman
aa988a211b Added tag jdk8-b65 for changeset 2fbfa728248d 2012-11-15 15:39:45 -08:00
David Katleman
18602b4eed Added tag jdk8-b65 for changeset d94c92ed588c 2012-11-15 15:39:35 -08:00
David Katleman
64bb3ed664 Added tag jdk8-b65 for changeset bbff420f1248 2012-11-15 15:39:02 -08:00
David Katleman
d757cb8b11 Added tag jdk8-b65 for changeset 6bae6642a942 2012-11-15 15:38:38 -08:00
David Katleman
2f70d7a0ff Added tag jdk8-b65 for changeset eb017c6fa58a 2012-11-15 15:38:33 -08:00
Jonathan Gibbons
2aefbba070 8003257: refactor javadoc tool option handling
Reviewed-by: darcy
2012-11-15 14:41:31 -08:00
John Cuthbertson
41ba9aeef2 Merge 2012-11-15 14:29:28 -08:00
Oleg Pekhovskiy
1d3d850ee0 7192977: Issue in toolkit thread
Reviewed-by: skoivu, rupashka, art
2012-11-15 23:03:31 +04:00
Bharadwaj Yadavalli
4b288c8976 8001077: remove ciMethod::will_link
Removed will_link and changed all calls to is_loaded().

Reviewed-by: kvn
2012-11-15 10:42:06 -08:00
Jonathan Gibbons
ed633a2108 8000800: javadoc uses static non-final fields
Reviewed-by: bpatel
2012-11-15 09:18:36 -08:00
Jim Gish
f439018255 6244047: impossible to specify directories to logging FileHandler unless they exist
Reviewed-by: alanb
2012-11-15 13:46:45 +00:00
Peter Levart
bbe12c2488 8003259: NPG: Build with gcc 4.7.2 broken by 7045397
Qualify calls with this pointers to make gcc accept this code.

Reviewed-by: coleenp, andrew
2012-11-14 22:37:38 -05:00
Jonathan Gibbons
c78e1cbfac 7021614: extend com.sun.source API to support parsing javadoc comments
Reviewed-by: ksrini, strarup
2012-11-14 17:23:10 -08:00
Tim Bell
10568b5266 Merge 2012-11-15 00:55:17 +00:00
Tim Bell
19c725d07b Merge 2012-11-15 00:54:54 +00:00
Lana Steuck
d0455982a4 Merge 2012-11-14 16:41:51 -08:00
Lana Steuck
42ad69505d Merge 2012-11-14 16:41:12 -08:00
Erik Joelsson
acd0ee7c35 8001906: build-infra: warning: [path] bad path element on Solaris
Remove unnecesary -cp parameter from compile line

Reviewed-by: ohair, tbell
2012-11-14 10:21:45 -08:00
Erik Joelsson
23c574fe3a 8003327: build-infra: "/bin/sh: : cannot execute" on solaris
Fix quoting inside cut command used in the pipeline

Reviewed-by: ohair, tbell
2012-11-14 10:20:25 -08:00
Erik Joelsson
0f6c2bcdde 8003317: build-infra: Configure fails when current dir is part of a symlink
Call macro for removing symbolic links on a copy of the CURDIR variable before comparing

Reviewed-by: ohair, tbell
2012-11-14 10:18:51 -08:00
Erik Joelsson
9359ccee62 8001941: build-infra: --disable-precompiled-headers does not seem to work
With this fix the flag will do what it advertises

Reviewed-by: ohair, tbell
2012-11-14 10:16:45 -08:00
Chris Plummer
6da2c235bd Merge 2012-11-14 10:13:51 -08:00
Erik Joelsson
5bf5ff8812 8001875: build-infra: We must be able to force static linking of stdc++
Ensure that we build with static linking when requested, or do not build at all

Reviewed-by: ohair, tbell
2012-11-14 10:13:28 -08:00
Jonathan Gibbons
56d387a2ef 8003412: javac needs to understand java.lang.annotation.Native
Reviewed-by: mcimadamore
2012-11-14 10:07:38 -08:00
Erik Joelsson
13e6e19e2c 8002026: build-infra: deploy repository building
Change the compare script to handle deploy build artifacts.

Reviewed-by: ohair, tbell
2012-11-14 10:05:49 -08:00
Anton Litvinov
b05c04c8c0 6789984: JPasswordField can not receive keyboard input
Reviewed-by: naoto, anthony
2012-11-14 18:40:05 +04:00
Konstantin Shefov
f7ee6989a0 7147408: [macosx] Add autodelay to fix a regression test
Reviewed-by: serb, alexsch
2012-11-14 11:37:09 +00:00
Mike Duigou
b2926d9724 7088952: Add size in bytes constant "BYTES" to primitive type wrapper types
Adds a constant BYTES to each of the primitive wrapper classes (Byte, Character, Double, Float, Integer, Long, Short) with the calculation Primitive.SIZE / Byte.SIZE already made.

Reviewed-by: dholmes
2012-11-13 20:02:39 -08:00
Jonathan Gibbons
78499292e1 8000404: rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
Reviewed-by: alanb
2012-11-14 07:08:50 -08:00
Alan Bateman
8c308db579 8003285: TEST_BUG: java/nio/channels/AsynchronousChannelGroup/Unbounded.java fails again [macosx]
Reviewed-by: chegar
2012-11-14 12:56:26 +00:00
Sean Chou
6bb3dd6ea2 7201156: jar tool fails to convert file separation characters for list and extract
Reviewed-by: alanb, chegar, sherman
2012-11-14 13:26:55 +08:00
Mike Duigou
96aa3fad5a 7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
Adds static utility methods to each primitive wrapper class to allow calculation of a hashCode value from an unboxed primitive.

Reviewed-by: darcy, smarks, dholmes
2012-11-13 20:02:48 -08:00
Clemens Eisserer
b873533e98 7105461: Large JTables are not rendered correctly with Xrender pipeline
Reviewed-by: flar, prr
2012-11-13 16:12:10 -08:00
Jonathan Gibbons
4b3c0978fb 8003299: Cleanup javac Log support for deferred diagnostics
Reviewed-by: mcimadamore, jfranck
2012-11-13 15:09:15 -08:00
Coleen Phillimore
033786fbf0 Merge 2012-11-13 15:14:27 -05:00
Robert Field
be815ba8fa 8003306: Compiler crash: calculation of inner class access modifier
Fix binary sense lost in transition to hasTag

Reviewed-by: mcimadamore
2012-11-13 08:06:00 -08:00
Yumin Qi
f712e12f98 6830717: replay of compilations would help with debugging
When java process crashed in compiler thread, repeat the compilation process will help finding root cause. This is done with using SA dump application class data and replay data from core dump, then use debug version of jvm to recompile the problematic java method.

Reviewed-by: kvn, twisti, sspitsyn
2012-11-12 14:03:53 -08:00
Harold Seigel
4aad9b74e7 8001471: Klass::cast() does nothing
Remove function Klass::cast() and calls to it.

Reviewed-by: dholmes, coleenp
2012-11-12 16:15:05 -05:00
Harold Seigel
a28380d97e 7122219: Passed StringTableSize value not verified
Check that the values specified for -XX:StringTableSize are within a certain range.

Reviewed-by: dholmes, coleenp
2012-11-12 15:58:11 -05:00
Masayoshi Okutsu
aaa52056e9 8000986: Split java.util.spi.CalendarDataProvider into week parameters and field names portions
Reviewed-by: naoto
2012-11-12 11:12:29 +09:00
Alan Bateman
86d36e5d55 8003253: TEST_BUG: java/nio/channels/AsynchronousChannelGroup/Unbounded.java hang intermittently [win]
Reviewed-by: chegar
2012-11-11 10:05:37 +00:00
Zhengyu Gu
a988fc0968 Merge 2012-11-09 22:22:53 -08:00
Zhengyu Gu
07b3c477fe Merge 2012-11-09 16:45:20 -08:00
Zhengyu Gu
f47de1cb41 8001592: NMT: assertion failed: assert(_amount >= amt) failed: Just check: memBaseline.hpp:180
Fixed NMT that miscounted arena memory when it is used as value or stack object.

Reviewed-by: acorn, coleenp
2012-11-09 19:24:31 -05:00
Kumar Srinivasan
695e6ab2e0 8002091: tools/launcher/ToolsOpts.java test started to fail since 7u11 b01 on Windows
Reviewed-by: darcy, jjh, mschoene
2012-11-09 14:36:10 -08:00
Zhengyu Gu
ba0e500048 Merge 2012-11-09 11:47:28 -08:00
Chris Plummer
77c6d4fa5f Merge 2012-11-09 09:45:00 -08:00
Alejandro Murillo
8735609a8c 8003231: new hotspot build - hs25-b10
Reviewed-by: jcoomes
2012-11-09 08:36:17 -08:00
Zhengyu Gu
1abc21c310 8002273: NMT to report JNI memory leaks when -Xcheck:jni is on
Allows NMT to report that JNI thread failed to detach from JVM before exiting, which leaks the JavaThread object when check:jni option is on.

Reviewed-by: acorn, dholmes, coleenp, ctornqvi
2012-11-09 11:04:06 -05:00
Yumin Qi
1c4dbc48e5 Merge 2012-11-08 16:48:01 -08:00
Stuart Marks
39edc8d2b5 7201070: Serialization to conform to protocol
Reviewed-by: dmocek, ahgross, skoivu
2012-11-08 15:41:01 -08:00
Mikael Gerdin
14d6692461 7200229: NPG: possible performance issue exposed by closed/runtime/6559877/Test6559877.java
Reduce the amount of calls to ChunkManager verification code

Reviewed-by: jmasa, coleenp
2012-11-09 00:38:31 +01:00
Bill Pittore
dd5c8eb660 8001185: parsing of sun.boot.library.path in os::dll_build_name somewhat broken
Dll_dir can contain multiple paths, need to parse them correctly when loading agents

Reviewed-by: dholmes, dlong
2012-11-07 17:53:02 -05:00
Chris Hegarty
90f2168fa2 7201071: InetSocketAddress serialization issue
Reviewed-by: alanb, michaelm, skoivu
2012-11-07 14:26:41 +00:00
Sean Coffey
8e50f0daf9 7201066: Change modifiers on unused fields
Reviewed-by: alanb, skoivu
2012-11-06 15:50:14 +00:00
Mala Bankal
e3b2bdd16f 7141694: Improving CORBA internals
Reviewed-by: coffeys, ahgross
2012-12-17 07:43:20 -08:00
Pavel Porvatov
ec9f5edf2f 7200491: Tighten up JTable layout code
Reviewed-by: art, skoivu
2012-11-06 15:30:34 +04:00
Keith McGuigan
c1be65b49c 8001307: Modify ACC_SUPER behavior
Disallow non-virtual calls even when ACC_SUPER is absent.

Reviewed-by: kvn, acorn
2012-11-05 17:03:33 -05:00
Mandy Chung
d3ccd20d1f 7197546: (proxy) Reflect about creating reflective proxies
Reviewed-by: alanb, jdn, jrose
2012-11-02 16:50:23 -07:00
Serguei Spitsyn
80cc4706a6 7194607: VerifyLocalVariableTableOnRetransformTest.sh fails after JSR-292 merge
Use verifier_max_size instead of max_size to get code attribute max stack size.

Reviewed-by: dcubed, minqi
2012-10-31 16:20:03 -07:00
Neil Richards
f50507bccf 8000540: Improve IIOP type reuse management
Reviewed-by: alanb, ahgross, coffeys
2012-10-30 17:15:13 +00:00
Sean Coffey
25e301ca19 8000631: Restrict access to class constructor
Reviewed-by: alanb, ahgross
2012-10-30 17:06:35 +00:00
Jaroslav Bachorik
526b1f405c 8000539: JMX implementation allows invocation of methods of a system class
Added extra packageAccess check call

Reviewed-by: ahgross, dfuchs
2012-10-30 17:05:45 +04:00
Abhijit Saha
df49c04239 Merge 2012-10-26 13:48:33 -07:00
Sean Mullan
cb3cb72e07 7201068: Better handling of UI elements
Reviewed-by: xuelei
2012-10-26 15:21:05 -04:00
Abhijit Saha
1cb7e050ff Merge 2012-10-26 10:01:13 -07:00
Abhijit Saha
d936c96d3b Merge 2012-10-26 09:27:25 -07:00
John Cuthbertson
aac13806ea 8000244: G1: Ergonomically set MarkStackSize and use virtual space for global marking stack
Set the value of MarkStackSize to a value based on the number of parallel marking threads with a reasonable minimum. Expand the marking stack if we have to restart marking due to an overflow up to a reasonable maximum. Allocate the underlying space for the marking stack from virtual memory.

Reviewed-by: jmasa, brutisso
2012-10-01 09:28:13 -07:00
Weijun Wang
42cf97b02f 8000210: Improve JarFile code quality
Reviewed-by: ahgross, xuelei, mschoene
2012-09-19 12:58:43 +08:00
Kurchi Subhra Hazra
64bb35a5c6 7186954: Improve connection performance
Reviewed-by: chegar, skoivu
2012-10-22 11:49:37 -07:00
Xue-Lei Andrew Fan
c8ebc97b44 7192392: Better validation of client keys
Also reviewed by Andrew Gross<Andrew.Gross@Oracle.COM>

Reviewed-by: vinnie
2012-10-22 07:28:51 -07:00
David Holmes
1193ef2418 6776941: Improve thread pool shutdown
Reviewed-by: dl, skoivu
2012-08-22 21:40:19 -04:00
Kumar Srinivasan
2414c54cc1 7200500: Launcher better input validation
Reviewed-by: darcy, jjh, mschoene
2012-10-16 10:56:25 -07:00
Kumar Srinivasan
f9122bd3fd 7200499: Better data validation for options
Reviewed-by: darcy, jjh, mschoene
2012-10-16 16:38:38 -07:00
Kumar Srinivasan
ef7ede903e 7186946: Refine unpacker resource usage
Reviewed-by: jrose, jjh, mschoene
2012-10-16 12:38:29 -07:00
Kumar Srinivasan
0c4da1ece1 7186957: Improve Pack200 data validation
Reviewed-by: jrose, jjh, mschoene
2012-10-16 12:35:22 -07:00
Kumar Srinivasan
1ee5b4509e 7186945: Unpack200 improvement
Reviewed-by: jrose, jjh, mschoene
2012-10-16 12:29:10 -07:00
Pavel Porvatov
e2a34e4d9e 7186948: Improve Swing data validation
Reviewed-by: art, ahgross
2012-10-16 14:13:39 +04:00
Sergey Malenkov
c4f31fd22e 7200493: Improve cache handling
Reviewed-by: art, ahgross
2012-10-15 19:00:13 +04:00
Xue-Lei Andrew Fan
f36ef09388 7192393: Better Checking of order of TLS Messages
Also reviewed by Andrew Gross<Andrew.Gross@Oracle.COM>

Reviewed-by: weijun
2012-10-15 07:42:18 -07:00
Anthony Petrov
69a6be0305 7173145: Improve in-memory representation of splashscreens
Reviewed-by: bae, mschoene
2012-10-12 15:51:44 +04:00
J. Duke
db7a00335a Initial load 2007-12-01 00:00:00 +00:00
11556 changed files with 965029 additions and 166649 deletions

30
.hgtags
View File

@@ -186,3 +186,33 @@ cdaa6122185f9bf512dcd6600f56bfccc4824e8c jdk8-b61
8d9d430b4244b95f5cf1ebe719f834a1ac5d6cd5 jdk8-b62
21ee1dd7b809639284900a128b9b656a592ebc7a jdk8-b63
70fa4b11f26522e69b51fd652215f60ce350bac3 jdk8-b64
a2cf4d4a484378caea2e827ed604b2bbae58bdba jdk8-b65
17820b958ae84f7c1cc6719319c8e2232f7a4f1d jdk8-b66
76cc9bd3ece407d3a15d3bea537b57927973c5e7 jdk8-b67
cb33628d4e8f11e879c371959e5948b66a53376f jdk8-b68
adb5171c554e14cd86f618b5584f6e3d693d5889 jdk8-b69
0d625373c69e2ad6f546fd88ab50c6c9aad01271 jdk8-b70
a41ada2ed4ef735449531c6ebe6cec593d890a1c jdk8-b71
6725b3961f987cf40f446d1c11cd324a3bec545f jdk8-b72
fe94b40ffd9390f6cffcdf51c0389b0e6dde0c13 jdk8-b73
f627eff819628822a0777af8062244352f2a29cf jdk8-b74
f1478a6d25fddd311a84dcbfac50824cc1858bdd jdk8-b75
f407160c280d1c5b00d314c535441ac26f195fee jdk8-b76
d17eb2e13e362085e866d46235314c50cc4661cc jdk8-b77
6d3dcd34b5b962ea1ef9eed0dafdee9e812401bc jdk8-b78
a1313a8d90d17d363a3b2a645dc4030ec204b168 jdk8-b79
3fa21fbf9be7e6b482af43aacb6a09acfa30bdb6 jdk8-b80
e41d716405b209d3eddef8bd4240cec2bd34dcca jdk8-b81
5e8c55025644730385a6f8fa029ecdb2d2c98a07 jdk8-b82
bcebd3fdefc91abb9d7fa0c5af6211b3f8720da6 jdk8-b83
d7ad0dfaa41151bd3a9ae46725b0aec3730a9cd0 jdk8-b84
1872c12529090e1c1dbf567f02ad7ae6231b8f0c jdk8-b85
da9a4c9312816451884aa6db6f18be51a07bff13 jdk8-b86
5ebf6c63714de2c9dcf831074086d31daec819df jdk8-b87
e517701a4d0e25ae9c7945bca6e1762a8c5d8aa6 jdk8-b88
4dec41b3c5e3bb616f0c6f15830d940905aa5d16 jdk8-b89
f09ab0c416185e3cba371e81bcb6a16060c90f44 jdk8-b90
80b6c3172dc2cfceb022411292d290a967f9c728 jdk8-b91
2fd6acba737b01e705e1f7c33588c922a3787f13 jdk8-b92
b72ae39e1329fefae50d4690db4fde43f3841a95 jdk8-b93
0d804e3b955dce406af6a79ac1cc35c696aff7fb jdk8-b94

View File

@@ -186,3 +186,33 @@ e07f499b9dccb529ecf74172cf6ac11a195ec57a jdk8-b60
8a3fe0ae06a8cc21347da5a18384b0aa6c2349f5 jdk8-b62
3229597524cab4239325bc3602df6c486397a511 jdk8-b63
1c8370a55b305d35353346202bde042ba9e8a9fd jdk8-b64
b772de306dc24c17f7bd1398531ddeb58723b804 jdk8-b65
13bb8c326e7b7b0b19d78c8088033e3932e3f7ca jdk8-b66
9a6ec97ec45c1a62d5233cefa91e8390e380e13a jdk8-b67
cdb401a60cea6ad5ef3f498725ed1decf8dda1ea jdk8-b68
6ee8080a6efe0639fcd00627a5e0f839bf010481 jdk8-b69
105a25ffa4a4f0af70188d4371b4a0385009b7ce jdk8-b70
51ad2a34342055333eb5f36e2fb514b027895708 jdk8-b71
c1be681d80a1f1c848dc671d664fccb19e046a12 jdk8-b72
93b9664f97eeb6f89397a8842318ebacaac9feb9 jdk8-b73
b43aa5bd8ca5c8121336495382d35ecfa7a71536 jdk8-b74
2a713921952cbd77a1e699626976cb6cdfe3e57e jdk8-b75
278af9fc67e7eba2884936b49ec07345f423aabb jdk8-b76
3933eebc659d58c597aa8cb4b3e58f2250ce3e1a jdk8-b77
fd1a5574cf68af24bfd52decc37ac6361afb278a jdk8-b78
91d35211e74464dca5edf9b66ab01d0d0d8cded7 jdk8-b79
907a926d3c96472f357617b48b6b968ea855c23c jdk8-b80
145dbc56f931c134e837b675b9e6e7bf08902e93 jdk8-b81
29153d0df68f84162ffe8c2cf4f402a3f2245e85 jdk8-b82
466685ba01bfb7bc1e1ac61490fd8c0f3cc18763 jdk8-b83
01f631f89fa392b4e484d0812c40ea8f9d2353aa jdk8-b84
7fc358f5943676b82f1dccd3152b1ac07d92e38b jdk8-b85
df9b5240f0a76c91cfe1a5b39da4d08df56e05be jdk8-b86
b9415faa7066a4d3b16d466556d5428446918d95 jdk8-b87
e1a929afcfc492470d50be0b6b0e8dc77d3760b9 jdk8-b88
892a0196d10c67f3a12f0eefb0bb536e423d8868 jdk8-b89
69b773a221b956a3386933ecdbfeccee0edeac47 jdk8-b90
cb51fb4789ac0b8be4056482077ddfb8f3bd3805 jdk8-b91
3a36c926a7aafa9d4a892a45ef3678e87ad8359b jdk8-b92
27c51c6e31c1ef36afa0e6efb031f9b13f26c12b jdk8-b93
50d2bde060f2a9bbbe4da0c8986e20aca61f2e2e jdk8-b94

View File

@@ -26,6 +26,11 @@
# If NEWBUILD is defined, use the new build-infra Makefiles and configure.
# See NewMakefile.gmk for more information.
# If not specified, select what the default build is
ifndef NEWBUILD
NEWBUILD=true
endif
ifeq ($(NEWBUILD),true)
# The new top level Makefile
@@ -85,6 +90,7 @@ include ./make/corba-rules.gmk
include ./make/jaxp-rules.gmk
include ./make/jaxws-rules.gmk
include ./make/jdk-rules.gmk
include ./make/nashorn-rules.gmk
include ./make/install-rules.gmk
include ./make/sponsors-rules.gmk
include ./make/deploy-rules.gmk
@@ -169,6 +175,11 @@ ifeq ($(BUILD_JDK), true)
clobber:: jdk-clobber
endif
ifeq ($(BUILD_NASHORN), true)
generic_build_repo_series:: $(NASHORN)
clobber:: nashorn-clobber
endif
ifeq ($(BUILD_DEPLOY), true)
generic_build_repo_series:: $(DEPLOY)
clobber:: deploy-clobber
@@ -331,6 +342,7 @@ deploy_fastdebug_only:
BUILD_HOTSPOT=false \
BUILD_JDK=false \
BUILD_LANGTOOLS=false \
BUILD_NASHORN=false \
BUILD_CORBA=false \
BUILD_JAXP=false \
BUILD_JAXWS=false \

View File

@@ -23,273 +23,110 @@
# questions.
#
# Utilities used in this Makefile
BASENAME=basename
CAT=cat
CD=cd
CMP=cmp
CP=cp
ECHO=echo
MKDIR=mkdir
PRINTF=printf
PWD=pwd
TAR=tar
ifeq ($(PLATFORM),windows)
ZIP=zip
# This must be the first rule
default:
# Inclusion of this pseudo-target will cause make to execute this file
# serially, regardless of -j. Recursively called makefiles will not be
# affected, however. This is required for correct dependency management.
.NOTPARALLEL:
# The shell code below will be executed on /usr/ccs/bin/make on Solaris, but not in GNU make.
# /usr/ccs/bin/make lacks basically every other flow control mechanism.
TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU make/gmake, this is a requirement. Check your path. 1>&2 && exit 1
# Assume we have GNU make, but check version.
ifeq (,$(findstring 3.81,$(MAKE_VERSION)))
ifeq (,$(findstring 3.82,$(MAKE_VERSION)))
$(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.)
endif
endif
# Locate this Makefile
ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),)
makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST))
else
# store symbolic links as the link
ZIP=zip -y
makefile_path:=$(lastword $(MAKEFILE_LIST))
endif
# Insure we have a path that looks like it came from pwd
# (This is mostly for Windows sake and drive letters)
define UnixPath # path
$(shell (cd "$1" && $(PWD)))
endef
root_dir:=$(dir $(makefile_path))
# Current root directory
CURRENT_DIRECTORY := $(shell $(PWD))
# ... and then we can include our helper functions
include $(root_dir)/common/makefiles/MakeHelpers.gmk
# Build directory root
BUILD_DIR_ROOT = $(CURRENT_DIRECTORY)/build
$(eval $(call ParseLogLevel))
$(eval $(call ParseConfAndSpec))
# All configured Makefiles to run
ALL_MAKEFILES = $(wildcard $(BUILD_DIR_ROOT)/*-*/Makefile)
# Now determine if we have zero, one or several configurations to build.
ifeq ($(SPEC),)
# Since we got past ParseConfAndSpec, we must be building a global target. Do nothing.
else
ifeq ($(words $(SPEC)),1)
# We are building a single configuration. This is the normal case. Execute the Main.gmk file.
include $(root_dir)/common/makefiles/Main.gmk
else
# We are building multiple configurations.
# First, find out the valid targets
# Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find
# available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
all_phony_targets=$(filter-out $(global_targets), $(strip $(shell \
$(MAKE) -p -q -f common/makefiles SPEC=$(firstword $(SPEC)) | \
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
# All bundles to create
ALL_IMAGE_DIRS = $(wildcard $(BUILD_DIR_ROOT)/*-*/images/*-image)
$(all_phony_targets):
@$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
# Build all the standard 'all', 'images', and 'clean' targets
all images clean: checks
@if [ "$(ALL_MAKEFILES)" = "" ] ; then \
$(ECHO) "ERROR: No configurations to build"; exit 1; \
fi
@for bdir in $(dir $(ALL_MAKEFILES)) ; do \
$(ECHO) "$(CD) $${bdir} && $(MAKE) $@" ; \
$(CD) $${bdir} && $(MAKE) $@ ; \
done
# TBD: Deploy input
$(BUILD_DIR_ROOT)/.deploy_input:
@if [ "$(ALL_MAKEFILES)" = "" ] ; then \
$(ECHO) "ERROR: No configurations to build"; exit 1; \
fi
@for bdir in $(dir $(ALL_MAKEFILES)) ; do \
if [ deploy/make/Makefile ] ; then \
echo "Attempting deploy build." ; \
( \
$(RM) -r $${bdir}/deploy_input ; \
$(MKDIR) -p $${bdir}/deploy_input ; \
( $(CD) $${bdir}/images && $(TAR) -cf - j2sdk-image j2re-image ) \
| ( $(CD) $${bdir}/deploy_input && $(TAR) -xf - ) ; \
) ; \
fi; \
done
touch $@
# TBD: Deploy images
deploy: $(BUILD_DIR_ROOT)/.deploy_input
@if [ "$(ALL_MAKEFILES)" = "" ] ; then \
$(ECHO) "ERROR: No configurations to build"; exit 1; \
fi
@for bdir in $(dir $(ALL_MAKEFILES)) ; do \
if [ deploy/make/Makefile ] ; then \
echo "Attempting deploy build." ; \
( \
$(CD) deploy/make && \
$(MAKE) \
ABS_OUTPUTDIR=$${bdir}/deploy_input \
OUTPUTDIR=$${bdir}/deploy_input \
) ; \
fi; \
done
# TBD: Install bundles
install:
# Bundle creation
bundles:
@if [ "$(ALL_IMAGE_DIRS)" = "" ] ; then \
$(ECHO) "ERROR: No images to bundle"; exit 1; \
fi
@for i in $(ALL_IMAGE_DIRS) ; do \
$(MKDIR) -p $${i}/../../bundles && \
$(RM) $${i}/../../bundles/`$(BASENAME) $${i}`.zip && \
$(ECHO) "$(CD) $${i} && $(ZIP) -q -r ../../bundles/`$(BASENAME) $${i}`.zip ." && \
$(CD) $${i} && $(ZIP) -q -r ../../bundles/`$(BASENAME) $${i}`.zip . ; \
done
# Clobber all the built files
clobber::
$(RM) -r $(BUILD_DIR_ROOT)
# Make various checks to insure the build will be successful
# Possibilities:
# * Check that if any closed repo is provided, they all must be.
# * Check that all open repos exist, at least until we are ready for some
# kind of partial build.
checks:
@$(ECHO) "No checks yet"
# Keep track of user targets
USER_TARGETS += all deploy install images clean clobber checks
###########################################################################
# To help in adoption of the new configure&&make build process, a bridge
# build will use the old settings to run configure and do the build.
# Build with the configure bridge
bridgeBuild: bridge2configure images
# Bridge from old Makefile ALT settings to configure options
bridge2configure: $(BUILD_DIR_ROOT)/.bridge2configureOpts
bash ./configure $(strip $(shell $(CAT) $<))
# Create a file with configure options created from old Makefile mechanisms.
$(BUILD_DIR_ROOT)/.bridge2configureOpts: $(BUILD_DIR_ROOT)/.bridge2configureOptsLatest
$(RM) $@
$(CP) $< $@
# Use this file to only change when obvious things have changed
$(BUILD_DIR_ROOT)/.bridge2configureOptsLatest: FRC
$(RM) $@.tmp
$(MKDIR) -p $(BUILD_DIR_ROOT)
@$(ECHO) " --with-debug-level=$(if $(DEBUG_LEVEL),$(DEBUG_LEVEL),release) " >> $@.tmp
ifdef ARCH_DATA_MODEL
@$(ECHO) " --with-target-bits=$(ARCH_DATA_MODEL) " >> $@.tmp
endif
ifdef ALT_PARALLEL_COMPILE_JOBS
@$(ECHO) " --with-num-cores=$(ALT_PARALLEL_COMPILE_JOBS) " >> $@.tmp
endif
ifdef ALT_BOOTDIR
@$(ECHO) " --with-boot-jdk=$(call UnixPath,$(ALT_BOOTDIR)) " >> $@.tmp
endif
ifdef ALT_CUPS_HEADERS_PATH
@$(ECHO) " --with-cups-include=$(call UnixPath,$(ALT_CUPS_HEADERS_PATH)) " >> $@.tmp
endif
ifdef ALT_FREETYPE_HEADERS_PATH
@$(ECHO) " --with-freetype=$(call UnixPath,$(ALT_FREETYPE_HEADERS_PATH)/..) " >> $@.tmp
endif
@if [ -f $@ ] ; then \
if ! $(CMP) $@ $@.tmp > /dev/null ; then \
$(CP) $@.tmp $@ ; \
fi ; \
else \
$(CP) $@.tmp $@ ; \
fi
$(RM) $@.tmp
# Clobber all the built files
clobber:: bridge2clobber
bridge2clobber::
$(RM) $(BUILD_DIR_ROOT)/.bridge2*
$(RM) $(BUILD_DIR_ROOT)/.deploy_input
# Keep track of phony targets
PHONY_LIST += bridge2configure bridgeBuild bridge2clobber
###########################################################################
# Sanity checks (history target)
#
sanity: checks
# Keep track of user targets
USER_TARGETS += sanity
###########################################################################
# Javadocs
#
javadocs:
cd common/makefiles && $(MAKE) -f MakefileJavadoc.gmk
# Keep track of user targets
USER_TARGETS += javadocs
###########################################################################
# JPRT targets
ifndef JPRT_ARCHIVE_BUNDLE
JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/j2sdk-image.zip
endif
jprt_build_product: DEBUG_LEVEL=release
jprt_build_product: BUILD_DIRNAME=*-release
jprt_build_product: jprt_build_generic
# Include this after a potential spec file has been included so that the bundles target
# has access to the spec variables.
include $(root_dir)/common/makefiles/Jprt.gmk
jprt_build_fastdebug: DEBUG_LEVEL=fastdebug
jprt_build_fastdebug: BUILD_DIRNAME=*-fastdebug
jprt_build_fastdebug: jprt_build_generic
jprt_build_debug: DEBUG_LEVEL=slowdebug
jprt_build_debug: BUILD_DIRNAME=*-debug
jprt_build_debug: jprt_build_generic
jprt_build_generic: $(JPRT_ARCHIVE_BUNDLE)
$(JPRT_ARCHIVE_BUNDLE): bridgeBuild bundles
$(MKDIR) -p $(@D)
$(RM) $@
$(CP) $(BUILD_DIR_ROOT)/$(BUILD_DIRNAME)/bundles/j2sdk-image.zip $@
# Keep track of phony targets
PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \
jprt_build_generic
###########################################################################
# Help target
HELP_FORMAT=%12s%s\n
# Here are "global" targets, i.e. targets that can be executed without specifying a single configuration.
# If you addd more global targets, please update the variable global_targets in MakeHelpers.
help:
@$(PRINTF) "# JDK Makefile\n"
@$(PRINTF) "#\n"
@$(PRINTF) "# Usage: make [Target]\n"
@$(PRINTF) "#\n"
@$(PRINTF) "# $(HELP_FORMAT)" "Target " "Description"
@$(PRINTF) "# $(HELP_FORMAT)" "------ " "-----------"
@for i in $(USER_TARGETS) ; do \
$(MAKE) help_$${i} ; \
done
@$(PRINTF) "#\n"
$(info )
$(info OpenJDK Makefile help)
$(info =====================)
$(info )
$(info Common make targets)
$(info . make [default] # Compile all product in langtools, hotspot, jaxp, jaxws,)
$(info . # corba and jdk)
$(info . make all # Compile everything, all repos and images)
$(info . make images # Create complete j2sdk and j2re images)
$(info . make overlay-images # Create limited images for sparc 64 bit platforms)
$(info . make profiles # Create complete j2re compact profile images)
$(info . make bootcycle-images # Build images twice, second time with newly build JDK)
$(info . make install # Install the generated images locally)
$(info . make clean # Remove all files generated by make, but not those)
$(info . # generated by configure)
$(info . make dist-clean # Remove all files, including configuration)
$(info . make help # Give some help on using make)
$(info . make test # Run tests, default is all tests (see TEST below))
$(info )
$(info Targets for specific components)
$(info (Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk, images or overlay-images))
$(info . make <component> # Build <component> and everything it depends on. )
$(info . make <component>-only # Build <component> only, without dependencies. This)
$(info . # is faster but can result in incorrect build results!)
$(info . make clean-<component> # Remove files generated by make for <component>)
$(info )
$(info Useful make variables)
$(info . make CONF= # Build all configurations (note, assignment is empty))
$(info . make CONF=<substring> # Build the configuration(s) with a name matching)
$(info . # <substring>)
$(info )
$(info . make LOG=<loglevel> # Change the log level from warn to <loglevel>)
$(info . # Available log levels are:)
$(info . # 'warn' (default), 'info', 'debug' and 'trace')
$(info . # To see executed command lines, use LOG=debug)
$(info )
$(info . make JOBS=<n> # Run <n> parallel make jobs)
$(info . # Note that -jN does not work as expected!)
$(info )
$(info . make test TEST=<test> # Only run the given test or tests, e.g.)
$(info . # make test TEST="jdk_lang jdk_net")
$(info )
help_all:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Build the entire jdk but not the images"
help_images:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Create the jdk images for the builds"
help_deploy:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Create the jdk deploy images from the jdk images"
help_install:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Create the jdk install bundles from the deploy images"
help_clean:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Clean and prepare for a fresh build from scratch"
help_clobber:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Clean and also purge any hidden derived data"
help_checks:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Perform various checks to make sure we can build"
help_sanity:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Same as 'make checks'"
help_javadocs:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Build the javadocs"
help_help:
@$(PRINTF) "# $(HELP_FORMAT)" "$(subst help_,,$@) - " \
"Print out the help messages"
# Keep track of user targets
USER_TARGETS += help
###########################################################################
# Phony targets
.PHONY: $(PHONY_LIST) $(USER_TARGETS)
# Force target
FRC:
.PHONY: help

39
README
View File

@@ -1,45 +1,40 @@
README:
This file should be located at the top of the OpenJDK Mercurial root
repository. This root repository will include a "make" directory,
and a Makefile for building the entire OpenJDK.
A full OpenJDK repository set (forest) should also include the following
6 nested repositories:
repository. A full OpenJDK repository set (forest) should also include
the following 6 nested repositories:
"jdk", "hotspot", "langtools", "corba", "jaxws" and "jaxp".
There are also several source downloads for the jax* repositories that
will be needed.
This one root repository can be obtained with something like:
The root repository can be obtained with something like:
hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
To make sure you have all the nested repositories, you can run the
get_source.sh script located in the same respository as this file:
You can run the get_source.sh script located in the root repository to get
the other needed repositories:
cd openjdk8 && sh ./get_source.sh
People unfamiliar with Mercurial should read the first few chapters of
the Mercurial book: http://hgbook.red-bean.com/read/
See http://openjdk.java.net/ for more information about the OpenJDK.
See http://openjdk.java.net/ for more information about OpenJDK.
Simple Build Instructions:
0. Get the necessary system software/packages installed on your system, see
http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html
http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html
1. If you don't have a jdk6 installed, download and install a JDK 6 from
1. If you don't have a jdk7u7 or newer jdk, download and install it from
http://java.sun.com/javase/downloads/index.jsp
Set the environment variable ALT_BOOTDIR to the location of JDK 6.
Add the /bin directory of this installation to your PATH environment
variable.
2. Check the sanity of doing a build with your current system:
make sanity
See README-builds.html if you run into problems.
2. Configure the build:
bash ./configure
3. Do a complete build of the OpenJDK:
3. Build the OpenJDK:
make all
The resulting JDK image should be found in build/*/j2sdk-image
The resulting JDK image should be found in build/*/images/j2sdk-image
where make is GNU make 3.81 or newer, /usr/bin/make on Linux usually
is 3.81 or newer.
is 3.81 or newer. Note that on Solaris, GNU make is called "gmake".
Complete details are available in README-builds.html.
Complete details are available in the file:
http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html

File diff suppressed because it is too large Load Diff

View File

@@ -24,4 +24,4 @@
# This Makefile was generated by configure @DATE_WHEN_CONFIGURED@
# GENERATED FILE, DO NOT EDIT
SPEC:=@OUTPUT_ROOT@/spec.gmk
include @SRC_ROOT@/common/makefiles/Makefile
include @SRC_ROOT@/NewMakefile.gmk

View File

@@ -26,9 +26,11 @@ script_dir=`dirname $0`
# Create a timestamp as seconds since epoch
if test "x`uname -s`" = "xSunOS"; then
# date +%s is not available on Solaris, use this workaround
# from http://solarisjedi.blogspot.co.uk/2006/06/solaris-date-command-and-epoch-time.html
TIMESTAMP=`/usr/bin/truss /usr/bin/date 2>&1 | nawk -F= '/^time\(\)/ {gsub(/ /,"",$2);print $2}'`
TIMESTAMP=`date +%s`
if test "x$TIMESTAMP" = "x%s"; then
# date +%s not available on this Solaris, use workaround from nawk(1):
TIMESTAMP=`nawk 'BEGIN{print srand()}'`
fi
else
TIMESTAMP=`date +%s`
fi
@@ -41,14 +43,24 @@ fi
custom_hook=$custom_script_dir/custom-hook.m4
if test "x`which autoconf 2> /dev/null`" = x; then
AUTOCONF="`which autoconf 2> /dev/null | grep -v '^no autoconf in'`"
AUTOCONF_267="`which autoconf-2.67 2> /dev/null | grep -v '^no autoconf-2.67 in'`"
echo "Autoconf found: ${AUTOCONF}"
echo "Autoconf-2.67 found: ${AUTOCONF_267}"
if test "x${AUTOCONF}" = x; then
echo You need autoconf installed to be able to regenerate the configure script
echo Error: Cannot find autoconf 1>&2
exit 1
fi
echo Generating generated-configure.sh
cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | autoconf -W all -I$script_dir - > $script_dir/generated-configure.sh
if test "x${AUTOCONF_267}" != x; then
AUTOCONF=${AUTOCONF_267};
fi
echo Generating generated-configure.sh with ${AUTOCONF}
cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | ${AUTOCONF} -W all -I$script_dir - > $script_dir/generated-configure.sh
rm -rf autom4te.cache
if test -e $custom_hook; then
@@ -56,7 +68,7 @@ if test -e $custom_hook; then
# We have custom sources available; also generate configure script
# with custom hooks compiled in.
cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | \
sed -e "s|#CUSTOM_AUTOCONF_INCLUDE|m4_include([$custom_hook])|" | autoconf -W all -I$script_dir - > $custom_script_dir/generated-configure.sh
sed -e "s|#CUSTOM_AUTOCONF_INCLUDE|m4_include([$custom_hook])|" | ${AUTOCONF} -W all -I$script_dir - > $custom_script_dir/generated-configure.sh
rm -rf autom4te.cache
else
echo No custom hook found: $custom_hook

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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
@@ -23,14 +23,23 @@
# questions.
#
# Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
# If so, then append $1 to $2\
# Also set JVM_ARG_OK to true/false depending on outcome.
AC_DEFUN([ADD_JVM_ARG_IF_OK],
[
# Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
# If so, then append $1 to $2
FOUND_WARN=`$3 $1 -version 2>&1 | grep -i warn`
FOUND_VERSION=`$3 $1 -version 2>&1 | grep " version \""`
$ECHO "Check if jvm arg is ok: $1" >&AS_MESSAGE_LOG_FD
$ECHO "Command: $3 $1 -version" >&AS_MESSAGE_LOG_FD
OUTPUT=`$3 $1 -version 2>&1`
FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
$2="[$]$2 $1"
JVM_ARG_OK=true
else
$ECHO "Arg failed:" >&AS_MESSAGE_LOG_FD
$ECHO "$OUTPUT" >&AS_MESSAGE_LOG_FD
JVM_ARG_OK=false
fi
])
@@ -51,16 +60,19 @@ AC_DEFUN([BASIC_FIXUP_PATH],
else
# We're on a posix platform. Hooray! :)
path="[$]$1"
if test ! -f "$path" && test ! -d "$path"; then
AC_MSG_ERROR([The path of $1, which resolves as "$path", is not found.])
fi
has_space=`$ECHO "$path" | $GREP " "`
if test "x$has_space" != x; then
AC_MSG_NOTICE([The path of $1, which resolves as "$path", is invalid.])
AC_MSG_ERROR([Spaces are not allowed in this path.])
fi
# Use eval to expand a potential ~
eval path="$path"
if test ! -f "$path" && test ! -d "$path"; then
AC_MSG_ERROR([The path of $1, which resolves as "$path", is not found.])
fi
$1="`cd "$path"; $THEPWDCMD -L`"
fi
])
@@ -90,13 +102,25 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE],
tmp="$complete EOL"
arguments="${tmp#* }"
new_path=`$WHICH $path 2> /dev/null`
if test "x$new_path" = x; then
# Cannot rely on the command "which" here since it doesn't always work.
is_absolute_path=`$ECHO "$path" | $GREP ^/`
if test "x$is_absolute_path" != x; then
AC_MSG_NOTICE([Resolving $1 (as $path) with 'which' failed, using $path directly.])
new_path="$path"
if test -z "$is_absolute_path"; then
# Path to executable is not absolute. Find it.
IFS_save="$IFS"
IFS=:
for p in $PATH; do
if test -f "$p/$path" && test -x "$p/$path"; then
new_path="$p/$path"
break
fi
done
IFS="$IFS_save"
else
AC_MSG_NOTICE([Resolving $1 (as $path) failed, using $path directly.])
new_path="$path"
fi
if test "x$new_path" = x; then
AC_MSG_NOTICE([The path of $1, which resolves as "$complete", is not found.])
has_space=`$ECHO "$complete" | $GREP " "`
if test "x$has_space" != x; then
@@ -105,7 +129,6 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE],
AC_MSG_ERROR([Cannot locate the the path of $1])
fi
fi
fi
# Now join together the path and the arguments once again
if test "x$arguments" != xEOL; then
@@ -129,7 +152,7 @@ AC_DEFUN([BASIC_REMOVE_SYMBOLIC_LINKS],
if test "x$READLINK_TESTED" != yes; then
# On MacOSX there is a readlink tool with a different
# purpose than the GNU readlink tool. Check the found readlink.
ISGNU=`$READLINK --help 2>&1 | $GREP GNU`
ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
if test "x$ISGNU" = x; then
# A readlink that we do not know how to use.
# Are there other non-GNU readlinks out there?
@@ -141,22 +164,26 @@ AC_DEFUN([BASIC_REMOVE_SYMBOLIC_LINKS],
if test "x$READLINK" != x; then
$1=`$READLINK -f [$]$1`
else
# Save the current directory for restoring afterwards
STARTDIR=$PWD
COUNTER=0
sym_link_dir=`$DIRNAME [$]$1`
sym_link_file=`$BASENAME [$]$1`
cd $sym_link_dir
# Use -P flag to resolve symlinks in directories.
cd `$THEPWDCMD -P`
sym_link_dir=`$THEPWDCMD -P`
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
if test "x$ISLINK" == x; then
# This is not a symbolic link! We are done!
break
fi
# The link might be relative! We have to use cd to travel safely.
cd $sym_link_dir
# ... and we must get the to the absolute path, not one using symbolic links.
cd `pwd -P`
# Again resolve directory symlinks since the target of the just found
# link could be in a different directory
cd `$DIRNAME $ISLINK`
sym_link_dir=`$THEPWDCMD`
sym_link_dir=`$THEPWDCMD -P`
sym_link_file=`$BASENAME $ISLINK`
let COUNTER=COUNTER+1
done
@@ -219,7 +246,9 @@ BASIC_REQUIRE_PROG(BASH, bash)
BASIC_REQUIRE_PROG(CAT, cat)
BASIC_REQUIRE_PROG(CHMOD, chmod)
BASIC_REQUIRE_PROG(CMP, cmp)
BASIC_REQUIRE_PROG(COMM, comm)
BASIC_REQUIRE_PROG(CP, cp)
BASIC_REQUIRE_PROG(CPIO, cpio)
BASIC_REQUIRE_PROG(CUT, cut)
BASIC_REQUIRE_PROG(DATE, date)
BASIC_REQUIRE_PROG(DIFF, [gdiff diff])
@@ -235,7 +264,6 @@ BASIC_REQUIRE_PROG(MKDIR, mkdir)
BASIC_REQUIRE_PROG(MKTEMP, mktemp)
BASIC_REQUIRE_PROG(MV, mv)
BASIC_REQUIRE_PROG(PRINTF, printf)
BASIC_REQUIRE_PROG(THEPWDCMD, pwd)
BASIC_REQUIRE_PROG(RM, rm)
BASIC_REQUIRE_PROG(SH, sh)
BASIC_REQUIRE_PROG(SORT, sort)
@@ -268,6 +296,10 @@ BASIC_CHECK_NONEMPTY(NAWK)
# Always force rm.
RM="$RM -f"
# pwd behaves differently on various platforms and some don't support the -L flag.
# Always use the bash builtin pwd to get uniform behavior.
THEPWDCMD=pwd
# These are not required on all platforms
AC_PATH_PROG(CYGPATH, cygpath)
AC_PATH_PROG(READLINK, readlink)
@@ -280,13 +312,12 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
[
# Locate the directory of this script.
SCRIPT="[$]0"
BASIC_REMOVE_SYMBOLIC_LINKS(SCRIPT)
AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD`
AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
# Where is the source? It is located two levels above the configure script.
CURDIR="$PWD"
cd "$AUTOCONF_DIR/../.."
SRC_ROOT="`pwd`"
SRC_ROOT="`$THEPWDCMD -L`"
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
PATH_SEP=";"
@@ -332,7 +363,11 @@ AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time])
fi
TOOLS_DIR=$with_devkit/bin
if test -d "$with_devkit/$host_alias/libc"; then
SYS_ROOT=$with_devkit/$host_alias/libc
elif test -d "$with_devkit/$host/sys-root"; then
SYS_ROOT=$with_devkit/$host/sys-root
fi
])
])
@@ -345,7 +380,9 @@ AC_ARG_WITH(conf-name, [AS_HELP_STRING([--with-conf-name],
[ CONF_NAME=${with_conf_name} ])
# Test from where we are running configure, in or outside of src root.
if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
|| test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
|| test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
# We are running configure from the src root.
# Create a default ./build/target-variant-debuglevel output root.
if test "x${CONF_NAME}" = x; then
@@ -579,6 +616,24 @@ AC_PATH_PROG(TIME, time)
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
BASIC_REQUIRE_PROG(COMM, comm)
fi
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
BASIC_REQUIRE_PROG(XATTR, xattr)
AC_PATH_PROG(CODESIGN, codesign)
if test "x$CODESIGN" != "x"; then
# Verify that the openjdk_codesign certificate is present
AC_MSG_CHECKING([if openjdk_codesign certificate is present])
rm -f codesign-testfile
touch codesign-testfile
codesign -s openjdk_codesign codesign-testfile 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD || CODESIGN=
rm -f codesign-testfile
if test "x$CODESIGN" = x; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
fi
fi
fi
])
# Check if build directory is on local disk. If not possible to determine,
@@ -612,6 +667,18 @@ AC_DEFUN([BASIC_CHECK_DIR_ON_LOCAL_DISK],
fi
])
# Check that source files have basic read permissions set. This might
# not be the case in cygwin in certain conditions.
AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
[
if test x"$OPENJDK_BUILD_OS" = xwindows; then
file_to_test="$SRC_ROOT/LICENSE"
if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
fi
fi
])
AC_DEFUN_ONCE([BASIC_TEST_USABILITY_ISSUES],
[
@@ -621,6 +688,8 @@ BASIC_CHECK_DIR_ON_LOCAL_DISK($OUTPUT_ROOT,
[OUTPUT_DIR_IS_LOCAL="no"])
AC_MSG_RESULT($OUTPUT_DIR_IS_LOCAL)
BASIC_CHECK_SRC_PERMS
# Check if the user has any old-style ALT_ variables set.
FOUND_ALT_VARIABLES=`env | grep ^ALT_`

View File

@@ -175,7 +175,7 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE_CYGWIN],
# bat and cmd files are not always considered executable in cygwin causing which
# to not find them
if test "x$new_path" = x \
&& test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$LS \"$path\" 2>/dev/null`" != x; then
new_path=`$CYGPATH -u "$path"`
fi
@@ -191,7 +191,7 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE_CYGWIN],
# bat and cmd files are not always considered executable in cygwin causing which
# to not find them
if test "x$new_path" = x \
&& test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
&& test "x`$LS \"$path\" 2>/dev/null`" != x; then
new_path=`$CYGPATH -u "$path"`
fi
@@ -300,7 +300,7 @@ AC_DEFUN([BASIC_FIXUP_EXECUTABLE_MSYS],
# Setup basic configuration paths, and platform-specific stuff related to PATHs.
AC_DEFUN([BASIC_CHECK_PATHS_WINDOWS],
[
SRC_ROOT_LENGTH=`$THEPWDCMD|$WC -m`
SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
if test $SRC_ROOT_LENGTH -gt 100; then
AC_MSG_ERROR([Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported])
fi

View File

@@ -29,15 +29,25 @@
include @SPEC@
# Check that the user did not try to specify a different java to use for compiling.
ifneq ($(firstword $(SJAVAC_SERVER_JAVA)),$(firstword $(JAVA)))
# On windows we need to account for fixpath being first word.
ifeq ($(firstword $(JAVA)),$(FIXPATH))
JAVA_EXEC_POS=2
else
JAVA_EXEC_POS=1
endif
ifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA)))
$(error Bootcycle builds are not possible if --with-sjavac-server-java is specified)
endif
# Override specific values to do a boot cycle build
# The bootcycle build has a different output directory
BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build
# Use a different Boot JDK
OLD_BOOT_JDK:=$(BOOT_JDK)
BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image
BOOT_RTJAR:=@BUILD_OUTPUT@/images/j2sdk-image/jre/lib/rt.jar
SJAVAC_SERVER_JAVA:=$(subst $(OLD_BOOT_JDK),$(BOOT_JDK),$(SJAVAC_SERVER_JAVA))

View File

@@ -1,4 +1,29 @@
#! /bin/sh
#
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008

View File

@@ -1,4 +1,30 @@
#! /bin/sh
#
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008

View File

@@ -1,4 +1,30 @@
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
#
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
#

View File

@@ -47,10 +47,6 @@ AC_DEFUN([BPERF_CHECK_CORES],
FOUND_CORES=yes
fi
# For c/c++ code we run twice as many concurrent build
# jobs than we have cores, otherwise we will stall on io.
CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
if test "x$FOUND_CORES" = xyes; then
AC_MSG_RESULT([$NUM_CORES])
else
@@ -106,10 +102,8 @@ if test "x$with_num_cores" = x; then
BPERF_CHECK_CORES
else
NUM_CORES=$with_num_cores
CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
fi
AC_SUBST(NUM_CORES)
AC_SUBST(CONCURRENT_BUILD_JOBS)
])
AC_DEFUN_ONCE([BPERF_SETUP_BUILD_MEMORY],
@@ -126,6 +120,41 @@ fi
AC_SUBST(MEMORY_SIZE)
])
AC_DEFUN_ONCE([BPERF_SETUP_BUILD_JOBS],
[
# Provide a decent default number of parallel jobs for make depending on
# number of cores, amount of memory and machine architecture.
AC_ARG_WITH(jobs, [AS_HELP_STRING([--with-jobs],
[number of parallel jobs to let make run @<:@calculated based on cores and memory@:>@])])
if test "x$with_jobs" = x; then
# Number of jobs was not specified, calculate.
AC_MSG_CHECKING([for appropriate number of jobs to run in parallel])
# Approximate memory in GB, rounding up a bit.
memory_gb=`expr $MEMORY_SIZE / 1100`
# Pick the lowest of memory in gb and number of cores.
if test "$memory_gb" -lt "$NUM_CORES"; then
JOBS="$memory_gb"
else
JOBS="$NUM_CORES"
# On bigger machines, leave some room for other processes to run
if test "$JOBS" -gt "4"; then
JOBS=`expr $JOBS '*' 90 / 100`
fi
fi
# Cap number of jobs to 16
if test "$JOBS" -gt "16"; then
JOBS=16
fi
if test "$JOBS" -eq "0"; then
JOBS=1
fi
AC_MSG_RESULT([$JOBS])
else
JOBS=$with_jobs
fi
AC_SUBST(JOBS)
])
AC_DEFUN([BPERF_SETUP_CCACHE],
[
AC_ARG_ENABLE([ccache],
@@ -133,7 +162,12 @@ AC_DEFUN([BPERF_SETUP_CCACHE],
[disable using ccache to speed up recompilations @<:@enabled@:>@])],
[ENABLE_CCACHE=${enable_ccache}], [ENABLE_CCACHE=yes])
if test "x$ENABLE_CCACHE" = xyes; then
OLD_PATH="$PATH"
if test "x$TOOLS_DIR" != x; then
PATH=$TOOLS_DIR:$PATH
fi
AC_PATH_PROG(CCACHE, ccache)
PATH="$OLD_PATH"
else
AC_MSG_CHECKING([for ccache])
AC_MSG_RESULT([explicitly disabled])
@@ -204,7 +238,7 @@ AC_DEFUN_ONCE([BPERF_SETUP_PRECOMPILED_HEADERS],
#
AC_ARG_ENABLE([precompiled-headers], [AS_HELP_STRING([--disable-precompiled-headers],
[disable using precompiled headers when compiling C++ @<:@enabled@:>@])],
[ENABLE_PRECOMPH=${enable_precompiled-headers}], [ENABLE_PRECOMPH=yes])
[ENABLE_PRECOMPH=${enable_precompiled_headers}], [ENABLE_PRECOMPH=yes])
USE_PRECOMPILED_HEADER=1
if test "x$ENABLE_PRECOMPH" = xno; then
@@ -216,15 +250,14 @@ if test "x$ENABLE_PRECOMPH" = xyes; then
if test "x$GCC" = xyes; then
AC_MSG_CHECKING([that precompiled headers work])
echo "int alfa();" > conftest.h
$CXX -x c++-header conftest.h -o conftest.hpp.gch
$CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
if test ! -f conftest.hpp.gch; then
echo Precompiled header is not working!
USE_PRECOMPILED_HEADER=0
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
fi
rm -f conftest.h
rm -f conftest.h conftest.hpp.gch
fi
fi
@@ -253,61 +286,38 @@ else
fi
AC_SUBST(SJAVAC_SERVER_JAVA)
AC_ARG_WITH(sjavac-server-cores, [AS_HELP_STRING([--with-sjavac-server-cores],
[use at most this number of concurrent threads on the sjavac server @<:@probed@:>@])])
if test "x$with_sjavac_server_cores" != x; then
SJAVAC_SERVER_CORES="$with_sjavac_server_cores"
else
if test "$NUM_CORES" -gt 16; then
# We set this arbitrary limit because we want to limit the heap
# size of the javac server.
# In the future we will make the javac compilers in the server
# share more and more state, thus enabling us to use more and
# more concurrent threads in the server.
SJAVAC_SERVER_CORES="16"
else
SJAVAC_SERVER_CORES="$NUM_CORES"
if test "$MEMORY_SIZE" -gt "2500"; then
ADD_JVM_ARG_IF_OK([-d64],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
if test "$JVM_ARG_OK" = true; then
JVM_64BIT=true
JVM_ARG_OK=false
fi
fi
if test "$JVM_64BIT" = true; then
if test "$MEMORY_SIZE" -gt "17000"; then
MAX_HEAP_MEM=10000
ADD_JVM_ARG_IF_OK([-d64],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
ADD_JVM_ARG_IF_OK([-Xms10G -Xmx10G],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
elif test "$MEMORY_SIZE" -gt "10000"; then
MAX_HEAP_MEM=6000
ADD_JVM_ARG_IF_OK([-d64],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
fi
if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms6G -Xmx6G],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
elif test "$MEMORY_SIZE" -gt "5000"; then
MAX_HEAP_MEM=3000
ADD_JVM_ARG_IF_OK([-d64],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
fi
if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms1G -Xmx3G],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
elif test "$MEMORY_SIZE" -gt "3800"; then
MAX_HEAP_MEM=2500
fi
if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms1G -Xmx2500M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
elif test "$MEMORY_SIZE" -gt "1900"; then
MAX_HEAP_MEM=1200
ADD_JVM_ARG_IF_OK([-Xms700M -Xmx1400M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
elif test "$MEMORY_SIZE" -gt "1000"; then
MAX_HEAP_MEM=900
fi
fi
if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms1000M -Xmx1500M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
fi
if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms400M -Xmx1100M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
else
MAX_HEAP_MEM=512
fi
if test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms256M -Xmx512M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
fi
ADD_JVM_ARG_IF_OK([-XX:PermSize=32m],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
ADD_JVM_ARG_IF_OK([-XX:MaxPermSize=160m],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
ADD_JVM_ARG_IF_OK([-XX:ThreadStackSize=$STACK_SIZE],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501`
if test "$SJAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then
AC_MSG_CHECKING([if number of server cores must be reduced])
SJAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP"
AC_MSG_RESULT([yes, to $SJAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB])
fi
fi
AC_SUBST(SJAVAC_SERVER_CORES)
AC_MSG_CHECKING([whether to use sjavac])
AC_ARG_ENABLE([sjavac], [AS_HELP_STRING([--enable-sjavac],
[use sjavac to do fast incremental compiles @<:@disabled@:>@])],

View File

@@ -1,32 +0,0 @@
#
# Copyright (c) 2012, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
LAUNCHER_NAME=java
PRODUCT_NAME="Java(TM)"
PRODUCT_SUFFIX="SE Runtime Environment"
JDK_RC_PLATFORM_NAME="Platform SE"
COMPANY_NAME="Oracle Corporation"
# Might need better names for these
MACOSX_BUNDLE_NAME_BASE="Java SE"
MACOSX_BUNDLE_ID_BASE="com.oracle.java"

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. 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
@@ -48,7 +48,8 @@ GREP="@GREP@"
JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
LDD="@LDD@"
MKDIR="@MKDIR@"
NM="@NM@"
NAWK="@NAWK@"
NM="@GNM@"
OBJDUMP="@OBJDUMP@"
OTOOL="@OTOOL@"
PRINTF="@PRINTF@"

View File

@@ -83,6 +83,9 @@ PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET
BASIC_SETUP_PATHS
BASIC_SETUP_LOGGING
# Check if it's a pure open build or if custom sources are to be used.
JDKOPT_SETUP_OPEN_OR_CUSTOM
# These are needed to be able to create a configuration name (and thus the output directory)
JDKOPT_SETUP_JDK_VARIANT
JDKOPT_SETUP_JVM_VARIANTS
@@ -163,6 +166,7 @@ PLATFORM_SETUP_OPENJDK_TARGET_ENDIANNESS
TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_LIBS
TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_OPTIMIZATION
TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_JDK
TOOLCHAIN_SETUP_COMPILER_FLAGS_MISC
# Setup debug symbols (need objcopy from the toolchain for that)
JDKOPT_SETUP_DEBUG_SYMBOLS
@@ -191,6 +195,7 @@ BASIC_COMPILE_FIXPATH
###############################################################################
JDKOPT_SETUP_BUILD_TWEAKS
JDKOPT_DETECT_INTREE_EC
###############################################################################
#
@@ -201,6 +206,7 @@ JDKOPT_SETUP_BUILD_TWEAKS
BPERF_SETUP_BUILD_CORES
BPERF_SETUP_BUILD_MEMORY
BPERF_SETUP_BUILD_JOBS
# Setup smart javac (after cores and memory have been setup)
BPERF_SETUP_SMART_JAVAC

File diff suppressed because it is too large Load Diff

View File

@@ -174,7 +174,7 @@ printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n"
printf "\n"
printf "Build performance summary:\n"
printf "* Cores to use: $NUM_CORES\n"
printf "* Cores to use: $JOBS\n"
printf "* Memory limit: $MEMORY_SIZE MB\n"
printf "* ccache status: $CCACHE_STATUS\n"
printf "\n"

View File

@@ -75,12 +75,25 @@ ARCH=$(OPENJDK_TARGET_CPU_LEGACY)
# If yes then this expands to _LP64:=1
@LP64@
# Legacy settings for zero
ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN)
ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
ZERO_ARCHDEF=@ZERO_ARCHDEF@
ZERO_ARCHFLAG=@ZERO_ARCHFLAG@
LIBFFI_CFLAGS=@LIBFFI_CFLAGS@
LIBFFI_LIBS=@LIBFFI_LIBS@
# Legacy settings for zeroshark
LLVM_CFLAGS=@LLVM_CFLAGS@
LLVM_LIBS=@LLVM_LIBS@
LLVM_LDFLAGS=@LLVM_LDFLAGS@
ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
ALT_EXPORT_PATH=$(HOTSPOT_DIST)
HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
# This is used from the libjvm build for C/C++ code.
HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@
HOTSPOT_BUILD_JOBS:=$(JOBS)
# Control wether Hotspot runs Queens test after building
TEST_IN_BUILD=@TEST_IN_BUILD@
@@ -95,6 +108,26 @@ EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@
EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
# Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
# creation.
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
FULL_DEBUG_SYMBOLS=1
# Ensure hotspot uses the objcopy that configure located
ALT_OBJCOPY:=$(OBJCOPY)
else
FULL_DEBUG_SYMBOLS=0
endif
# Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
ZIP_DEBUGINFO_FILES:=1
endif
ifeq ($(ZIP_DEBUGINFO_FILES), false)
ZIP_DEBUGINFO_FILES:=0
endif
# Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
# This is needed to get the LOG setting to work properly.
include $(SRC_ROOT)/common/makefiles/MakeBase.gmk

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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
@@ -60,28 +60,30 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JVM_VARIANTS],
# Currently we have:
# server: normal interpreter and a tiered C1/C2 compiler
# client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
# minimal1: reduced form of client with optional VM services and features stripped out
# kernel: kernel footprint JVM that passes the TCK without major performance problems,
# ie normal interpreter and C1, only the serial GC, kernel jvmti etc
# zero: no machine code interpreter, no compiler
# zeroshark: zero interpreter and shark/llvm compiler backend
AC_MSG_CHECKING([which variants of the JVM to build])
AC_ARG_WITH([jvm-variants], [AS_HELP_STRING([--with-jvm-variants],
[JVM variants (separated by commas) to build (server, client, kernel, zero, zeroshark) @<:@server@:>@])])
[JVM variants (separated by commas) to build (server, client, minimal1, kernel, zero, zeroshark) @<:@server@:>@])])
if test "x$with_jvm_variants" = x; then
with_jvm_variants="server"
fi
JVM_VARIANTS=",$with_jvm_variants,"
TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
if test "x$TEST_VARIANTS" != "x,"; then
AC_MSG_ERROR([The available JVM variants are: server, client, kernel, zero, zeroshark])
AC_MSG_ERROR([The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark])
fi
AC_MSG_RESULT([$with_jvm_variants])
JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
@@ -96,10 +98,15 @@ if test "x$JVM_VARIANT_KERNEL" = xtrue; then
AC_MSG_ERROR([You cannot build a kernel JVM for a 64-bit machine.])
fi
fi
if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
AC_MSG_ERROR([You cannot build a minimal JVM for a 64-bit machine.])
fi
fi
# Replace the commas with AND for use in the build directory name.
ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'`
COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
if test "x$COUNT_VARIANTS" != "x,1"; then
BUILDING_MULTIPLE_JVM_VARIANTS=yes
else
@@ -109,10 +116,20 @@ fi
AC_SUBST(JVM_VARIANTS)
AC_SUBST(JVM_VARIANT_SERVER)
AC_SUBST(JVM_VARIANT_CLIENT)
AC_SUBST(JVM_VARIANT_MINIMAL1)
AC_SUBST(JVM_VARIANT_KERNEL)
AC_SUBST(JVM_VARIANT_ZERO)
AC_SUBST(JVM_VARIANT_ZEROSHARK)
INCLUDE_SA=true
if test "x$JVM_VARIANT_ZERO" = xtrue ; then
INCLUDE_SA=false
fi
if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
INCLUDE_SA=false
fi
AC_SUBST(INCLUDE_SA)
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
MACOSX_UNIVERSAL="true"
fi
@@ -191,7 +208,9 @@ esac
#####
# Generate the legacy makefile targets for hotspot.
# The hotspot api for selecting the build artifacts, really, needs to be improved.
#
# JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
# determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
# But until then ...
HOTSPOT_TARGET=""
if test "x$JVM_VARIANT_SERVER" = xtrue; then
@@ -202,6 +221,10 @@ if test "x$JVM_VARIANT_CLIENT" = xtrue; then
HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
fi
if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
fi
if test "x$JVM_VARIANT_KERNEL" = xtrue; then
HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
fi
@@ -221,7 +244,7 @@ HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
# from configure, but only server is valid anyway. Fix this
# when hotspot makefiles are rewritten.
if test "x$MACOSX_UNIVERSAL" = xtrue; then
HOTSPOT_TARGET=universal_product
HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
fi
#####
@@ -233,15 +256,15 @@ AC_SUBST(DEBUG_CLASSFILES)
AC_SUBST(BUILD_VARIANT_RELEASE)
])
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
[
###############################################################################
#
# Should we build only OpenJDK even if closed sources are present?
#
AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM],
[
AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only],
[supress building closed source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"])
[suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"])
AC_MSG_CHECKING([for presence of closed sources])
if test -d "$SRC_ROOT/jdk/src/closed"; then
@@ -251,17 +274,17 @@ else
fi
AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT])
AC_MSG_CHECKING([if closed source is supressed (openjdk-only)])
SUPRESS_CLOSED_SOURCE="$enable_openjdk_only"
AC_MSG_RESULT([$SUPRESS_CLOSED_SOURCE])
AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)])
SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE])
if test "x$CLOSED_SOURCE_PRESENT" = xno; then
OPENJDK=true
if test "x$SUPRESS_CLOSED_SOURCE" = "xyes"; then
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense])
fi
else
if test "x$SUPRESS_CLOSED_SOURCE" = "xyes"; then
if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
OPENJDK=true
else
OPENJDK=false
@@ -273,6 +296,10 @@ if test "x$OPENJDK" = "xtrue"; then
fi
AC_SUBST(SET_OPENJDK)
])
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
[
###############################################################################
#
@@ -324,11 +351,7 @@ AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file],
if test "x$with_cacerts_file" != x; then
CACERTS_FILE=$with_cacerts_file
else
if test "x$OPENJDK" = "xtrue"; then
CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
else
CACERTS_FILE=${SRC_ROOT}/jdk/src/closed/share/lib/security/cacerts.internal
fi
fi
AC_SUBST(CACERTS_FILE)
@@ -346,6 +369,25 @@ else
fi
AC_SUBST(UNLIMITED_CRYPTO)
###############################################################################
#
# Enable or disable the elliptic curve crypto implementation
#
AC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC],
[
AC_MSG_CHECKING([if elliptic curve crypto implementation is present])
if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
ENABLE_INTREE_EC=yes
AC_MSG_RESULT([yes])
else
ENABLE_INTREE_EC=no
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_INTREE_EC)
])
###############################################################################
#
# Compress jars
@@ -355,13 +397,60 @@ COMPRESS_JARS=false
AC_SUBST(COMPRESS_JARS)
])
###############################################################################
#
# Setup version numbers
#
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
[
# Source the version numbers
. $AUTOCONF_DIR/version.numbers
if test "x$OPENJDK" = "xfalse"; then
. $AUTOCONF_DIR/closed.version.numbers
. $AUTOCONF_DIR/version-numbers
# Get the settings from parameters
AC_ARG_WITH(milestone, [AS_HELP_STRING([--with-milestone],
[Set milestone value for build @<:@internal@:>@])])
if test "x$with_milestone" = xyes; then
AC_MSG_ERROR([Milestone must have a value])
elif test "x$with_milestone" != x; then
MILESTONE="$with_milestone"
fi
if test "x$MILESTONE" = x; then
MILESTONE=internal
fi
AC_ARG_WITH(update-version, [AS_HELP_STRING([--with-update-version],
[Set update version value for build @<:@b00@:>@])])
if test "x$with_update_version" = xyes; then
AC_MSG_ERROR([Update version must have a value])
elif test "x$with_update_version" != x; then
JDK_UPDATE_VERSION="$with_update_version"
fi
AC_ARG_WITH(build-number, [AS_HELP_STRING([--with-build-number],
[Set build number value for build @<:@b00@:>@])])
if test "x$with_build_number" = xyes; then
AC_MSG_ERROR([Build number must have a value])
elif test "x$with_build_number" != x; then
JDK_BUILD_NUMBER="$with_build_number"
fi
if test "x$JDK_BUILD_NUMBER" = x; then
JDK_BUILD_NUMBER=b00
fi
AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix],
[Add a custom string to the version string if build number isn't set.@<:@username_builddateb00@:>@])])
if test "x$with_user_release_suffix" = xyes; then
AC_MSG_ERROR([Release suffix must have a value])
elif test "x$with_user_release_suffix" != x; then
USER_RELEASE_SUFFIX="$with_user_release_suffix"
else
BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
# Avoid [:alnum:] since it depends on the locale.
CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
fi
AC_SUBST(USER_RELEASE_SUFFIX)
# Now set the JDK version, milestone, build number etc.
AC_SUBST(JDK_MAJOR_VERSION)
AC_SUBST(JDK_MINOR_VERSION)
@@ -380,9 +469,6 @@ AC_SUBST(MACOSX_BUNDLE_ID_BASE)
COPYRIGHT_YEAR=`date +'%Y'`
AC_SUBST(COPYRIGHT_YEAR)
RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX"
AC_SUBST(RUNTIME_NAME)
if test "x$JDK_UPDATE_VERSION" != x; then
JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
else
@@ -390,24 +476,6 @@ else
fi
AC_SUBST(JDK_VERSION)
if test "x$MILESTONE" != x; then
RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}"
else
RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}"
fi
AC_SUBST(RELEASE)
if test "x$JDK_BUILD_NUMBER" != x; then
FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}"
else
JDK_BUILD_NUMBER=b00
BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
# Avoid [:alnum:] since it depends on the locale.
CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}"
fi
AC_SUBST(FULL_VERSION)
COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
AC_SUBST(COOKED_BUILD_NUMBER)
])
@@ -432,32 +500,30 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
# ENABLE_DEBUG_SYMBOLS
# This must be done after the toolchain is setup, since we're looking at objcopy.
#
ENABLE_DEBUG_SYMBOLS=default
# default on macosx is no...
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
ENABLE_DEBUG_SYMBOLS=no
fi
AC_ARG_ENABLE([debug-symbols],
[AS_HELP_STRING([--disable-debug-symbols],[disable generation of debug symbols @<:@enabled@:>@])],
[ENABLE_DEBUG_SYMBOLS=${enable_debug_symbols}],
)
[AS_HELP_STRING([--disable-debug-symbols],[disable generation of debug symbols @<:@enabled@:>@])])
AC_MSG_CHECKING([if we should generate debug symbols])
if test "x$ENABLE_DEBUG_SYMBOLS" = "xyes" && test "x$OBJCOPY" = x; then
if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
# explicit enabling of enable-debug-symbols and can't find objcopy
# this is an error
AC_MSG_ERROR([Unable to find objcopy, cannot enable debug-symbols])
fi
if test "x$ENABLE_DEBUG_SYMBOLS" = "xdefault"; then
# Default is on if objcopy is found, otherwise off
if test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then
ENABLE_DEBUG_SYMBOLS=yes
if test "x$enable_debug_symbols" = "xyes"; then
ENABLE_DEBUG_SYMBOLS=true
elif test "x$enable_debug_symbols" = "xno"; then
ENABLE_DEBUG_SYMBOLS=false
else
ENABLE_DEBUG_SYMBOLS=no
# default on macosx is false
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
ENABLE_DEBUG_SYMBOLS=false
# Default is on if objcopy is found, otherwise off
elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then
ENABLE_DEBUG_SYMBOLS=true
else
ENABLE_DEBUG_SYMBOLS=false
fi
fi
@@ -466,22 +532,16 @@ AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS])
#
# ZIP_DEBUGINFO_FILES
#
ZIP_DEBUGINFO_FILES=yes
AC_MSG_CHECKING([if we should zip debug-info files])
AC_ARG_ENABLE([zip-debug-info],
[AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])],
[ZIP_DEBUGINFO_FILES=${enable_zip_debug_info}],
)
[enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"])
AC_MSG_RESULT([${enable_zip_debug_info}])
AC_MSG_CHECKING([if we should zip debug-info files])
AC_MSG_RESULT([$ZIP_DEBUGINFO_FILES])
# Hotspot wants ZIP_DEBUGINFO_FILES to be 1 for yes
# use that...
if test "x$ZIP_DEBUGINFO_FILES" = "xyes"; then
ZIP_DEBUGINFO_FILES=1
if test "x${enable_zip_debug_info}" = "xno"; then
ZIP_DEBUGINFO_FILES=false
else
ZIP_DEBUGINFO_FILES=0
ZIP_DEBUGINFO_FILES=true
fi
AC_SUBST(ENABLE_DEBUG_SYMBOLS)

View File

@@ -123,11 +123,17 @@ if test "x$SYS_ROOT" != "x/"; then
if test "x$x_includes" = xNONE; then
if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
x_includes="$SYS_ROOT/usr/X11R6/include"
elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
x_includes="$SYS_ROOT/usr/include"
fi
fi
if test "x$x_libraries" = xNONE; then
if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
x_libraries="$SYS_ROOT/usr/X11R6/lib"
elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
x_libraries="$SYS_ROOT/usr/lib64"
elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
x_libraries="$SYS_ROOT/usr/lib"
fi
fi
fi
@@ -136,6 +142,12 @@ fi
AC_PATH_X
AC_PATH_XTRA
# AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
# this doesn't make sense so we remove it.
if test "x$COMPILE_TYPE" = xcross; then
X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[[^ ]]*//g'`
fi
if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
HELP_MSG_MISSING_DEPENDENCY([x11])
AC_MSG_ERROR([Could not find X11 libraries. $HELP_MSG])
@@ -147,8 +159,7 @@ fi
if test "x$OPENJDK_TARGET_OS" = xlinux; then
if test -d "$SYS_ROOT/usr/X11R6"; then
OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
fi
if test -d "$SYS_ROOT/usr/include/X11"; then
elif test -d "$SYS_ROOT/usr/include/X11"; then
OPENWIN_HOME="$SYS_ROOT/usr"
fi
fi
@@ -176,7 +187,7 @@ CFLAGS="$CFLAGS $X_CFLAGS"
# Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h],
[X11_A_OK=yes],
[X11_A_OK=no],
[X11_A_OK=no; break],
[ # include <X11/Xlib.h>
# include <X11/Xutil.h>
])
@@ -353,12 +364,12 @@ else
if test "x$FREETYPE2_FOUND" = xno; then
AC_MSG_CHECKING([for freetype in some standard locations])
if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
if test -s $SYS_ROOT/usr/X11/include/ft2build.h && test -d $SYS_ROOT/usr/X11/include/freetype2/freetype; then
DEFAULT_FREETYPE_CFLAGS="-I$SYS_ROOT/usr/X11/include/freetype2 -I$SYS_ROOT/usr/X11/include"
DEFAULT_FREETYPE_LIBS="-L$SYS_ROOT/usr/X11/lib -lfreetype"
fi
if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
if test -s $SYS_ROOT/usr/include/ft2build.h && test -d $SYS_ROOT/usr/include/freetype2/freetype; then
DEFAULT_FREETYPE_CFLAGS="-I$SYS_ROOT/usr/include/freetype2"
DEFAULT_FREETYPE_LIBS="-lfreetype"
fi
@@ -493,11 +504,36 @@ AC_SUBST(USE_EXTERNAL_LIBJPEG)
# Check for the gif library
#
USE_EXTERNAL_LIBJPEG=true
AC_CHECK_LIB(gif, main, [],
[ USE_EXTERNAL_LIBGIF=false
AC_MSG_NOTICE([Will use gif decoder bundled with the OpenJDK source])
])
AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib],
[use giflib from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
AC_MSG_CHECKING([for which giflib to use])
# default is bundled
DEFAULT_GIFLIB=bundled
#
# if user didn't specify, use DEFAULT_GIFLIB
#
if test "x${with_giflib}" = "x"; then
with_giflib=${DEFAULT_GIFLIB}
fi
AC_MSG_RESULT(${with_giflib})
if test "x${with_giflib}" = "xbundled"; then
USE_EXTERNAL_LIBGIF=false
elif test "x${with_giflib}" = "xsystem"; then
AC_CHECK_HEADER(gif_lib.h, [],
[ AC_MSG_ERROR([--with-giflib=system specified, but gif_lib.h not found!])])
AC_CHECK_LIB(gif, DGifGetCode, [],
[ AC_MSG_ERROR([--with-giflib=system specified, but no giflib found!])])
USE_EXTERNAL_LIBGIF=true
else
AC_MSG_ERROR([Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'])
fi
AC_SUBST(USE_EXTERNAL_LIBGIF)
###############################################################################
@@ -601,11 +637,16 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP],
# statically link libstdc++ before C++ ABI is stablized on Linux unless
# dynamic build is configured on command line.
#
AC_ARG_ENABLE([static-link-stdc++], [AS_HELP_STRING([--disable-static-link-stdc++],
[disable static linking of the C++ runtime on Linux @<:@enabled@:>@])],,
AC_ARG_WITH([stdc++lib], [AS_HELP_STRING([--with-stdc++lib=<static>,<dynamic>,<default>],
[force linking of the C++ runtime on Linux to either static or dynamic, default is static with dynamic as fallback])],
[
enable_static_link_stdc__=yes
])
if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \
&& test "x$with_stdc__lib" != xdefault; then
AC_MSG_ERROR([Bad parameter value --with-stdc++lib=$with_stdc__lib!])
fi
],
[with_stdc__lib=default]
)
if test "x$OPENJDK_TARGET_OS" = xlinux; then
# Test if -lstdc++ works.
@@ -636,35 +677,88 @@ if test "x$OPENJDK_TARGET_OS" = xlinux; then
AC_LANG_POP(C++)
AC_MSG_RESULT([$has_static_libstdcxx])
if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then
AC_MSG_ERROR([I cannot link to stdc++! Neither dynamically nor statically.])
if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
AC_MSG_ERROR([Cannot link to stdc++, neither dynamically nor statically!])
fi
if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then
AC_MSG_NOTICE([Static linking of libstdc++ was not possible reverting to dynamic linking.])
enable_static_link_stdc__=no
if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
AC_MSG_ERROR([Static linking of libstdc++ was not possible!])
fi
if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then
AC_MSG_NOTICE([Dynamic linking of libstdc++ was not possible reverting to static linking.])
enable_static_link_stdc__=yes
if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
AC_MSG_ERROR([Dynamic linking of libstdc++ was not possible!])
fi
AC_MSG_CHECKING([how to link with libstdc++])
if test "x$enable_static_link_stdc__" = xyes; then
LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
LDCXX="$CC"
STATIC_CXX_SETTING="STATIC_CXX=true"
AC_MSG_RESULT([static])
else
# If dynamic was requested, it's available since it would fail above otherwise.
# If dynamic wasn't requested, go with static unless it isn't available.
if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
LIBCXX="$LIBCXX -lstdc++"
LDCXX="$CXX"
STATIC_CXX_SETTING="STATIC_CXX=false"
AC_MSG_RESULT([dynamic])
else
LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
LDCXX="$CC"
STATIC_CXX_SETTING="STATIC_CXX=true"
AC_MSG_RESULT([static])
fi
fi
AC_SUBST(STATIC_CXX_SETTING)
if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
# Figure out LIBFFI_CFLAGS and LIBFFI_LIBS
PKG_CHECK_MODULES([LIBFFI], [libffi])
fi
if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
AC_CHECK_PROG([LLVM_CONFIG], [llvm-config], [llvm-config])
if test "x$LLVM_CONFIG" != xllvm-config; then
AC_MSG_ERROR([llvm-config not found in $PATH.])
fi
llvm_components="jit mcjit engine nativecodegen native"
unset LLVM_CFLAGS
for flag in $("$LLVM_CONFIG" --cxxflags); do
if echo "${flag}" | grep -q '^-@<:@ID@:>@'; then
if test "${flag}" != "-D_DEBUG" ; then
if test "${LLVM_CFLAGS}" != "" ; then
LLVM_CFLAGS="${LLVM_CFLAGS} "
fi
LLVM_CFLAGS="${LLVM_CFLAGS}${flag}"
fi
fi
done
llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//')
LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}"
unset LLVM_LDFLAGS
for flag in $("${LLVM_CONFIG}" --ldflags); do
if echo "${flag}" | grep -q '^-L'; then
if test "${LLVM_LDFLAGS}" != ""; then
LLVM_LDFLAGS="${LLVM_LDFLAGS} "
fi
LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}"
fi
done
unset LLVM_LIBS
for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do
if echo "${flag}" | grep -q '^-l'; then
if test "${LLVM_LIBS}" != ""; then
LLVM_LIBS="${LLVM_LIBS} "
fi
LLVM_LIBS="${LLVM_LIBS}${flag}"
fi
done
AC_SUBST(LLVM_CFLAGS)
AC_SUBST(LLVM_LDFLAGS)
AC_SUBST(LLVM_LIBS)
fi
# libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then
LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"

View File

@@ -332,6 +332,18 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS],
DEFINE_CROSS_COMPILE_ARCH=""
fi
AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
# ZERO_ARCHDEF is used to enable architecture-specific code
case "${OPENJDK_TARGET_CPU}" in
ppc*) ZERO_ARCHDEF=PPC ;;
s390*) ZERO_ARCHDEF=S390 ;;
sparc*) ZERO_ARCHDEF=SPARC ;;
x86_64*) ZERO_ARCHDEF=AMD64 ;;
x86) ZERO_ARCHDEF=IA32 ;;
*) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
esac
AC_SUBST(ZERO_ARCHDEF)
])
AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
@@ -421,6 +433,7 @@ AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_TARGET_BITS],
# (The JVM can use 32 or 64 bit Java pointers but that decision
# is made at runtime.)
#
if test "x$OPENJDK_TARGET_OS" = xsolaris; then
# Always specify -m flags on Solaris
PLATFORM_SET_COMPILER_TARGET_BITS_FLAGS

View File

@@ -33,12 +33,14 @@ CORBA_TOPDIR="$SRC_ROOT/corba"
JAXP_TOPDIR="$SRC_ROOT/jaxp"
JAXWS_TOPDIR="$SRC_ROOT/jaxws"
HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
NASHORN_TOPDIR="$SRC_ROOT/nashorn"
JDK_TOPDIR="$SRC_ROOT/jdk"
AC_SUBST(LANGTOOLS_TOPDIR)
AC_SUBST(CORBA_TOPDIR)
AC_SUBST(JAXP_TOPDIR)
AC_SUBST(JAXWS_TOPDIR)
AC_SUBST(HOTSPOT_TOPDIR)
AC_SUBST(NASHORN_TOPDIR)
AC_SUBST(JDK_TOPDIR)
])
@@ -234,6 +236,17 @@ if test "x$with_override_hotspot" != x; then
AC_MSG_CHECKING([if hotspot should be overridden])
AC_MSG_RESULT([yes with $HOTSPOT_TOPDIR])
fi
if test "x$with_override_nashorn" != x; then
CURDIR="$PWD"
cd "$with_override_nashorn"
NASHORN_TOPDIR="`pwd`"
cd "$CURDIR"
if ! test -f $NASHORN_TOPDIR/makefiles/BuildNashorn.gmk; then
AC_MSG_ERROR([You have to override nashorn with a full nashorn repo!])
fi
AC_MSG_CHECKING([if nashorn should be overridden])
AC_MSG_RESULT([yes with $NASHORN_TOPDIR])
fi
if test "x$with_override_jdk" != x; then
CURDIR="$PWD"
cd "$with_override_jdk"

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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
@@ -54,9 +54,9 @@ MAKE_ARGS="SPEC=$(SPEC)"
MAKE:=@MAKE@
# Pass along the verbosity setting.
# Pass along the verbosity and log level settings.
ifeq (,$(findstring VERBOSE=,$(MAKE)))
MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)"
MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" LOG_LEVEL="$(LOG_LEVEL)"
endif
# No implicit variables or rules!
@@ -141,6 +141,7 @@ CORBA_TOPDIR:=@CORBA_TOPDIR@
JAXP_TOPDIR:=@JAXP_TOPDIR@
JAXWS_TOPDIR:=@JAXWS_TOPDIR@
HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
NASHORN_TOPDIR:=@NASHORN_TOPDIR@
COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
# Location where build customization files may be found
@@ -163,11 +164,22 @@ MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
# Different version strings generated from the above information.
JDK_VERSION:=@JDK_VERSION@
RUNTIME_NAME:=@RUNTIME_NAME@
FULL_VERSION:=@FULL_VERSION@
JRE_RELEASE_VERSION:=@FULL_VERSION@
RELEASE:=@RELEASE@
RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
# These variables need to be generated here so that MILESTONE and
# JDK_BUILD_NUMBER can be overridden on the make command line.
ifeq ($(MILESTONE),)
RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
else
RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
endif
ifeq ($(JDK_BUILD_NUMBER),b00)
USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
else
FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
endif
JRE_RELEASE_VERSION:=$(FULL_VERSION)
# How to compile the code: release, fastdebug or slowdebug
DEBUG_LEVEL:=@DEBUG_LEVEL@
@@ -185,11 +197,12 @@ SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
# These are the libjvms that we want to build.
# The java launcher uses the default.
# The other can be selected by specifying -client -server -kernel -zero or -zeroshark
# The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
# on the java launcher command line.
JVM_VARIANTS:=@JVM_VARIANTS@
JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
@@ -212,19 +225,23 @@ BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
# directory.
BUILD_OUTPUT:=@BUILD_OUTPUT@
# Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
NASHORN_OUTPUTDIR=$(BUILD_OUTPUT)/nashorn
IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
JCE_OUTPUTDIR=$(BUILD_OUTPUT)/jce-release
LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
HOTSPOT_DIST=@HOTSPOT_DIST@
NASHORN_DIST=$(NASHORN_OUTPUTDIR)/dist
BUILD_HOTSPOT=@BUILD_HOTSPOT@
@@ -247,6 +264,9 @@ ENABLE_SJAVAC:=@ENABLE_SJAVAC@
# the sjavac server log files.
SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
# Number of parallel jobs to use for compilation
JOBS?=@JOBS@
# The OpenJDK makefiles should be changed to using the standard
# configure output ..._CFLAGS and ..._LIBS. In the meantime we
# extract the information here.
@@ -255,6 +275,8 @@ FREETYPE2_LIBS:=@FREETYPE2_LIBS@
FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
CUPS_CFLAGS:=@CUPS_CFLAGS@
ALSA_LIBS:=@ALSA_LIBS@
ALSA_CFLAGS:=@ALSA_CFLAGS@
PACKAGE_PATH=@PACKAGE_PATH@
@@ -269,10 +291,20 @@ X_CFLAGS:=@X_CFLAGS@
X_LIBS:=@X_LIBS@
OPENWIN_HOME:=@OPENWIN_HOME@
# DirectX SDK
DXSDK_LIB_PATH=@DXSDK_LIB_PATH@
DXSDK_INCLUDE_PATH=@DXSDK_INCLUDE_PATH@
# The lowest required version of macosx to enforce compatiblity for
MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
# There are two types: CC or CL
# CC is gcc and others behaving reasonably similar.
# CL is cl.exe only.
COMPILER_TYPE:=@COMPILER_TYPE@
COMPILER_NAME:=@COMPILER_NAME@
COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
CC_OUT_OPTION:=@CC_OUT_OPTION@
EXE_OUT_OPTION:=@EXE_OUT_OPTION@
@@ -350,6 +382,7 @@ AR:=@FIXPATH@ @AR@
ARFLAGS:=@ARFLAGS@
NM:=@NM@
GNM:=@GNM@
STRIP:=@STRIP@
MCS:=@MCS@
@@ -419,6 +452,14 @@ RMIC=@FIXPATH@ $(BOOT_JDK)/bin/rmic
NATIVE2ASCII=@FIXPATH@ $(BOOT_JDK)/bin/native2ascii
JARSIGNER=@FIXPATH@ $(BOOT_JDK)/bin/jarsigner
# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
BOOTSTRAP_JAVAC_ARGS:="-Xbootclasspath/p:$(BOOTSTRAP_JAVAC_JAR)" -cp $(BOOTSTRAP_JAVAC_JAR)
NEW_JAVAC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javac.Main
NEW_JAVADOC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javadoc.Main
# Base flags for RC
# Guarding this against resetting value. Legacy make files include spec multiple
# times.
@@ -439,10 +480,14 @@ CCACHE:=@CCACHE@
# CD is going away, but remains to cater for legacy makefiles.
CD:=cd
CHMOD:=@CHMOD@
CODESIGN:=@CODESIGN@
COMM:=@COMM@
CP:=@CP@
CPIO:=@CPIO@
CUT:=@CUT@
DATE:=@DATE@
DIFF:=@DIFF@
DIRNAME:=@DIRNAME@
FIND:=@FIND@
FIND_DELETE:=@FIND_DELETE@
ECHO:=@ECHO@
@@ -467,6 +512,7 @@ TEE:=@TEE@
TIME:=@TIME@
TR:=@TR@
TOUCH:=@TOUCH@
UNIQ:=@UNIQ@
WC:=@WC@
XARGS:=@XARGS@
ZIPEXE:=@ZIP@
@@ -484,6 +530,9 @@ FILE:=@FILE@
HG:=@HG@
OBJCOPY:=@OBJCOPY@
SETFILE:=@SETFILE@
XATTR:=@XATTR@
JT_HOME:=@JT_HOME@
JTREGEXE:=@JTREGEXE@
FIXPATH:=@FIXPATH@
@@ -501,6 +550,7 @@ endif
# Build setup
ENABLE_JFR=@ENABLE_JFR@
ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
@@ -595,9 +645,28 @@ INSTALL_SYSCONFDIR=@sysconfdir@
# Name of Service Agent library
SALIB_NAME=@SALIB_NAME@
INCLUDE_SA=@INCLUDE_SA@
OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
OS_VERSION_MINOR:=@OS_VERSION_MINOR@
OS_VERSION_MICRO:=@OS_VERSION_MICRO@
# Images directory definitions
JDK_IMAGE_SUBDIR:=j2sdk-image
JRE_IMAGE_SUBDIR:=j2re-image
JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
# Colon left out to be able to override output dir for bootcycle-images
JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
JDK_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
JRE_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
# Macosx bundles directory definitions
JDK_BUNDLE_SUBDIR=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
JRE_BUNDLE_SUBDIR=j2re-bundle/jre$(JDK_VERSION).jre/Contents
JDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
JRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
# Include the custom-spec.gmk file if it exists
-include $(dir @SPEC@)/custom-spec.gmk

View File

@@ -114,13 +114,25 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
[
COMPILER_NAME=$2
# Do a first initial attempt at searching the list of compiler names.
$1=
# If TOOLS_DIR is set, check for all compiler names in there first
# before checking the rest of the PATH.
if test -n "$TOOLS_DIR"; then
PATH_save="$PATH"
PATH="$TOOLS_DIR"
AC_PATH_PROGS(TOOLS_DIR_$1, $3)
$1=$TOOLS_DIR_$1
PATH="$PATH_save"
fi
# AC_PATH_PROGS can't be run multiple times with the same variable,
# so create a new name for this run.
if test "x[$]$1" = x; then
AC_PATH_PROGS(POTENTIAL_$1, $3)
$1=$POTENTIAL_$1
fi
if test "x$[$]$1" = x; then
if test "x[$]$1" = x; then
HELP_MSG_MISSING_DEPENDENCY([devkit])
AC_MSG_ERROR([Could not find a $COMPILER_NAME compiler. $HELP_MSG])
fi
@@ -164,6 +176,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_PATHS],
[
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV
TOOLCHAIN_SETUP_DXSDK
fi
AC_SUBST(MSVCR_DLL)
@@ -236,30 +249,38 @@ fi
### Locate C compiler (CC)
# gcc is almost always present, but on Windows we
# prefer cl.exe and on Solaris we prefer CC.
# Thus test for them in this order.
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# Do not probe for cc on MacOSX.
COMPILER_CHECK_LIST="cl gcc"
# On windows, only cl.exe is supported.
# On Solaris, cc is preferred to gcc.
# Elsewhere, gcc is preferred to cc.
if test "x$CC" != x; then
COMPILER_CHECK_LIST="$CC"
elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
COMPILER_CHECK_LIST="cl"
elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
COMPILER_CHECK_LIST="cc gcc"
else
COMPILER_CHECK_LIST="cl cc gcc"
COMPILER_CHECK_LIST="gcc cc"
fi
TOOLCHAIN_FIND_COMPILER([CC],[C],[$COMPILER_CHECK_LIST])
# Now that we have resolved CC ourself, let autoconf have it's go at it
# Now that we have resolved CC ourself, let autoconf have its go at it
AC_PROG_CC([$CC])
### Locate C++ compiler (CXX)
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# Do not probe for CC on MacOSX.
COMPILER_CHECK_LIST="cl g++"
if test "x$CXX" != x; then
COMPILER_CHECK_LIST="$CXX"
elif test "x$OPENJDK_TARGET_OS" = "xwindows"; then
COMPILER_CHECK_LIST="cl"
elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
COMPILER_CHECK_LIST="CC g++"
else
COMPILER_CHECK_LIST="cl CC g++"
COMPILER_CHECK_LIST="g++ CC"
fi
TOOLCHAIN_FIND_COMPILER([CXX],[C++],[$COMPILER_CHECK_LIST])
# Now that we have resolved CXX ourself, let autoconf have it's go at it
# Now that we have resolved CXX ourself, let autoconf have its go at it
AC_PROG_CXX([$CXX])
### Locate other tools
@@ -420,8 +441,10 @@ fi
AC_SUBST(AS)
if test "x$OPENJDK_TARGET_OS" = xsolaris; then
AC_PATH_PROGS(NM, [gnm nm])
AC_PATH_PROG(NM, nm)
BASIC_FIXUP_EXECUTABLE(NM)
AC_PATH_PROG(GNM, gnm)
BASIC_FIXUP_EXECUTABLE(GNM)
AC_PATH_PROG(STRIP, strip)
BASIC_FIXUP_EXECUTABLE(STRIP)
AC_PATH_PROG(MCS, mcs)
@@ -429,6 +452,8 @@ if test "x$OPENJDK_TARGET_OS" = xsolaris; then
elif test "x$OPENJDK_TARGET_OS" != xwindows; then
AC_CHECK_TOOL(NM, nm)
BASIC_FIXUP_EXECUTABLE(NM)
GNM="$NM"
AC_SUBST(GNM)
AC_CHECK_TOOL(STRIP, strip)
BASIC_FIXUP_EXECUTABLE(STRIP)
fi
@@ -437,8 +462,11 @@ fi
# full debug symbols are enabled.
if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
AC_CHECK_TOOLS(OBJCOPY, [gobjcopy objcopy])
# Only call fixup if objcopy was found.
if test -n "$OBJCOPY"; then
BASIC_FIXUP_EXECUTABLE(OBJCOPY)
fi
fi
AC_CHECK_TOOLS(OBJDUMP, [gobjdump objdump])
if test "x$OBJDUMP" != x; then
@@ -451,6 +479,8 @@ if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
BASIC_FIXUP_EXECUTABLE(LIPO)
fi
TOOLCHAIN_SETUP_JTREG
# Restore old path without tools dir
PATH="$OLD_PATH"
])
@@ -545,6 +575,7 @@ else
fi
fi
AC_SUBST(COMPILER_NAME)
AC_SUBST(OBJ_SUFFIX)
AC_SUBST(SHARED_LIBRARY)
AC_SUBST(STATIC_LIBRARY)
@@ -598,7 +629,6 @@ CXX_FLAG_DEPS="-MMD -MF"
case $COMPILER_TYPE in
CC )
D_FLAG="-g"
case $COMPILER_NAME in
gcc )
case $OPENJDK_TARGET_OS in
@@ -613,6 +643,11 @@ case $COMPILER_TYPE in
C_O_FLAG_HI="-O3"
C_O_FLAG_NORM="-O2"
C_O_FLAG_NONE="-O0"
;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
CFLAGS_DEBUG_SYMBOLS="-g"
CXXFLAGS_DEBUG_SYMBOLS="-g"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
@@ -620,11 +655,6 @@ case $COMPILER_TYPE in
CXXFLAGS_DEBUG_SYMBOLS="-g1"
fi
;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
;;
ossc )
#
# Forte has different names for this with their C++ compiler...
@@ -704,7 +734,6 @@ case $COMPILER_TYPE in
esac
;;
CL )
D_FLAG=
C_O_FLAG_HIGHEST="-O2"
C_O_FLAG_HI="-O1"
C_O_FLAG_NORM="-O1"
@@ -830,6 +859,28 @@ esac
###############################################################################
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NORM"
C_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
# The package path is used only on macosx?
@@ -861,6 +912,17 @@ if test "x$OPENJDK_TARGET_OS" = xsolaris; then
fi
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
# Setting these parameters makes it an error to link to macosx APIs that are
# newer than the given OS version and makes the linked binaries compatible even
# if built on a newer version of the OS.
# The expected format is X.Y.Z
MACOSX_VERSION_MIN=10.7.0
AC_SUBST(MACOSX_VERSION_MIN)
# The macro takes the version with no dots, ex: 1070
# Let the flags variables get resolved in make for easier override on make
# command line.
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
fi
if test "x$OPENJDK_TARGET_OS" = xbsd; then
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
@@ -935,10 +997,22 @@ else
fi
fi
LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
-L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server \
-L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client \
-L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
# On some platforms (mac) the linker warns about non existing -L dirs.
# Add server first if available. Linking aginst client does not always produce the same results.
# Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
# Default to server for other variants.
if test "x$JVM_VARIANT_SERVER" = xtrue; then
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
elif test "x$JVM_VARIANT_CLIENT" = xtrue; then
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client"
elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal"
else
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
fi
LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm"
if test "x$COMPILER_NAME" = xossc; then
LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
@@ -950,23 +1024,6 @@ else
fi
fi
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS="$CFLAGS $D_FLAG"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS="$CFLAGS $D_FLAG"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
AC_SUBST(CFLAGS_JDKLIB)
AC_SUBST(CFLAGS_JDKEXE)
@@ -979,3 +1036,104 @@ AC_SUBST(LDFLAGS_JDKLIB_SUFFIX)
AC_SUBST(LDFLAGS_JDKEXE_SUFFIX)
AC_SUBST(LDFLAGS_CXX_JDK)
])
# TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
# [RUN-IF-FALSE])
# ------------------------------------------------------------
# Check that the c and c++ compilers support an argument
AC_DEFUN([TOOLCHAIN_COMPILER_CHECK_ARGUMENTS],
[
AC_MSG_CHECKING([if compiler supports "$1"])
supports=yes
saved_cflags="$CFLAGS"
CFLAGS="$CFLAGS $1"
AC_LANG_PUSH([C])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([[int i;]])
], [], [supports=no])
AC_LANG_POP([C])
CFLAGS="$saved_cflags"
saved_cxxflags="$CXXFLAGS"
CXXFLAGS="$CXXFLAG $1"
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([[int i;]])
], [], [supports=no])
AC_LANG_POP([C++])
CXXFLAGS="$saved_cxxflags"
AC_MSG_RESULT([$supports])
if test "x$supports" = "xyes" ; then
m4_ifval([$2], [$2], [:])
else
m4_ifval([$3], [$3], [:])
fi
])
AC_DEFUN_ONCE([TOOLCHAIN_SETUP_COMPILER_FLAGS_MISC],
[
# Some Zero and Shark settings.
# ZERO_ARCHFLAG tells the compiler which mode to build for
case "${OPENJDK_TARGET_CPU}" in
s390)
ZERO_ARCHFLAG="-m31"
;;
*)
ZERO_ARCHFLAG="-m${OPENJDK_TARGET_CPU_BITS}"
esac
TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([$ZERO_ARCHFLAG], [], [ZERO_ARCHFLAG=""])
AC_SUBST(ZERO_ARCHFLAG)
# Check that the compiler supports -mX flags
# Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([-m${OPENJDK_TARGET_CPU_BITS}],
[COMPILER_SUPPORTS_TARGET_BITS_FLAG=true],
[COMPILER_SUPPORTS_TARGET_BITS_FLAG=false])
AC_SUBST(COMPILER_SUPPORTS_TARGET_BITS_FLAG)
])
# Setup the JTREG paths
AC_DEFUN_ONCE([TOOLCHAIN_SETUP_JTREG],
[
AC_ARG_WITH(jtreg, [AS_HELP_STRING([--with-jtreg],
[Regression Test Harness @<:@probed@:>@])],
[],
[with_jtreg=no])
if test "x$with_jtreg" = xno; then
# jtreg disabled
AC_MSG_CHECKING([for jtreg])
AC_MSG_RESULT(no)
else
if test "x$with_jtreg" != xyes; then
# with path specified.
JT_HOME="$with_jtreg"
fi
if test "x$JT_HOME" != x; then
AC_MSG_CHECKING([for jtreg])
# use JT_HOME enviroment var.
BASIC_FIXUP_PATH([JT_HOME])
# jtreg win32 script works for everybody
JTREGEXE="$JT_HOME/win32/bin/jtreg"
if test ! -f "$JTREGEXE"; then
AC_MSG_ERROR([JTReg executable does not exist: $JTREGEXE])
fi
AC_MSG_RESULT($JTREGEXE)
else
# try to find jtreg on path
BASIC_REQUIRE_PROG(JTREGEXE, jtreg)
JT_HOME="`$DIRNAME $JTREGEXE`"
fi
fi
AC_SUBST(JT_HOME)
AC_SUBST(JTREGEXE)
])

View File

@@ -48,7 +48,12 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
METHOD="$2"
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(WIN_SDK_BASE)
if test -d "$WIN_SDK_BASE"; then
if test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
# There have been cases of partial or broken SDK installations. A missing
# lib dir is not going to work.
if test ! -d "$WIN_SDK_BASE/../lib"; then
AC_MSG_NOTICE([Found Windows SDK installation at $WIN_SDK_BASE using $METHOD])
AC_MSG_NOTICE([Warning: Installation is broken, lib dir is missing. Ignoring])
elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
AC_MSG_NOTICE([Found Windows SDK installation at $WIN_SDK_BASE using $METHOD])
VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
@@ -86,6 +91,15 @@ AC_DEFUN([TOOLCHAIN_FIND_VISUAL_STUDIO_BAT_FILE],
AC_MSG_ERROR([Cannot locate a valid Visual Studio installation])
fi
if test "x$VS100COMNTOOLS" != x; then
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([$VS100COMNTOOLS/../..], [VS100COMNTOOLS variable])
fi
if test "x$PROGRAMFILES" != x; then
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([$PROGRAMFILES/Microsoft Visual Studio 10.0], [well-known name])
fi
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([C:/Program Files/Microsoft Visual Studio 10.0], [well-known name])
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([C:/Program Files (x86)/Microsoft Visual Studio 10.0], [well-known name])
if test "x$ProgramW6432" != x; then
TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT([$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin], [well-known name])
fi
@@ -97,15 +111,6 @@ AC_DEFUN([TOOLCHAIN_FIND_VISUAL_STUDIO_BAT_FILE],
fi
TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT([C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin], [well-known name])
TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT([C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin], [well-known name])
if test "x$VS100COMNTOOLS" != x; then
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([$VS100COMNTOOLS/../..], [VS100COMNTOOLS variable])
fi
if test "x$PROGRAMFILES" != x; then
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([$PROGRAMFILES/Microsoft Visual Studio 10.0], [well-known name])
fi
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([C:/Program Files/Microsoft Visual Studio 10.0], [well-known name])
TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT([C:/Program Files (x86)/Microsoft Visual Studio 10.0], [well-known name])
])
# Check if the VS env variables were setup prior to running configure.
@@ -200,8 +205,9 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
AC_MSG_ERROR([Your VC command prompt seems broken, INCLUDE and/or LIB is missing.])
else
AC_MSG_RESULT([ok])
VS_INCLUDE="$INCLUDE"
VS_LIB="$LIB"
# Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
VS_PATH="$PATH"
AC_SUBST(VS_INCLUDE)
AC_SUBST(VS_LIB)
@@ -242,13 +248,26 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
AC_MSG_NOTICE([Warning: msvcr100.dll not found in VCINSTALLDIR: $VCINSTALLDIR])
fi
fi
# Try some fallback alternatives
if test "x$MSVCR_DLL" = x; then
# If visual studio express is installed, there is usually one with the debugger
if test "x$VS100COMNTOOLS" != x; then
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
MSVCR_DLL=`find "$VS100COMNTOOLS/.." -name msvcr100.dll | grep -i x64 | head --lines 1`
AC_MSG_NOTICE([msvcr100.dll found in $VS100COMNTOOLS..: $VS100COMNTOOLS..])
fi
fi
fi
if test "x$MSVCR_DLL" = x; then
if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
# Fallback for 32bit builds, look in the windows directory.
if test -f "$SYSTEMROOT/system32/msvcr100.dll"; then
AC_MSG_NOTICE([msvcr100.dll found in $SYSTEMROOT/system32])
MSVCR_DLL="$SYSTEMROOT/system32/msvcr100.dll"
fi
fi
fi
fi
if test "x$MSVCR_DLL" = x; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not find msvcr100.dll !])
@@ -256,3 +275,61 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
AC_MSG_RESULT([$MSVCR_DLL])
BASIC_FIXUP_PATH(MSVCR_DLL)
])
# Setup the DXSDK paths
AC_DEFUN([TOOLCHAIN_SETUP_DXSDK],
[
AC_ARG_WITH(dxsdk, [AS_HELP_STRING([--with-dxsdk],
[the DirectX SDK (Windows only) @<:@probed@:>@])])
AC_ARG_WITH(dxsdk-lib, [AS_HELP_STRING([--with-dxsdk-lib],
[the DirectX SDK lib directory (Windows only) @<:@probed@:>@])])
AC_ARG_WITH(dxsdk-include, [AS_HELP_STRING([--with-dxsdk-include],
[the DirectX SDK include directory (Windows only) @<:@probed@:>@])])
AC_MSG_CHECKING([for DirectX SDK])
if test "x$with_dxsdk" != x; then
dxsdk_path="$with_dxsdk"
elif test "x$DXSDK_DIR" != x; then
dxsdk_path="$DXSDK_DIR"
elif test -d "C:/DXSDK"; then
dxsdk_path="C:/DXSDK"
else
AC_MSG_ERROR([Could not find the DirectX SDK])
fi
AC_MSG_RESULT([$dxsdk_path])
BASIC_FIXUP_PATH(dxsdk_path)
AC_MSG_CHECKING([for DirectX SDK lib dir])
if test "x$with_dxsdk_lib" != x; then
DXSDK_LIB_PATH="$with_dxsdk_lib"
elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
DXSDK_LIB_PATH="$dxsdk_path/Lib/x64"
else
DXSDK_LIB_PATH="$dxsdk_path/Lib"
fi
# dsound.lib is linked to in jsoundds
if test ! -f "$DXSDK_LIB_PATH/dsound.lib"; then
AC_MSG_ERROR([Invalid DirectX SDK lib dir])
fi
AC_MSG_RESULT([$DXSDK_LIB_PATH])
BASIC_FIXUP_PATH(DXSDK_LIB_PATH)
AC_MSG_CHECKING([for DirectX SDK include dir])
if test "x$with_dxsdk_include" != x; then
DXSDK_INCLUDE_PATH="$with_dxsdk_include"
else
DXSDK_INCLUDE_PATH="$dxsdk_path/Include"
fi
# dsound.h is included in jsoundds
if test ! -f "$DXSDK_INCLUDE_PATH/dsound.h"; then
AC_MSG_ERROR([Invalid DirectX SDK lib dir])
fi
AC_MSG_RESULT([$DXSDK_INCLUDE_PATH])
BASIC_FIXUP_PATH(DXSDK_INCLUDE_PATH)
AC_SUBST(DXSDK_LIB_PATH)
AC_SUBST(DXSDK_INCLUDE_PATH)
LDFLAGS_JDK="$LDFLAGS_JDK -libpath:$DXSDK_LIB_PATH"
])

View File

@@ -0,0 +1,38 @@
#
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
JDK_MAJOR_VERSION=1
JDK_MINOR_VERSION=8
JDK_MICRO_VERSION=0
JDK_UPDATE_VERSION=
LAUNCHER_NAME=openjdk
PRODUCT_NAME=OpenJDK
PRODUCT_SUFFIX="Runtime Environment"
JDK_RC_PLATFORM_NAME=Platform
COMPANY_NAME=N/A
# Might need better names for these
MACOSX_BUNDLE_NAME_BASE="OpenJDK"
MACOSX_BUNDLE_ID_BASE="net.java.openjdk"

View File

@@ -1,40 +0,0 @@
#
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
JDK_MAJOR_VERSION=1
JDK_MINOR_VERSION=8
JDK_MICRO_VERSION=0
JDK_UPDATE_VERSION=
JDK_BUILD_NUMBER=
MILESTONE=internal
LAUNCHER_NAME=openjdk
PRODUCT_NAME=OpenJDK
PRODUCT_SUFFIX="Runtime Environment"
JDK_RC_PLATFORM_NAME=Platform
COMPANY_NAME=N/A
# Might need better names for these
MACOSX_BUNDLE_NAME_BASE="OpenJDK"
MACOSX_BUNDLE_ID_BASE="net.java.openjdk"

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. 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
@@ -98,24 +98,30 @@ diff_text() {
if test "x$SUFFIX" = "xclass"; then
# To improve performance when large diffs are found, do a rough filtering of classes
# elibeble for these exceptions
if $GREP -R -e '[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}' -e thePoint -e aPoint -e setItemsPtr ${THIS_FILE} > /dev/null; then
if $GREP -R -e '[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}' \
-e '[0-9]\{2\}/[0-9]\{2\}/[0-9]\{4\}' \
-e thePoint -e aPoint -e setItemsPtr ${THIS_FILE} > /dev/null; then
$JAVAP -c -constants -l -p ${OTHER_FILE} > ${OTHER_FILE}.javap
$JAVAP -c -constants -l -p ${THIS_FILE} > ${THIS_FILE}.javap
TMP=$($DIFF ${OTHER_FILE}.javap ${THIS_FILE}.javap | \
$GREP '^[<>]' | \
$SED -e '/[<>].*[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}-b[0-9]\{2\}.*/d' \
-e '/[0-9]\{2\}\/[0-9]\{2\}\/[0-9]\{4\}/d' \
-e '/[<>].*Point Lcom\/apple\/jobjc\/foundation\/NSPoint;/d' \
-e '/[<>].*public com\.apple\.jobjc\.Pointer<com\.apple\.jobjc\..*itemsPtr();/d' \
-e '/[<>].*public void setItemsPtr(com\.apple\.jobjc\.Pointer<com\.apple\.jobjc\..*);/d')
fi
fi
if test "x$SUFFIX" = "xproperties"; then
$CAT $OTHER_FILE | $SED -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' -e 's/#.*/#/g' \
| $SED -f "$SRC_ROOT/common/makefiles/support/unicode2x.sed" \
| $SED -e '/^#/d' -e '/^$/d' \
-e :a -e '/\\$/N; s/\\\n//; ta' \
-e 's/^[ \t]*//;s/[ \t]*$//' \
-e 's/\\=/=/' | LANG=C $SORT > $OTHER_FILE.cleaned
# Run through nawk to add possibly missing newline at end of file.
$CAT $OTHER_FILE | $NAWK '{ print }' > $OTHER_FILE.cleaned
# Disable this exception since we aren't changing the properties cleaning method yet.
# $CAT $OTHER_FILE | $SED -e 's/\([^\\]\):/\1\\:/g' -e 's/\([^\\]\)=/\1\\=/g' -e 's/#.*/#/g' \
# | $SED -f "$SRC_ROOT/common/makefiles/support/unicode2x.sed" \
# | $SED -e '/^#/d' -e '/^$/d' \
# -e :a -e '/\\$/N; s/\\\n//; ta' \
# -e 's/^[ \t]*//;s/[ \t]*$//' \
# -e 's/\\=/=/' | LANG=C $SORT > $OTHER_FILE.cleaned
TMP=$(LANG=C $DIFF $OTHER_FILE.cleaned $THIS_FILE)
fi
if test -n "$TMP"; then
@@ -283,13 +289,14 @@ compare_general_files() {
! -name "*.debuginfo" ! -name "*.dylib" ! -name "jexec" \
! -name "ct.sym" ! -name "*.diz" ! -name "*.dll" \
! -name "*.pdb" ! -name "*.exp" ! -name "*.ilk" \
! -name "*.lib" ! -name "*.war" \
! -name "*.lib" ! -name "*.war" ! -name "JavaControlPanel" \
| $GREP -v "./bin/" | $SORT | $FILTER)
echo General files...
for f in $GENERAL_FILES
do
if [ -e $OTHER_DIR/$f ]; then
SUFFIX="${f##*.}"
if [ "$(basename $f)" = "release" ]; then
# Ignore differences in change numbers in release file.
OTHER_FILE=$WORK_DIR/$f.other
@@ -298,6 +305,25 @@ compare_general_files() {
$MKDIR -p $(dirname $THIS_FILE)
$CAT $OTHER_DIR/$f | $SED 's/\:[0-9a-f]\{12,12\}/:CHANGE/g' > $OTHER_FILE
$CAT $THIS_DIR/$f | $SED 's/\:[0-9a-f]\{12,12\}/:CHANGE/g' > $THIS_FILE
elif [ "x$SUFFIX" = "xhtml" ]; then
# Ignore time stamps in docs files
OTHER_FILE=$WORK_DIR/$f.other
THIS_FILE=$WORK_DIR/$f.this
$MKDIR -p $(dirname $OTHER_FILE)
$MKDIR -p $(dirname $THIS_FILE)
#Note that | doesn't work on mac sed.
$CAT $OTHER_DIR/$f | $SED -e 's/\(-- Generated by javadoc \).*\( --\)/\1(removed)\2/' \
-e 's/\(<meta name="date" content="\).*\(">\)/\1(removed)\2/' \
-e 's/[A-Z][a-z]*, [A-Z][a-z]* [0-9][0-9]*, [12][0-9]* [0-9][0-9:]* [AMP]\{2,2\} [A-Z][A-Z]*/(removed)/' \
-e 's/[A-Z][a-z]* [A-Z][a-z]* [0-9][0-9] [0-9][0-9:]* [A-Z][A-Z]* [12][0-9]*/(removed)/' \
-e 's/^\( from \).*\(\.idl\)$/\1(removed)\2/' \
> $OTHER_FILE
$CAT $THIS_DIR/$f | $SED -e 's/\(-- Generated by javadoc \).*\( --\)/\1(removed)\2/' \
-e 's/\(<meta name="date" content="\).*\(">\)/\1(removed)\2/' \
-e 's/[A-Z][a-z]*, [A-Z][a-z]* [0-9][0-9]*, [12][0-9]* [0-9][0-9:]* [AMP]\{2,2\} [A-Z][A-Z]*/(removed)/' \
-e 's/[A-Z][a-z]* [A-Z][a-z]* [0-9][0-9] [0-9][0-9:]* [A-Z][A-Z]* [12][0-9]*/(removed)/' \
-e 's/^\( from \).*\(\.idl\)$/\1(removed)\2/' \
> $THIS_FILE
else
OTHER_FILE=$OTHER_DIR/$f
THIS_FILE=$THIS_DIR/$f
@@ -324,9 +350,15 @@ compare_zip_file() {
OTHER_DIR=$2
WORK_DIR=$3
ZIP_FILE=$4
# Optionally provide different name for other zipfile
OTHER_ZIP_FILE=$5
THIS_ZIP=$THIS_DIR/$ZIP_FILE
if [ -n "$OTHER_ZIP_FILE" ]; then
OTHER_ZIP=$OTHER_DIR/$OTHER_ZIP_FILE
else
OTHER_ZIP=$OTHER_DIR/$ZIP_FILE
fi
THIS_SUFFIX="${THIS_ZIP##*.}"
OTHER_SUFFIX="${OTHER_ZIP##*.}"
@@ -353,14 +385,14 @@ compare_zip_file() {
(cd $OTHER_UNZIPDIR && $UNARCHIVE $OTHER_ZIP)
# Find all archives inside and unzip them as well to compare the contents rather than
# the archives.
EXCEPTIONS=""
for pack in $($FIND $THIS_UNZIPDIR -name "*.pack" -o -name "*.pack.gz"); do
# the archives. pie.jar.pack.gz i app3.war is corrupt, skip it.
EXCEPTIONS="pie.jar.pack.gz"
for pack in $($FIND $THIS_UNZIPDIR \( -name "*.pack" -o -name "*.pack.gz" \) -a ! -name pie.jar.pack.gz); do
($UNPACK200 $pack $pack.jar)
# Filter out the unzipped archives from the diff below.
EXCEPTIONS="$EXCEPTIONS $pack $pack.jar"
done
for pack in $($FIND $OTHER_UNZIPDIR -name "*.pack" -o -name "*.pack.gz"); do
for pack in $($FIND $OTHER_UNZIPDIR \( -name "*.pack" -o -name "*.pack.gz" \) -a ! -name pie.jar.pack.gz); do
($UNPACK200 $pack $pack.jar)
EXCEPTIONS="$EXCEPTIONS $pack $pack.jar"
done
@@ -611,10 +643,19 @@ compare_bin_file() {
DIFF_SIZE_NUM=$($EXPR $THIS_SIZE - $OTHER_SIZE)
DIFF_SIZE_REL=$($EXPR $THIS_SIZE \* 100 / $OTHER_SIZE)
SIZE_MSG=$($PRINTF "%3d%% %4d" $DIFF_SIZE_REL $DIFF_SIZE_NUM)
if [[ "$ACCEPTED_SMALL_SIZE_DIFF" = *"$BIN_FILE"* ]] && [ "$DIFF_SIZE_REL" -gt 98 ] && [ "$DIFF_SIZE_REL" -lt 102 ]; then
if [[ "$ACCEPTED_SMALL_SIZE_DIFF" = *"$BIN_FILE"* ]] && [ "$DIFF_SIZE_REL" -gt 98 ] \
&& [ "$DIFF_SIZE_REL" -lt 102 ]; then
SIZE_MSG="($SIZE_MSG)"
DIFF_SIZE=
elif [[ "$ACCEPTED_SMALL_SIZE_DIFF" = *"$BIN_FILE"* ]] && [ "$DIFF_SIZE_NUM" = 512 ]; then
elif [ "$OPENJDK_TARGET_OS" = "windows" ] \
&& [[ "$ACCEPTED_SMALL_SIZE_DIFF" = *"$BIN_FILE"* ]] \
&& [ "$DIFF_SIZE_NUM" = 512 ]; then
# On windows, size of binaries increase in 512 increments.
SIZE_MSG="($SIZE_MSG)"
DIFF_SIZE=
elif [ "$OPENJDK_TARGET_OS" = "windows" ] \
&& [[ "$ACCEPTED_SMALL_SIZE_DIFF" = *"$BIN_FILE"* ]] \
&& [ "$DIFF_SIZE_NUM" = -512 ]; then
# On windows, size of binaries increase in 512 increments.
SIZE_MSG="($SIZE_MSG)"
DIFF_SIZE=
@@ -840,7 +881,7 @@ compare_all_libs() {
OTHER_DIR=$2
WORK_DIR=$3
LIBS=$(cd $THIS_DIR && $FIND . -type f \( -name 'lib*.so' -o -name '*.dylib' -o -name '*.dll' \) | $SORT | $FILTER)
LIBS=$(cd $THIS_DIR && $FIND . -type f \( -name 'lib*.so' -o -name '*.dylib' -o -name '*.dll' -o -name 'JavaControlPanel' \) | $SORT | $FILTER)
if [ -n "$LIBS" ]; then
echo Libraries...
@@ -927,6 +968,9 @@ if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "-?" ] || [ "$1" = "/h" ] || [ "$1
echo "[FILTER] List filenames in the image to compare, works for jars, zips, libs and execs"
echo "Example:"
echo "bash ./common/bin/compareimages.sh CodePointIM.jar"
echo ""
echo "-2zips <file1> <file2> Compare two zip files only"
echo ""
exit 10
fi
@@ -988,6 +1032,13 @@ while [ -n "$1" ]; do
-execs)
CMP_EXECS=true
;;
-2zips)
CMP_2_ZIPS=true
THIS_FILE=$2
OTHER_FILE=$3
shift
shift
;;
*)
CMP_NAMES=false
CMP_PERMS=false
@@ -1006,6 +1057,18 @@ while [ -n "$1" ]; do
shift
done
if [ "$CMP_2_ZIPS" = "true" ]; then
THIS_DIR="$(dirname $THIS_FILE)"
THIS_DIR="$(cd "$THIS_DIR" && pwd )"
OTHER_DIR="$(dirname $OTHER_FILE)"
OTHER_DIR="$(cd "$OTHER_DIR" && pwd )"
THIS_FILE_NAME="$(basename $THIS_FILE)"
OTHER_FILE_NAME="$(basename $OTHER_FILE)"
echo Comparing $THIS_DIR/$THIS_FILE_NAME and $OTHER_DIR/$OTHER_FILE_NAME
compare_zip_file $THIS_DIR $OTHER_DIR $COMPARE_ROOT/2zips $THIS_FILE_NAME $OTHER_FILE_NAME
exit
fi
if [ "$CMP_NAMES" = "false" ] && [ "$CMP_TYPES" = "false" ] && [ "$CMP_PERMS" = "false" ] && [ "$CMP_GENERAL" = "false" ] && [ "$CMP_ZIPS" = "false" ] && [ "$CMP_JARS" = "false" ] && [ "$CMP_LIBS" = "false" ] && [ "$CMP_EXECS" = "false" ]; then
CMP_NAMES=true
CMP_PERMS=true
@@ -1047,7 +1110,11 @@ fi
# Figure out the layout of the this build. Which kinds of images have been produced
if [ -d "$THIS/deploy/j2sdk-image" ]; then
if [ -d "$THIS/install/j2sdk-image" ]; then
THIS_J2SDK="$THIS/install/j2sdk-image"
THIS_J2RE="$THIS/install/j2re-image"
echo "Comparing install images"
elif [ -d "$THIS/deploy/j2sdk-image" ]; then
THIS_J2SDK="$THIS/deploy/j2sdk-image"
THIS_J2RE="$THIS/deploy/j2re-image"
echo "Comparing deploy images"
@@ -1055,10 +1122,17 @@ elif [ -d "$THIS/images/j2sdk-image" ]; then
THIS_J2SDK="$THIS/images/j2sdk-image"
THIS_J2RE="$THIS/images/j2re-image"
fi
if [ -d "$THIS/images/j2sdk-overlay-image" ]; then
if [ -d "$THIS/install/j2sdk-image" ]; then
# If there is an install image, prefer that, it's also overlay
THIS_J2SDK_OVERLAY="$THIS/install/j2sdk-image"
THIS_J2RE_OVERLAY="$THIS/install/j2re-image"
else
THIS_J2SDK_OVERLAY="$THIS/images/j2sdk-overlay-image"
THIS_J2RE_OVERLAY="$THIS/images/j2re-overlay-image"
fi
fi
if [ -d "$THIS/images/j2sdk-bundle" ]; then
THIS_J2SDK_BUNDLE="$THIS/images/j2sdk-bundle"
@@ -1074,7 +1148,9 @@ if [ -d "$OTHER/j2sdk-image" ]; then
OTHER_J2SDK_OVERLAY="$OTHER/j2sdk-image"
OTHER_J2RE_OVERLAY="$OTHER/j2re-image"
fi
elif [ -d "$OTHER/images/j2sdk-image" ]; then
OTHER_J2SDK="$OTHER/images/j2sdk-image"
OTHER_J2RE="$OTHER/images/j2re-image"
fi
if [ -d "$OTHER/j2sdk-bundle" ]; then
@@ -1102,6 +1178,42 @@ if [ -z "$THIS_J2SDK_BUNDLE" ] && [ -n "$OTHER_J2SDK_BUNDLE" ]; then
echo "Skipping bundle compare!"
fi
if [ -d "$THIS/docs" ]; then
THIS_DOCS="$THIS/docs"
fi
if [ -d "$OTHER/docs" ]; then
OTHER_DOCS="$OTHER/docs"
fi
if [ -z "$THIS_DOCS" ]; then
echo "WARNING! Docs haven't been built and won't be compared."
fi
if [ -z "$OTHER_DOCS" ]; then
echo "WARNING! Other build doesn't contain docs, skipping doc compare."
fi
if [ -d "$OTHER/images" ]; then
OTHER_SEC_DIR="$OTHER/images"
else
OTHER_SEC_DIR="$OTHER/tmp"
fi
OTHER_SEC_BIN="$OTHER_SEC_DIR/sec-bin.zip"
THIS_SEC_DIR="$THIS/images"
THIS_SEC_BIN="$THIS_SEC_DIR/sec-bin.zip"
if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
if [ "$OPENJDK_TARGET_CPU" = "x86_64" ]; then
JGSS_WINDOWS_BIN="jgss-windows-x64-bin.zip"
else
JGSS_WINDOWS_BIN="jgss-windows-i586-bin.zip"
fi
OTHER_SEC_WINDOWS_BIN="$OTHER_SEC_DIR/sec-windows-bin.zip"
OTHER_JGSS_WINDOWS_BIN="$OTHER_SEC_DIR/$JGSS_WINDOWS_BIN"
THIS_SEC_WINDOWS_BIN="$THIS_SEC_DIR/sec-windows-bin.zip"
THIS_JGSS_WINDOWS_BIN="$THIS_SEC_DIR/$JGSS_WINDOWS_BIN"
fi
##########################################################################################
# Do the work
@@ -1139,6 +1251,12 @@ if [ "$CMP_NAMES" = "true" ]; then
echo -n "J2RE Bundle "
compare_files $THIS_J2RE_BUNDLE $OTHER_J2RE_BUNDLE $COMPARE_ROOT/j2re-bundle
fi
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
echo -n "Docs "
compare_dirs $THIS_DOCS $OTHER_DOCS $COMPARE_ROOT/docs
echo -n "Docs "
compare_files $THIS_DOCS $OTHER_DOCS $COMPARE_ROOT/docs
fi
fi
if [ "$CMP_PERMS" = "true" ]; then
@@ -1202,12 +1320,34 @@ if [ "$CMP_GENERAL" = "true" ]; then
echo -n "J2RE Bundle "
compare_general_files $THIS_J2RE_BUNDLE $OTHER_J2RE_BUNDLE $COMPARE_ROOT/j2re-bundle
fi
if [ -n "$THIS_DOCS" ] && [ -n "$OTHER_DOCS" ]; then
echo -n "Docs "
compare_general_files $THIS_DOCS $OTHER_DOCS $COMPARE_ROOT/docs
fi
fi
if [ "$CMP_ZIPS" = "true" ]; then
if [ -n "$THIS_J2SDK" ] && [ -n "$OTHER_J2SDK" ]; then
compare_all_zip_files $THIS_J2SDK $OTHER_J2SDK $COMPARE_ROOT/j2sdk
fi
if [ -n "$THIS_SEC_BIN" ] && [ -n "$OTHER_SEC_BIN" ]; then
if [ -n "$(echo $THIS_SEC_BIN | $FILTER)" ]; then
echo "sec-bin.zip..."
compare_zip_file $THIS_SEC_DIR $OTHER_SEC_DIR $COMPARE_ROOT/sec-bin sec-bin.zip
fi
fi
if [ -n "$THIS_SEC_WINDOWS_BIN" ] && [ -n "$OTHER_SEC_WINDOWS_BIN" ]; then
if [ -n "$(echo $THIS_SEC_WINDOWS_BIN | $FILTER)" ]; then
echo "sec-windows-bin.zip..."
compare_zip_file $THIS_SEC_DIR $OTHER_SEC_DIR $COMPARE_ROOT/sec-bin sec-windows-bin.zip
fi
fi
if [ -n "$THIS_JGSS_WINDOWS_BIN" ] && [ -n "$OTHER_JGSS_WINDOWS_BIN" ]; then
if [ -n "$(echo $THIS_JGSS_WINDOWS_BIN | $FILTER)" ]; then
echo "$JGSS_WINDOWS_BIN..."
compare_zip_file $THIS_SEC_DIR $OTHER_SEC_DIR $COMPARE_ROOT/sec-bin $JGSS_WINDOWS_BIN
fi
fi
fi
if [ "$CMP_JARS" = "true" ]; then
@@ -1218,7 +1358,12 @@ fi
if [ "$CMP_LIBS" = "true" ]; then
if [ -n "$THIS_J2SDK" ] && [ -n "$OTHER_J2SDK" ]; then
echo -n "J2SDK "
compare_all_libs $THIS_J2SDK $OTHER_J2SDK $COMPARE_ROOT/j2sdk
if [ "$OPENJDK_TARGET_OS" = "macosx" ]; then
echo -n "J2RE "
compare_all_libs $THIS_J2RE $OTHER_J2RE $COMPARE_ROOT/j2re
fi
fi
if [ -n "$THIS_J2SDK_OVERLAY" ] && [ -n "$OTHER_J2SDK_OVERLAY" ]; then
echo -n "Bundle "

View File

@@ -80,6 +80,7 @@ ACCEPTED_BIN_DIFF="
./bin/javadoc
./bin/javah
./bin/javap
./bin/jdeps
./bin/jcmd
./bin/jconsole
./bin/jdb
@@ -167,6 +168,7 @@ ACCEPTED_BIN_DIFF="
./bin/javadoc
./bin/javah
./bin/javap
./bin/jdeps
./bin/jcmd
./bin/jconsole
./bin/jdb
@@ -291,6 +293,14 @@ ACCEPTED_SMALL_SIZE_DIFF="
./jre/plugin/i386/ns4/libjavaplugin.so
./jre/plugin/i386/ns7/libjavaplugin_oji.so
./jre/lib/i386/server/libjvm.so
./jre/lib/i386/client/64/libjvm_db.so
./jre/lib/i386/client/64/libjvm_dtrace.so
./jre/lib/i386/client/libjvm_db.so
./jre/lib/i386/client/libjvm_dtrace.so
./jre/lib/i386/server/64/libjvm_db.so
./jre/lib/i386/server/64/libjvm_dtrace.so
./jre/lib/i386/server/libjvm_db.so
./jre/lib/i386/server/libjvm_dtrace.so
./bin/appletviewer
./bin/extcheck
./bin/idlj
@@ -301,6 +311,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./bin/javadoc
./bin/javah
./bin/javap
./bin/jdeps
./bin/javaws
./bin/jcmd
./bin/jconsole
@@ -348,7 +359,9 @@ ACCEPTED_SMALL_SIZE_DIFF="
SKIP_FULLDUMP_DIFF="true"
# Filter random C++ symbol strings.
DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}/<SYM>/g"
# Some numbers differ randomly.
# Can't use space in these expressions as the shell will mess with them.
DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}/<SYM>/g -e s/\([0-9a-f][0-9a-f].\)\{2,8\}[0-9a-f][0-9a-f]/<NUMS>/g -e s/\(0x\)[0-9a-f]*\([,(>]\)/\1<HEX>\2/g -e s/\(0x\)[0-9a-f]*$/\1<HEX>/g -e s/\(\#.\)[0-9a-f]*\(.<\)/\1<HEX>\2/g -e s/[\.A-Za-z0-9%]\{16,16\}$/<BIN>/g"
fi
@@ -426,6 +439,9 @@ ACCEPTED_SMALL_SIZE_DIFF="
./jre/lib/amd64/libzip.so
./jre/lib/amd64/server/64/libjvm_db.so
./jre/lib/amd64/server/64/libjvm_dtrace.so
./jre/lib/amd64/server/libjvm.so
./jre/lib/amd64/server/libjvm_db.so
./jre/lib/amd64/server/libjvm_dtrace.so
./bin/amd64/appletviewer
./bin/amd64/extcheck
./bin/amd64/idlj
@@ -436,6 +452,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./bin/amd64/javadoc
./bin/amd64/javah
./bin/amd64/javap
./bin/amd64/jdeps
./bin/amd64/jcmd
./bin/amd64/jconsole
./bin/amd64/jdb
@@ -480,7 +497,9 @@ ACCEPTED_SMALL_SIZE_DIFF="
SKIP_FULLDUMP_DIFF="true"
# Filter random C++ symbol strings.
DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}/<SYM>/g"
# Some numbers differ randomly.
# Can't use space in these expressions as the shell will mess with them.
DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}/<SYM>/g -e s/\([0-9a-f][0-9a-f].\)\{2,8\}[0-9a-f][0-9a-f]/<NUMS>/g -e s/\(0x\)[0-9a-f]*\([,(>]\)/\1<HEX>\2/g -e s/\(0x\)[0-9a-f]*$/\1<HEX>/g -e s/\(\#.\)[0-9a-f]*\(.<\)/\1<HEX>\2/g -e s/[\.A-Za-z0-9%]\{16,16\}$/<BIN>/g"
fi
@@ -591,6 +610,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./bin/javadoc
./bin/javah
./bin/javap
./bin/jdeps
./bin/javaws
./bin/jcmd
./bin/jconsole
@@ -736,6 +756,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./bin/sparcv9/javadoc
./bin/sparcv9/javah
./bin/sparcv9/javap
./bin/sparcv9/jdeps
./bin/sparcv9/jcmd
./bin/sparcv9/jconsole
./bin/sparcv9/jdb
@@ -792,6 +813,10 @@ fi
if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
ACCEPTED_JARZIP_CONTENTS="
/bin/w2k_lsa_auth.dll
"
# Probably should add all libs here
ACCEPTED_SMALL_SIZE_DIFF="
./demo/jvmti/gctest/lib/gctest.dll
@@ -800,6 +825,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./jre/bin/attach.dll
./jre/bin/java_crw_demo.dll
./jre/bin/jsoundds.dll
./jre/bin/server/jvm.dll
./bin/appletviewer.exe
./bin/extcheck.exe
./bin/idlj.exe
@@ -811,6 +837,7 @@ ACCEPTED_SMALL_SIZE_DIFF="
./bin/javadoc.exe
./bin/javah.exe
./bin/javap.exe
./bin/jdeps.exe
./bin/javaw.exe
./bin/jcmd.exe
./bin/jconsole.exe
@@ -860,6 +887,17 @@ ACCEPTED_SMALL_SIZE_DIFF="
./jre/bin/unpack200.exe
"
# jabswitch.exe is compiled and linked with incremental turned on in the old
# build. This makes no sense, so it's turned off in the new build.
ACCEPTED_SIZE_DIFF="
./bin/jabswitch.exe
./jre/bin/jabswitch.exe
"
ACCEPTED_DIS_DIFF="
./bin/jabswitch.exe
./jre/bin/jabswitch.exe
"
# On windows, there are unavoidable allignment issues making
# a perfect disasm diff impossible. Filter out the following:
# * Random parts of C++ symbols (this is a bit greedy, but does the trick)
@@ -881,6 +919,7 @@ ACCEPTED_JARZIP_CONTENTS="
KNOWN_BIN_DIFF="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
ACCEPTED_BIN_DIFF="
@@ -894,6 +933,7 @@ ACCEPTED_BIN_DIFF="
./bin/javadoc
./bin/javah
./bin/javap
./bin/jdeps
./bin/jcmd
./bin/jconsole
./bin/jdb
@@ -932,26 +972,34 @@ ACCEPTED_BIN_DIFF="
./jre/bin/tnameserv
./jre/lib/libsaproc.dylib
./jre/lib/server/libjvm.dylib
./lib/libsaproc.dylib
./lib/server/libjvm.dylib
./lib/deploy/JavaControlPanel.prefPane/Contents/MacOS/JavaControlPanel
"
KNOWN_SIZE_DIFF="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
SORT_SYMBOLS="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
KNOWN_SYM_DIFF="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
KNOWN_ELF_DIFF="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
KNOWN_DIS_DIFF="
./jre/lib/libJObjC.dylib
./lib/libJObjC.dylib
"
fi

215
common/bin/hgforest.sh Normal file
View File

@@ -0,0 +1,215 @@
#!/bin/sh
#
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Shell script for a fast parallel forest command
command="$1"
pull_extra_base="$2"
# Python always buffers stdout significantly, thus we will not see any output from hg clone jdk,
# until a lot of time has passed! By passing -u to python, we get incremental updates
# on stdout. Much nicer.
whichhg="`which hg 2> /dev/null | grep -v '^no hg in'`"
if [ "${whichhg}" = "" ] ; then
echo Cannot find hg!
exit 1
fi
if [ "" = "$command" ] ; then
echo No command to hg supplied!
exit 1
fi
has_hash_bang="`head -n 1 "${whichhg}" | cut -b 1-2`"
python=""
bpython=""
if [ "#!" = "$has_hash_bang" ] ; then
python="`head -n 1 ${whichhg} | cut -b 3-`"
bpython="`basename "$python"`"
fi
if [ -x "$python" -a ! -d "$python" -a "`${python} -V 2>&1 | cut -f 1 -d ' '`" = "Python" ] ; then
hg="${python} -u ${whichhg}"
else
echo Cannot find python from hg launcher. Running plain hg, which probably has buffered stdout.
hg="hg"
fi
# Clean out the temporary directory that stores the pid files.
tmp=/tmp/forest.$$
rm -f -r ${tmp}
mkdir -p ${tmp}
safe_interrupt () {
if [ -d ${tmp} ]; then
if [ "`ls ${tmp}/*.pid`" != "" ]; then
echo "Waiting for processes ( `cat ${tmp}/*.pid | tr '\n' ' '`) to terminate nicely!"
sleep 1
# Pipe stderr to dev/null to silence kill, that complains when trying to kill
# a subprocess that has already exited.
kill -TERM `cat ${tmp}/*.pid | tr '\n' ' '` 2> /dev/null
wait
echo Interrupt complete!
fi
fi
rm -f -r ${tmp}
exit 1
}
nice_exit () {
if [ -d ${tmp} ]; then
if [ "`ls ${tmp}`" != "" ]; then
wait
fi
fi
rm -f -r ${tmp}
}
trap 'safe_interrupt' INT QUIT
trap 'nice_exit' EXIT
# Only look in specific locations for possible forests (avoids long searches)
pull_default=""
repos=""
repos_extra=""
if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
subrepos="corba jaxp jaxws langtools jdk hotspot nashorn"
if [ -f .hg/hgrc ] ; then
pull_default=`hg paths default`
if [ "${pull_default}" = "" ] ; then
echo "ERROR: Need initial clone with 'hg paths default' defined"
exit 1
fi
fi
if [ "${pull_default}" = "" ] ; then
echo "ERROR: Need initial repository to use this script"
exit 1
fi
for i in ${subrepos} ; do
if [ ! -f ${i}/.hg/hgrc ] ; then
repos="${repos} ${i}"
fi
done
if [ "${pull_extra_base}" != "" ] ; then
subrepos_extra="jdk/src/closed jdk/make/closed jdk/test/closed hotspot/make/closed hotspot/src/closed hotspot/test/closed deploy install sponsors pubs"
pull_default_tail=`echo ${pull_default} | sed -e 's@^.*://[^/]*/\(.*\)@\1@'`
pull_extra="${pull_extra_base}/${pull_default_tail}"
for i in ${subrepos_extra} ; do
if [ ! -f ${i}/.hg/hgrc ] ; then
repos_extra="${repos_extra} ${i}"
fi
done
fi
at_a_time=2
# Any repos to deal with?
if [ "${repos}" = "" -a "${repos_extra}" = "" ] ; then
exit
fi
else
hgdirs=`ls -d ./.hg ./*/.hg ./*/*/.hg ./*/*/*/.hg ./*/*/*/*/.hg 2>/dev/null`
# Derive repository names from the .hg directory locations
for i in ${hgdirs} ; do
repos="${repos} `echo ${i} | sed -e 's@/.hg$@@'`"
done
for i in ${repos} ; do
if [ -h ${i}/.hg/store/lock -o -f ${i}/.hg/store/lock ] ; then
locked="${i} ${locked}"
fi
done
at_a_time=8
# Any repos to deal with?
if [ "${repos}" = "" ] ; then
echo "No repositories to process."
exit
fi
if [ "${locked}" != "" ] ; then
echo "These repositories are locked: ${locked}"
exit
fi
fi
# Echo out what repositories we do a command on.
echo "# Repositories: ${repos} ${repos_extra}"
echo
# Run the supplied command on all repos in parallel.
n=0
for i in ${repos} ${repos_extra} ; do
n=`expr ${n} '+' 1`
repopidfile=`echo ${i} | sed -e 's@./@@' -e 's@/@_@g'`
reponame=`echo ${i} | sed -e :a -e 's/^.\{1,20\}$/ &/;ta'`
pull_base="${pull_default}"
for j in $repos_extra ; do
if [ "$i" = "$j" ] ; then
pull_base="${pull_extra}"
fi
done
(
(
if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
pull_newrepo="`echo ${pull_base}/${i} | sed -e 's@\([^:]/\)//*@\1@g'`"
echo ${hg} clone ${pull_newrepo} ${i}
path="`dirname ${i}`"
if [ "${path}" != "." ] ; then
times=0
while [ ! -d "${path}" ] ## nested repo, ensure containing dir exists
do
times=`expr ${times} '+' 1`
if [ `expr ${times} '%' 10` -eq 0 ] ; then
echo ${path} still not created, waiting...
fi
sleep 5
done
fi
(${hg} clone ${pull_newrepo} ${i}; echo "$?" > ${tmp}/${repopidfile}.pid.rc )&
else
echo "cd ${i} && ${hg} $*"
cd ${i} && (${hg} "$@"; echo "$?" > ${tmp}/${repopidfile}.pid.rc )&
fi
echo $! > ${tmp}/${repopidfile}.pid
) 2>&1 | sed -e "s@^@${reponame}: @") &
if [ `expr ${n} '%' ${at_a_time}` -eq 0 ] ; then
sleep 2
echo Waiting 5 secs before spawning next background command.
sleep 3
fi
done
# Wait for all hg commands to complete
wait
# Terminate with exit 0 only if all subprocesses were successful
ec=0
if [ -d ${tmp} ]; then
for rc in ${tmp}/*.pid.rc ; do
exit_code=`cat ${rc} | tr -d ' \n\r'`
if [ "${exit_code}" != "0" ] ; then
echo "WARNING: ${rc} exited abnormally."
ec=1
fi
done
fi
exit ${ec}

View File

@@ -70,8 +70,8 @@ define add_idl_package
$(PREFIXES) \
$4
$(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6)
$(CP) -rp $3/$$($4_TMPDIR)/* $3
($(CD) $3/$$($4_TMPDIR); find . -type f | sed 's!\./!$3/!g' | awk '{ print $$$$1 ": $4" }' > $5)
$(CP) -r $3/$$($4_TMPDIR)/* $3
($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5)
$(RM) -rf $3/$$($4_TMPDIR)
endef
@@ -87,7 +87,7 @@ $(if $(16),$(error Internal makefile error: Too many arguments to SetupIdlCompil
$1_SRC := $$(abspath $$($1_SRC))
$1_BIN := $$(abspath $$($1_BIN))
# Find all existing java files and existing class files.
$$(shell $(MKDIR) -p $$($1_SRC) $$($1_BIN))
$$(eval $$(call MakeDir,$$($1_BIN)))
$1_SRCS := $$(shell find $$($1_SRC) -name "*.idl")
$1_BINS := $$(shell find $$($1_BIN) -name "*.java")
# Prepend the source/bin path to the filter expressions.

View File

@@ -42,8 +42,8 @@ endif
FALSE_FIND_PATTERN:=-name FILE_NAME_THAT_DOESNT_EXIST
define SetupJavaCompiler
# param 1 is for example BOOT_JAVAC or NEW_JAVAC
# This is the name later used to decide which java compiler to use.
# param 1 is for example GENERATE_OLD_BYTECODE or GENERATE_NEW_JDKBYTECODE
# This is the name of the compiler setup.
# param 2-9 are named args.
# JVM:=The jvm used to run the javac/javah command
# JAVAC:=The javac jar and bootstrap classpath changes, or just bin/javac if JVM is left out
@@ -86,7 +86,7 @@ define SetupArchive
# NOTE: $2 is dependencies, not a named argument!
$(foreach i,3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
$(call LogSetupMacroEntry,SetupArchive($1),<dependencies>,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
$(if $(findstring $(LOG),debug trace), $(info *[2] <dependencies> = $(strip $2)))
$(if $(findstring $(LOG_LEVEL),debug trace), $(info *[2] <dependencies> = $(strip $2)))
$(if $(16),$(error Internal makefile error: Too many arguments to SetupArchive, please update JavaCompilation.gmk))
$1_JARMAIN:=$(strip $$($1_JARMAIN))
@@ -111,8 +111,8 @@ define SetupArchive
ifeq ($$(word 20,$$($1_GREP_INCLUDE_PATTERNS)),)
$1_GREP_INCLUDES:=| $(GREP) $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_INCLUDE_PATTERNS))
else
$$(shell $(MKDIR) -p $$($1_BIN) && $(RM) $$($1_BIN)/_the.$$($1_JARNAME)_include)
$$(eval $$(call ListPathsSafelyNow,$1_GREP_INCLUDE_PATTERNS,\n, \
$1_GREP_INCLUDE_OUTPUT:=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_include && \
$$(strip $$(call ListPathsSafely,$1_GREP_INCLUDE_PATTERNS,\n, \
>> $$($1_BIN)/_the.$$($1_JARNAME)_include))
$1_GREP_INCLUDES:=| $(GREP) -f $$($1_BIN)/_the.$$($1_JARNAME)_include
endif
@@ -124,8 +124,8 @@ define SetupArchive
ifeq ($$(word 20,$$($1_GREP_EXCLUDE_PATTERNS)),)
$1_GREP_EXCLUDES:=| $(GREP) -v $$(patsubst %,$(SPACE)-e$(SPACE)$(DQUOTE)%$(DQUOTE),$$($1_GREP_EXCLUDE_PATTERNS))
else
$$(shell $(MKDIR) -p $$($1_BIN) && $(RM) $$($1_BIN)/_the.$$($1_JARNAME)_exclude)
$$(eval $$(call ListPathsSafelyNow,$1_GREP_EXCLUDE_PATTERNS,\n, \
$1_GREP_EXCLUDE_OUTPUT=$(RM) $$($1_BIN)/_the.$$($1_JARNAME)_exclude && \
$$(strip $$(call ListPathsSafely,$1_GREP_EXCLUDE_PATTERNS,\n, \
>> $$($1_BIN)/_the.$$($1_JARNAME)_exclude))
$1_GREP_EXCLUDES:=| $(GREP) -v -f $$($1_BIN)/_the.$$($1_JARNAME)_exclude
endif
@@ -137,19 +137,25 @@ define SetupArchive
else
$1_JARINDEX = true
endif
# When this macro is run in the same makefile as the java compilation, dependencies are transfered
# in make variables. When the macro is run in a different makefile than the java compilation, the
# dependencies need to be found in the filesystem.
# When this macro is run in the same makefile as the java compilation, dependencies are
# transfered in make variables. When the macro is run in a different makefile than the
# java compilation, the dependencies need to be found in the filesystem.
ifneq (,$2)
$1_DEPS:=$2
else
$1_DEPS:=$$(filter $$(addprefix %,$$($1_SUFFIXES)),\
$$(call CacheFind,$$($1_SRCS)))
ifneq (,$$($1_GREP_INCLUDE_PATTERNS))
$1_DEPS:=$$(filter $$(addsuffix %,$$($1_GREP_INCLUDE_PATTERNS)),$$($1_DEPS))
endif
ifneq (,$$($1_GREP_EXCLUDE_PATTERNS))
$1_DEPS:=$$(filter-out $$(addsuffix %,$$($1_GREP_EXCLUDE_PATTERNS)),$$($1_DEPS))
endif
# The subst of \ is needed because $ has to be escaped with \ in EXTRA_FILES for the command
# lines, but not here for use in make dependencies.
$1_DEPS:=$$(shell $(FIND) $$($1_SRCS) -type f -a \( $$($1_FIND_PATTERNS) \) \
$$($1_GREP_INCLUDES) $$($1_GREP_EXCLUDES)) \
$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
$1_DEPS+=$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
ifeq (,$$($1_SKIP_METAINF))
$1_DEPS+=$$(shell $(FIND) $$(addsuffix /META-INF,$$($1_SRCS)) -type f 2> /dev/null))
$1_DEPS+=$$(call CacheFind $$(wildcard $$(addsuffix /META-INF,$$($1_SRCS))))
endif
endif
@@ -210,6 +216,8 @@ define SetupArchive
# Here is the rule that creates/updates the jar file.
$$($1_JAR) : $$($1_DEPS)
$(MKDIR) -p $$($1_BIN)
$$($1_GREP_INCLUDE_OUTPUT)
$$($1_GREP_EXCLUDE_OUTPUT)
$$(if $$($1_MANIFEST),\
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" $$($1_MANIFEST) > $$($1_MANIFEST_FILE) \
@@ -242,14 +250,14 @@ endef
define SetupZipArchive
# param 1 is for example ZIP_MYSOURCE
# param 2,3,4,5,6,7,8,9 are named args.
# SRC,ZIP,INCLUDES,EXCLUDES,EXCLUDE_FILES,SUFFIXES,EXTRA_DEPS
# SRC,ZIP,INCLUDES,INCLUDE_FILES,EXCLUDES,EXCLUDE_FILES,SUFFIXES,EXTRA_DEPS
$(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
$(call LogSetupMacroEntry,SetupZipArchive($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
$(if $(16),$(error Internal makefile error: Too many arguments to SetupZipArchive, please update JavaCompilation.gmk))
# Find all files in the source tree.
$1_SUFFIX_FILTER := $$(patsubst %,-o -name $(DQUOTE)*%$(DQUOTE),$$($1_SUFFIXES))
$1_ALL_SRCS := $$(foreach i,$$($1_SRC), $$(shell $(FIND) $$i -type f -a ! -name "_the.*" \( -name FALSE_DUMMY $$($1_SUFFIX_FILTER) \) ))
$1_ALL_SRCS := $$(call not-containing,_the.,\
$$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind $$($1_SRC))))
ifneq ($$($1_INCLUDES),)
$1_SRC_INCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_INCLUDES))))
@@ -259,6 +267,12 @@ define SetupZipArchive
else
$1_ZIP_INCLUDES := $$(addprefix -i$(SPACE)$(DQUOTE),$$(addsuffix /*$(DQUOTE),$$($1_INCLUDES)))
endif
endif
ifneq ($$($1_INCLUDE_FILES),)
$1_SRC_INCLUDES += $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_INCLUDE_FILES)))
$1_ZIP_INCLUDES += $$(addprefix -i$(SPACE),$$($1_INCLUDE_FILES))
endif
ifneq ($$($1_SRC_INCLUDES),)
$1_ALL_SRCS := $$(filter $$($1_SRC_INCLUDES),$$($1_ALL_SRCS))
endif
ifneq ($$($1_EXCLUDES),)
@@ -275,10 +289,12 @@ define SetupZipArchive
# Explicitly excluded files can be given with absolute path. The patsubst solution
# isn't perfect but the likelyhood of an absolute path to match something in a src
# dir is very small.
# If zip has nothing to do, it returns 12 and would fail the build. Check for 12
# and only fail if it's not.
$$($1_ZIP) : $$($1_ALL_SRCS) $$($1_EXTRA_DEPS)
$(MKDIR) -p $$(@D)
$(ECHO) Updating $$($1_NAME)
$$(foreach i,$$($1_SRC),(cd $$i && $(ZIP) -qru $$@ . $$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* $$(addprefix -x$(SPACE),$$(patsubst $$i/%,%,$$($1_EXCLUDE_FILES))))$$(NEWLINE)) true
$$(foreach i,$$($1_SRC),(cd $$i && $(ZIP) -qru $$@ . $$($1_ZIP_INCLUDES) $$($1_ZIP_EXCLUDES) -x \*_the.\* $$(addprefix -x$(SPACE),$$(patsubst $$i/%,%,$$($1_EXCLUDE_FILES))) || test "$$$$?" = "12" )$$(NEWLINE)) true
$(TOUCH) $$@
endef
@@ -374,7 +390,7 @@ define SetupJavaCompilation
$$(foreach d,$$($1_SRC), $$(if $$(wildcard $$d),,$$(error SRC specified to SetupJavaCompilation $1 contains missing directory $$d)))
$$(eval $$(call MakeDir,$$($1_BIN)))
# Find all files in the source trees.
$1_ALL_SRCS := $$(filter-out $(OVR_SRCS),$$(shell $(FIND) $$($1_SRC) -type f))
$1_ALL_SRCS += $$(filter-out $(OVR_SRCS),$$(call CacheFind,$$($1_SRC)))
# Extract the java files.
ifneq ($$($1_EXCLUDE_FILES),)
$1_EXCLUDE_FILES_PATTERN:=$$(addprefix %,$$($1_EXCLUDE_FILES))
@@ -406,8 +422,6 @@ define SetupJavaCompilation
# Find all files to be copied from source to bin.
ifneq (,$$($1_COPY))
# Rewrite list of patterns into a find statement.
$1_COPY_PATTERN:=$(FALSE_FIND_PATTERN) $$(patsubst %,$(SPACE)-o$(SPACE)-name$(SPACE)$(DQUOTE)*%$(DQUOTE),$$($1_COPY))
# Search for all files to be copied.
$1_ALL_COPIES := $$(filter $$(addprefix %,$$($1_COPY)),$$($1_ALL_SRCS))
# Copy these explicitly
@@ -434,8 +448,6 @@ define SetupJavaCompilation
# Find all property files to be copied and cleaned from source to bin.
ifneq (,$$($1_CLEAN))
# Rewrite list of patterns into a find statement.
$1_CLEAN_PATTERN:=$(FALSE_FIND_PATTERN) $$(patsubst %,$(SPACE)-o$(SPACE)-name$(SPACE)$(DQUOTE)*%$(DQUOTE),$$($1_CLEAN))
# Search for all files to be copied.
$1_ALL_CLEANS := $$(filter $$(addprefix %,$$($1_CLEAN)),$$($1_ALL_SRCS))
# Copy and clean must also respect filters.
@@ -475,10 +487,10 @@ define SetupJavaCompilation
# Using sjavac to compile.
$1 := $$($1_ALL_COPY_TARGETS) $$($1_ALL_COPY_CLEAN_TARGETS) $$($1_BIN)/javac_state
# Create SJAVAC variable,
# expects $1_JAVAC to be "bootclasspathprepend -jar ...javac.jar"
# and it is rewritten into "bootclasspathprepend com.sun.tools.sjavac.Main"
$1_SJAVAC:=$$(word 1,$$($1_JAVAC)) -cp $$(word 3,$$($1_JAVAC)) com.sun.tools.sjavac.Main
# Create SJAVAC variable form JAVAC variable. Expects $1_JAVAC to be
# "bootclasspathprepend -cp .../javac.jar com.sun.tools.javac.Main"
# and javac is simply replaced with sjavac.
$1_SJAVAC:=$$(subst com.sun.tools.javac.Main,com.sun.tools.sjavac.Main,$$($1_JAVAC))
# Set the $1_REMOTE to spawn a background javac server.
$1_REMOTE:=--server:portfile=$$($1_SJAVAC_PORTFILE),id=$1,sjavac=$$(subst $$(SPACE),%20,$$(subst $$(COMMA),%2C,$$(strip $$($1_SERVER_JVM) $$($1_SJAVAC))))
@@ -489,11 +501,11 @@ define SetupJavaCompilation
$(ECHO) Compiling $1
($$($1_JVM) $$($1_SJAVAC) \
$$($1_REMOTE) \
-j $(NUM_CORES) \
-j $(JOBS) \
--permit-unidentified-artifacts \
--permit-sources-without-package \
--compare-found-sources $$($1_BIN)/_the.batch.tmp \
--log=$(LOG) \
--log=$(LOG_LEVEL) \
$$($1_SJAVAC_ARGS) \
$$($1_FLAGS) \
$$($1_HEADERS_ARG) \

253
common/makefiles/Jprt.gmk Normal file
View File

@@ -0,0 +1,253 @@
#
# Copyright (c) 2012, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# This file is included by the root NewerMakefile and contains targets
# and utilities needed by JPRT.
# Utilities used in this Makefile. Most of this makefile executes without
# the context of a spec file from configure.
CAT=cat
CMP=cmp
CP=cp
ECHO=echo
MKDIR=mkdir
PRINTF=printf
PWD=pwd
# Insure we have a path that looks like it came from pwd
# (This is mostly for Windows sake and drive letters)
define UnixPath # path
$(shell (cd "$1" && $(PWD)))
endef
BUILD_DIR_ROOT:=$(root_dir)/build
ifdef OPENJDK
OPEN_BUILD=true
else
OPEN_BUILD := $(if $(or $(wildcard $(root_dir)/jdk/src/closed), \
$(wildcard $(root_dir)/jdk/make/closed), \
$(wildcard $(root_dir)/jdk/test/closed), \
$(wildcard $(root_dir)/hotspot/src/closed), \
$(wildcard $(root_dir)/hotspot/make/closed), \
$(wildcard $(root_dir)/hotspot/test/closed)), \
false,true)
endif
HOTSPOT_AVAILABLE := $(if $(wildcard $(root_dir)/hotspot),true,false)
###########################################################################
# To help in adoption of the new configure&&make build process, a bridge
# build will use the old settings to run configure and do the build.
# Build with the configure bridge. After running configure, restart make
# to parse the new spec file.
BRIDGE_TARGETS := all
# Add bootcycle-images target if legacy variable is set.
ifeq ($(SKIP_BOOT_CYCLE),false)
BRIDGE_TARGETS += bootcycle-images
endif
bridgeBuild: bridge2configure
@cd $(root_dir) && $(MAKE) -f NewMakefile.gmk $(BRIDGE_TARGETS)
# Bridge from old Makefile ALT settings to configure options
bridge2configure: $(BUILD_DIR_ROOT)/.bridge2configureOpts
bash ./configure $(strip $(shell $(CAT) $<))
# Create a file with configure options created from old Makefile mechanisms.
$(BUILD_DIR_ROOT)/.bridge2configureOpts: $(BUILD_DIR_ROOT)/.bridge2configureOptsLatest
$(RM) $@
$(CP) $< $@
# Use this file to only change when obvious things have changed
$(BUILD_DIR_ROOT)/.bridge2configureOptsLatest: FRC
$(RM) $@.tmp
$(MKDIR) -p $(BUILD_DIR_ROOT)
@$(ECHO) " --with-debug-level=$(if $(DEBUG_LEVEL),$(DEBUG_LEVEL),release) " >> $@.tmp
ifdef ARCH_DATA_MODEL
@$(ECHO) " --with-target-bits=$(ARCH_DATA_MODEL) " >> $@.tmp
endif
ifeq ($(ARCH_DATA_MODEL),32)
@$(ECHO) " --with-jvm-variants=client,server " >> $@.tmp
endif
ifdef ALT_PARALLEL_COMPILE_JOBS
@$(ECHO) " --with-num-cores=$(ALT_PARALLEL_COMPILE_JOBS) " >> $@.tmp
endif
ifdef ALT_BOOTDIR
@$(ECHO) " --with-boot-jdk=$(call UnixPath,$(ALT_BOOTDIR)) " >> $@.tmp
endif
ifdef ALT_CUPS_HEADERS_PATH
@$(ECHO) " --with-cups-include=$(call UnixPath,$(ALT_CUPS_HEADERS_PATH)) " >> $@.tmp
endif
ifdef ALT_FREETYPE_HEADERS_PATH
@$(ECHO) " --with-freetype=$(call UnixPath,$(ALT_FREETYPE_HEADERS_PATH)/..) " >> $@.tmp
endif
ifdef ENABLE_SJAVAC
@$(ECHO) " --enable-sjavac" >> $@.tmp
endif
ifeq ($(HOTSPOT_AVAILABLE),false)
ifdef ALT_JDK_IMPORT_PATH
@$(ECHO) " --with-import-hotspot=$(call UnixPath,$(ALT_JDK_IMPORT_PATH)) " >> $@.tmp
endif
endif
ifeq ($(OPEN_BUILD),true)
@$(ECHO) " --enable-openjdk-only " >> $@.tmp
else
# Todo: move to closed?
ifdef ALT_MOZILLA_HEADERS_PATH
@$(ECHO) " --with-mozilla-headers=$(call UnixPath,$(ALT_MOZILLA_HEADERS_PATH)) " >> $@.tmp
endif
ifdef ALT_JUNIT_DIR
@$(ECHO) " --with-junit-dir=$(call UnixPath,$(ALT_JUNIT_DIR)) " >> $@.tmp
endif
ifdef ANT_HOME
@$(ECHO) " --with-ant-home=$(call UnixPath,$(ANT_HOME)) " >> $@.tmp
endif
ifdef ALT_JAVAFX_ZIP_DIR
@$(ECHO) " --with-javafx-zip-dir=$(call UnixPath,$(ALT_JAVAFX_ZIP_DIR)) " >> $@.tmp
endif
ifdef ALT_JMC_ZIP_DIR
@$(ECHO) " --with-jmc-zip-dir=$(call UnixPath,$(ALT_JMC_ZIP_DIR)) " >> $@.tmp
endif
ifdef ALT_WIXDIR
@$(ECHO) " --with-wix=$(call UnixPath,$(ALT_WIXDIR)) " >> $@.tmp
endif
ifdef ALT_INSTALL_LZMA_PATH
@$(ECHO) " --with-lzma-path=$(call UnixPath,$(ALT_INSTALL_LZMA_PATH)) " >> $@.tmp
endif
ifdef ALT_INSTALL_UPX_PATH
@$(ECHO) " --with-upx-path=$(call UnixPath,$(ALT_INSTALL_UPX_PATH)) " >> $@.tmp
endif
ifdef ALT_INSTALL_UPX_FILENAME
@$(ECHO) " --with-upx-filename=$(call UnixPath,$(ALT_INSTALL_UPX_FILENAME)) " >> $@.tmp
endif
ifdef ALT_CCSS_SIGNING_DIR
@$(ECHO) " --with-ccss-signing=$(call UnixPath,$(ALT_CCSS_SIGNING_DIR)) " >> $@.tmp
endif
ifdef ALT_SLASH_JAVA
@$(ECHO) " --with-java-devtools=$(call UnixPath,$(ALT_SLASH_JAVA)/devtools) " >> $@.tmp
endif
ifdef ALT_SPARKLE_FRAMEWORK_DIR
@$(ECHO) " --with-sparkle-framework=$(call UnixPath,$(ALT_SPARKLE_FRAMEWORK_DIR)) " >> $@.tmp
endif
endif
@if [ -f $@ ] ; then \
if ! $(CMP) $@ $@.tmp > /dev/null ; then \
$(CP) $@.tmp $@ ; \
fi ; \
else \
$(CP) $@.tmp $@ ; \
fi
$(RM) $@.tmp
PHONY_LIST += bridge2configure bridgeBuild
###########################################################################
# JPRT targets
ifndef JPRT_ARCHIVE_BUNDLE
JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/j2sdk-image.zip
endif
ifndef JPRT_ARCHIVE_INSTALL_BUNDLE
JPRT_ARCHIVE_INSTALL_BUNDLE=/tmp/jprt_bundles/product-install.zip
endif
# These targets execute in a SPEC free context, before calling bridgeBuild
# to generate the SPEC.
jprt_build_product: DEBUG_LEVEL=release
jprt_build_product: BUILD_DIRNAME=*-release
jprt_build_product: jprt_build_generic
jprt_build_fastdebug: DEBUG_LEVEL=fastdebug
jprt_build_fastdebug: BUILD_DIRNAME=*-fastdebug
jprt_build_fastdebug: jprt_build_generic
jprt_build_debug: DEBUG_LEVEL=slowdebug
jprt_build_debug: BUILD_DIRNAME=*-debug
jprt_build_debug: jprt_build_generic
jprt_build_generic: BRIDGE_TARGETS+=jprt_bundle
jprt_build_generic: bridgeBuild
# This target must be called in the context of a SPEC file
jprt_bundle: $(JPRT_ARCHIVE_BUNDLE)
@$(call CheckIfMakeAtEnd)
# This target must be called in the context of a SPEC file
$(JPRT_ARCHIVE_BUNDLE): bundles
$(MKDIR) -p $(@D)
$(RM) $@
$(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
SRC_JDK_IMAGE_DIR := $(JDK_OVERLAY_IMAGE_DIR)
SRC_JRE_IMAGE_DIR := $(JRE_OVERLAY_IMAGE_DIR)
else
SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR)
SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR)
endif
SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR)
SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR)
# Bundle up the images
bundles: all bundles-only
bundles-only: start-make
@$(call TargetEnter)
$(MKDIR) -p $(BUILD_OUTPUT)/bundles
$(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip .
$(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip .
if [ -d $(BUILD_OUTPUT)/install/bundles ] ; then \
$(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \
fi
@$(call TargetExit)
# Copy images to one unified location regardless of platform etc.
final-images: all final-images-only
final-images-only: start-make
@$(call TargetEnter)
$(RM) -r $(BUILD_OUTPUT)/final-images
$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)
$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)
$(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/
$(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/
ifeq ($(OPENJDK_TARGET_OS),macosx)
$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)
$(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)
$(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/
$(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/
endif
@$(call TargetExit)
# Keep track of phony targets
PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \
jprt_build_generic bundles jprt_bundle \
final-images final-images-only
###########################################################################
# Phony targets
.PHONY: $(PHONY_LIST)
# Force target
FRC:

View File

@@ -58,16 +58,28 @@ $(eval $(call ResetAllTimers))
# Setup number of jobs to use. -jN is unfortunately not available for us to parse from the command line,
# hence this workaround.
ifeq ($(JOBS),)
JOBS=$(NUM_CORES)
endif
MAKE_ARGS:=$(MAKE_ARGS) -j$(JOBS)
### Main targets
all: jdk
default: jdk
@$(call CheckIfMakeAtEnd)
start-make:
all: images docs
@$(call CheckIfMakeAtEnd)
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
all: overlay-images
endif
# Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
# is up to date after changes to configure
$(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
@$(ECHO) ERROR: $(SPEC) is not up to date
@$(ECHO) Please rerun configure!
@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
start-make: $(SPEC)
@$(call AtMakeStart)
langtools: langtools-only
@@ -108,13 +120,21 @@ jdk-only: start-make
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET))
@$(call TargetExit)
nashorn: jdk nashorn-only
nashorn-only: start-make
@$(call TargetEnter)
@($(CD) $(NASHORN_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk)
@$(call TargetExit)
demos: jdk demos-only
demos-only: start-make
@$(call TargetEnter)
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos)
@$(call TargetExit)
images: source-tips demos images-only
# Note: This double-colon rule is intentional, to support
# custom make file integration.
images:: source-tips demos nashorn images-only
images-only: start-make
@$(call TargetEnter)
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images)
@@ -126,12 +146,17 @@ overlay-images-only: start-make
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk overlay-images)
@$(call TargetExit)
bundles: images bundles-only
bundles-only: start-make
profiles: profiles-oscheck source-tips jdk hotspot profiles-only
profiles-only: start-make
@$(call TargetEnter)
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk bundles)
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk profiles)
@$(call TargetExit)
profiles-oscheck:
ifneq ($(OPENJDK_TARGET_OS), linux)
@echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1
endif
install: images install-only
install-only: start-make
@$(call TargetEnter)
@@ -144,15 +169,21 @@ docs-only: start-make
@($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
@$(call TargetExit)
bootcycle-images:
@$(ECHO) Boot cycle build step 1: Building the JDK image normally
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images)
sign-jars: jdk sign-jars-only
sign-jars-only: start-make
@$(call TargetEnter)
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
@$(call TargetExit)
bootcycle-images: images bootcycle-images-only
bootcycle-images-only: start-make
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
test: start-make
test: images test-only
test-only: start-make
@$(call TargetEnter)
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) MAKEFLAGS= -j1 PRODUCT_HOME=$(OUTPUT_ROOT)/jdk JPRT_JAVA_HOME=$(OUTPUT_ROOT)/jdk ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k JT_HOME=$(JT_HOME) MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
@$(call TargetExit)
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
@@ -165,7 +196,7 @@ $(OUTPUT_ROOT)/source_tips: FRC
# Remove everything, except the output from configure.
clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images clean-overlay-images clean-bootcycle-build
clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-overlay-images clean-bootcycle-build clean-docs clean-test
@($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
@$(ECHO) Cleaned all build artifacts.
@@ -195,16 +226,24 @@ clean-hotspot:
$(call CleanComponent,hotspot)
clean-jdk:
$(call CleanComponent,jdk)
clean-nashorn:
$(call CleanComponent,nashorn)
clean-images:
$(call CleanComponent,images)
clean-overlay-images:
$(call CleanComponent,overlay-images)
clean-bootcycle-build:
$(call CleanComponent,bootcycle-build)
clean-docs:
$(call CleanComponent,docs)
$(call CleanComponent,docstemp)
clean-test:
$(call CleanComponent,testoutput)
.PHONY: langtools corba jaxp jaxws hotspot jdk images overlay-images install
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only images-only overlay-images-only install-only
.PHONY: all test clean dist-clean bootcycle-images start-make
.PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images clean-overlay-images clean-bootcycle-build
.PHONY: langtools corba jaxp jaxws hotspot jdk nashorn images overlay-images install test docs
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only nashorn-only images-only overlay-images-only install-only test-only docs-only
.PHONY: all clean dist-clean bootcycle-images start-make
.PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-docs clean-test clean-overlay-images clean-bootcycle-build
.PHONY: profiles profiles-only profiles-oscheck
FRC: # Force target

View File

@@ -328,7 +328,7 @@ $(ECHO) $1/$(HGTIP_FILENAME)
endef
define SetupLogging
ifeq ($$(LOG), trace)
ifeq ($$(LOG_LEVEL),trace)
# Shell redefinition trick inspired by http://www.cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
# For each target executed, will print
# Building <TARGET> (from <FIRST PREREQUISITE>) (<ALL NEWER PREREQUISITES> newer)
@@ -339,17 +339,17 @@ define SetupLogging
endif
# Never remove warning messages; this is just for completeness
LOG_WARN=
ifneq ($$(findstring $$(LOG),info debug trace),)
ifneq ($$(findstring $$(LOG_LEVEL),info debug trace),)
LOG_INFO=
else
LOG_INFO=> /dev/null
endif
ifneq ($$(findstring $$(LOG),debug trace),)
ifneq ($$(findstring $$(LOG_LEVEL),debug trace),)
LOG_DEBUG=
else
LOG_DEBUG=> /dev/null
endif
ifneq ($$(findstring $$(LOG),trace),)
ifneq ($$(findstring $$(LOG_LEVEL),trace),)
LOG_TRACE=
else
LOG_TRACE=> /dev/null
@@ -361,8 +361,8 @@ $(eval $(call SetupLogging))
# This is to be called by all SetupFoo macros
define LogSetupMacroEntry
$(if $(26),$(error Internal makefile error: Too many arguments to LogSetupMacroEntry, please update MakeBase.gmk))
$(if $(findstring $(LOG),debug trace), $(info $1 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25,$(if $($i),$(NEWLINE) $(strip [$i] $($i))))))
$(if $(27),$(error Internal makefile error: Too many arguments to LogSetupMacroEntry, please update MakeBase.gmk))
$(if $(findstring $(LOG_LEVEL),debug trace), $(info $1 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26,$(if $($i),$(NEWLINE) $(strip [$i] $($i))))))
endef
# Make directory without forking mkdir if not needed
@@ -374,15 +374,24 @@ endef
ifeq ($(OPENJDK_TARGET_OS),solaris)
# On Solaris, if the target is a symlink and exists, cp won't overwrite.
# Cp has to operate in recursive mode to allow for -P flag, to preserve soft links. If the
# name of the target file differs from the source file, rename after copy.
define install-file
$(MKDIR) -p $(@D)
$(RM) '$@'
$(CP) -f -r -P '$<' '$(@D)'
if [ "$(@F)" != "$(<F)" ]; then $(MV) '$(@D)/$(<F)' '$@'; fi
endef
else ifeq ($(OPENJDK_TARGET_OS),macosx)
# On mac, extended attributes sometimes creep into the source files, which may later
# cause the creation of ._* files which confuses testing. Clear these with xattr if
# set. Some files get their write permissions removed after being copied to the
# output dir. When these are copied again to images, xattr would fail. By only clearing
# attributes when they are present, failing on this is avoided.
define install-file
$(MKDIR) -p $(@D)
$(CP) -fpRP '$<' '$@'
$(CP) -fRP '$<' '$@'
if [ -n "`$(XATTR) -l '$@'`" ]; then $(XATTR) -c '$@'; fi
endef
else
define install-file
@@ -391,4 +400,46 @@ define install-file
endef
endif
# Convenience functions for working around make's limitations with $(filter ).
containing = $(foreach v,$2,$(if $(findstring $1,$v),$v))
not-containing = $(foreach v,$2,$(if $(findstring $1,$v),,$v))
################################################################################
# In Cygwin, finds are very costly, both because of expensive forks and because
# of bad file system caching. Find is used extensively in $(shell) commands to
# find source files. This makes rerunning make with no or few changes rather
# expensive. To speed this up, these two macros are used to cache the results
# of simple find commands for reuse.
#
# Runs a find and stores both the directories where it was run and the results.
# This macro can be called multiple times to add to the cache. Only finds files
# with no filters.
#
# Needs to be called with $(eval )
#
# Param 1 - Dir to find in
ifeq ($(OPENJDK_BUILD_OS),windows)
define FillCacheFind
FIND_CACHE_DIR += $1
FIND_CACHE := $$(sort $$(FIND_CACHE) $$(shell $(FIND) $1 -type f -o -type l))
endef
else
define FillCacheFind
endef
endif
# Mimics find by looking in the cache if all of the directories have been cached.
# Otherwise reverts to shell find. This is safe to call on all platforms, even if
# cache is deactivated.
#
# The extra - is needed when FIND_CACHE_DIR is empty but should be harmless.
# Param 1 - Dirs to find in
define CacheFind
$(if $(filter-out $(addsuffix %,- $(FIND_CACHE_DIR)),$1),\
$(shell $(FIND) $1 -type f -o -type l),\
$(filter $(addsuffix %,$1),$(FIND_CACHE)))
endef
################################################################################
endif # _MAKEBASE_GMK

View File

@@ -50,7 +50,7 @@ BUILDTIMESDIR=$(OUTPUT_ROOT)/tmp/buildtimes
# Global targets are possible to run either with or without a SPEC. The prototypical
# global target is "help".
global_targets=help configure
global_targets=help jprt% bridgeBuild
##############################
# Functions
@@ -112,7 +112,7 @@ endef
# Do not indent this function, this will add whitespace at the start which the caller won't handle
define GetRealTarget
$(strip $(if $(MAKECMDGOALS),$(MAKECMDGOALS),all))
$(strip $(if $(MAKECMDGOALS),$(MAKECMDGOALS),default))
endef
# Do not indent this function, this will add whitespace at the start which the caller won't handle
@@ -126,10 +126,7 @@ define CheckIfMakeAtEnd
# Check if the current target is the last goal
$(if $(filter $@,$(call LastGoal)),$(call AtMakeEnd))
# If the target is 'foo-only', check if our goal was stated as 'foo'
$(if $(filter $(patsubst %-only,%,$@),$(call LastGoal)),$(call AtMakeEnd))
# If no goal is given, 'all' is default, but the last target executed for all is 'jdk-only'. Check for that, too.
# At most one of the tests can be true.
$(if $(subst all,,$(call LastGoal)),,$(if $(filter $@,jdk-only),$(call AtMakeEnd)))
$(if $(filter $@,$(call LastGoal)-only),$(call AtMakeEnd))
endef
# Hook to be called when starting to execute a top-level target
@@ -142,7 +139,7 @@ endef
define TargetExit
$(call RecordEndTime,$(patsubst %-only,%,$@))
$(BUILD_LOG_WRAPPER) $(PRINTF) "## Finished $(patsubst %-only,%,$@) (build time %s)\n\n" \
"`$(CAT) $(BUILDTIMESDIR)/build_time_diff_$(patsubst %-only,%,$@) | $(CUT) -f 1 -d " "`"
"`$(CAT) $(BUILDTIMESDIR)/build_time_diff_$(patsubst %-only,%,$@) | $(CUT) -f 1 -d ' '`"
$(call CheckIfMakeAtEnd)
endef
@@ -187,26 +184,34 @@ define ParseLogLevel
LOG_STRIPPED2=$$(subst nofile,,$$(LOG_STRIPPED1))
# We might have ended up with a leading comma. Remove it
LOG_STRIPPED3=$$(strip $$(patsubst $$(COMMA)%,%,$$(LOG_STRIPPED2)))
override LOG:=$$(LOG_STRIPPED3)
LOG_LEVEL:=$$(LOG_STRIPPED3)
else
LOG_LEVEL:=$$(LOG)
endif
ifeq ($$(LOG),)
ifeq ($$(LOG_LEVEL),)
# Set LOG to "warn" as default if not set (and no VERBOSE given)
override LOG=warn
override LOG_LEVEL=warn
endif
ifeq ($$(LOG),warn)
ifeq ($$(LOG_LEVEL),warn)
VERBOSE=-s
else ifeq ($$(LOG),info)
else ifeq ($$(LOG_LEVEL),info)
VERBOSE=-s
else ifeq ($$(LOG),debug)
else ifeq ($$(LOG_LEVEL),debug)
VERBOSE=
else ifeq ($$(LOG),trace)
else ifeq ($$(LOG_LEVEL),trace)
VERBOSE=
else
$$(info Error: LOG must be one of: warn, info, debug or trace.)
$$(eval $$(call FatalError))
endif
else
# Provide resonable interpretations of LOG_LEVEL if VERBOSE is given.
ifeq ($(VERBOSE),)
LOG_LEVEL:=debug
else
LOG_LEVEL:=warn
endif
ifneq ($$(LOG),)
# We have both a VERBOSE and a LOG argument. This is OK only if this is a repeated call by ourselves,
# but complain if this is the top-level make call.

View File

@@ -23,109 +23,4 @@
# questions.
#
# This must be the first rule
all:
# Inclusion of this pseudo-target will cause make to execute this file
# serially, regardless of -j. Recursively called makefiles will not be
# affected, however. This is required for correct dependency management.
.NOTPARALLEL:
# The shell code below will be executed on /usr/ccs/bin/make on Solaris, but not in GNU make.
# /usr/ccs/bin/make lacks basically every other flow control mechanism.
TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU make/gmake, this is a requirement. Check your path. 1>&2 && exit 1
# Assume we have GNU make, but check version.
ifeq (,$(findstring 3.81,$(MAKE_VERSION)))
ifeq (,$(findstring 3.82,$(MAKE_VERSION)))
$(error This version of GNU Make is too low ($(MAKE_VERSION)). Check your path, or upgrade to 3.81 or newer.)
endif
endif
# Locate this Makefile
ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),)
makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST))
else
makefile_path:=$(lastword $(MAKEFILE_LIST))
endif
root_dir:=$(patsubst %/common/makefiles/Makefile,%,$(makefile_path))
# ... and then we can include our helper functions
include $(dir $(makefile_path))/MakeHelpers.gmk
$(eval $(call ParseLogLevel))
$(eval $(call ParseConfAndSpec))
# Now determine if we have zero, one or several configurations to build.
ifeq ($(SPEC),)
# Since we got past ParseConfAndSpec, we must be building a global target. Do nothing.
else
ifeq ($(words $(SPEC)),1)
# We are building a single configuration. This is the normal case. Execute the Main.gmk file.
include $(dir $(makefile_path))/Main.gmk
else
# We are building multiple configurations.
# First, find out the valid targets
# Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find
# available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
all_phony_targets=$(filter-out $(global_targets), $(strip $(shell \
$(MAKE) -p -q -f $(makefile_path) SPEC=$(firstword $(SPEC)) | \
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
$(all_phony_targets):
@$(foreach spec,$(SPEC),($(MAKE) -f $(makefile_path) SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) $@) &&) true
endif
endif
# Here are "global" targets, i.e. targets that can be executed without specifying a single configuration.
# If you addd more global targets, please update the variable global_targets in MakeHelpers.
help:
$(info )
$(info OpenJDK Makefile help)
$(info =====================)
$(info )
$(info Common make targets)
$(info . make [all] # Compile all code but do not create images)
$(info . make images # Create complete j2sdk and j2re images)
$(info . make overlay-images # Create limited images for sparc 64 bit platforms)
$(info . make bootcycle-images # Build images twice, second time with newly build JDK)
$(info . make install # Install the generated images locally)
$(info . make clean # Remove all files generated by make, but not those)
$(info . # generated by configure)
$(info . make dist-clean # Remove all files, including configuration)
$(info . make help # Give some help on using make)
$(info . make test # Run tests, default is all tests (see TEST below))
$(info )
$(info Targets for specific components)
$(info (Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk, images or overlay-images))
$(info . make <component> # Build <component> and everything it depends on. )
$(info . make <component>-only # Build <component> only, without dependencies. This)
$(info . # is faster but can result in incorrect build results!)
$(info . make clean-<component> # Remove files generated by make for <component>)
$(info )
$(info Useful make variables)
$(info . make CONF= # Build all configurations (note, assignment is empty))
$(info . make CONF=<substring> # Build the configuration(s) with a name matching)
$(info . # <substring>)
$(info )
$(info . make LOG=<loglevel> # Change the log level from warn to <loglevel>)
$(info . # Available log levels are:)
$(info . # 'warn' (default), 'info', 'debug' and 'trace')
$(info . # To see executed command lines, use LOG=debug)
$(info )
$(info . make JOBS=<n> # Run <n> parallel make jobs)
$(info . # Note that -jN does not work as expected!)
$(info )
$(info . make test TEST=<test> # Only run the given test or tests, e.g.)
$(info . # make test TEST="jdk_lang jdk_net")
$(info )
configure:
@$(SHELL) $(root_dir)/configure $(CONFIGURE_ARGS)
@echo ====================================================
@echo "Note: This is a non-recommended way of running configure."
@echo "Instead, run 'sh configure' in the top-level directory"
.PHONY: help configure
include ../../NewMakefile.gmk

View File

@@ -95,10 +95,32 @@ define add_native_source
$$($1_$2_OBJ) : $2
ifeq ($(COMPILER_TYPE),CC)
$$(call COMPILING_MSG,$2,$$($1_TARGET))
# The Sun studio compiler doesn't output the full path to the object file in the
# generated deps files. Fixing it with sed. If compiling assembly, don't try this.
ifeq ($(COMPILER_NAME)$$(filter %.s,$2),ossc)
$$($1_$2_COMP) $$($1_$2_FLAGS) $$($1_$2_DEP_FLAG) $$($1_$2_DEP).tmp $(CC_OUT_OPTION)$$($1_$2_OBJ) $2
$(SED) 's|^$$(@F):|$$@:|' $$($1_$2_DEP).tmp > $$($1_$2_DEP)
else
$$($1_$2_COMP) $$($1_$2_FLAGS) $$($1_$2_DEP_FLAG) $$($1_$2_DEP) $(CC_OUT_OPTION)$$($1_$2_OBJ) $2
endif
endif
# The Visual Studio compiler lacks a feature for generating make dependencies, but by
# setting -showIncludes, all included files are printed. These are filtered out and
# parsed into make dependences.
ifeq ($(COMPILER_TYPE),CL)
$$($1_$2_COMP) $$($1_$2_FLAGS) $$($1_$2_DEBUG_OUT_FLAGS) $(CC_OUT_OPTION)$$($1_$2_OBJ) $2
($$($1_$2_COMP) $$($1_$2_FLAGS) -showIncludes $$($1_$2_DEBUG_OUT_FLAGS) \
$(CC_OUT_OPTION)$$($1_$2_OBJ) $2 ; echo $$$$? > $$($1_$2_DEP).exitvalue) \
| $(TEE) $$($1_$2_DEP).raw | $(GREP) -v "^Note: including file:" \
&& exit `cat $$($1_$2_DEP).exitvalue`
$(RM) $$($1_$2_DEP).exitvalue
($(ECHO) $$@: \\ \
&& $(SED) -e '/^Note: including file:/!d' \
-e 's|Note: including file: *||' \
-e 's|\\|/|g' \
-e 's|^\([a-zA-Z]\):|/cygdrive/\1|g' \
-e '/$(subst /,\/,$(TOPDIR))/!d' \
-e 's|$$$$| \\|g' \
$$($1_$2_DEP).raw) > $$($1_$2_DEP)
endif
endif
endef
@@ -129,9 +151,9 @@ define SetupNativeCompilation
# CC the compiler to use, default is $(CC)
# LDEXE the linker to use for linking executables, default is $(LDEXE)
# OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
$(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
$(call LogSetupMacroEntry,SetupNativeCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25))
$(if $(26),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
$(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
$(call LogSetupMacroEntry,SetupNativeCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25),$(26))
$(if $(27),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
ifneq (,$$($1_BIN))
$$(error BIN has been replaced with OBJECT_DIR)
@@ -236,7 +258,7 @@ define SetupNativeCompilation
$$(foreach d,$$($1_SRC), $$(if $$(wildcard $$d),,$$(error SRC specified to SetupNativeCompilation $1 contains missing directory $$d)))
# Find all files in the source trees. Sort to remove duplicates.
$1_ALL_SRCS := $$(sort $$(shell $(FIND) $$($1_SRC) -type f))
$1_ALL_SRCS := $$(sort $$(call CacheFind,$$($1_SRC)))
# Extract the C/C++ files.
$1_EXCLUDE_FILES:=$$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_EXCLUDE_FILES)))
$1_INCLUDE_FILES:=$$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_INCLUDE_FILES)))
@@ -302,7 +324,12 @@ define SetupNativeCompilation
endif
ifneq (,$$($1_DEBUG_SYMBOLS))
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes)
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
ifdef OPENJDK
# Always add debug symbols
$1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
$1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
else
# Programs don't get the debug symbols added in the old build. It's not clear if
# this is intentional.
ifeq ($$($1_PROGRAM),)
@@ -311,6 +338,7 @@ define SetupNativeCompilation
endif
endif
endif
endif
ifeq ($$($1_CXXFLAGS),)
$1_CXXFLAGS:=$$($1_CFLAGS)
@@ -393,8 +421,10 @@ define SetupNativeCompilation
$1_EXTRA_LDFLAGS+="-implib:$$($1_OBJECT_DIR)/$$($1_LIBRARY).lib"
endif
$1_EXTRA_LDFLAGS_SUFFIX += $(GLOBAL_LDFLAGS_SUFFIX)
ifneq (,$$($1_DEBUG_SYMBOLS))
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes)
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
ifeq ($(OPENJDK_TARGET_OS), windows)
$1_EXTRA_LDFLAGS+="-pdb:$$($1_OBJECT_DIR)/$$($1_LIBRARY).pdb" \
"-map:$$($1_OBJECT_DIR)/$$($1_LIBRARY).map"
@@ -429,7 +459,7 @@ define SetupNativeCompilation
endif # Touch to not retrigger rule on rebuild
$(TOUCH) $$@
ifeq ($(ZIP_DEBUGINFO_FILES), 1)
ifeq ($(ZIP_DEBUGINFO_FILES), true)
$1 += $$($1_OUTPUT_DIR)/$$(LIBRARY_PREFIX)$$($1_LIBRARY).diz
ifeq ($(OPENJDK_TARGET_OS), windows)
@@ -472,7 +502,7 @@ define SetupNativeCompilation
ifneq (,$$($1_PROGRAM))
# A executable binary has been specified, setup the target for it.
ifneq (,$$($1_DEBUG_SYMBOLS))
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes)
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
ifeq ($(OPENJDK_TARGET_OS), windows)
$1_EXTRA_LDFLAGS+="-pdb:$$($1_OBJECT_DIR)/$$($1_PROGRAM).pdb" \
"-map:$$($1_OBJECT_DIR)/$$($1_PROGRAM).map"
@@ -507,7 +537,7 @@ define SetupNativeCompilation
endif
$(TOUCH) $$@
ifeq ($(ZIP_DEBUGINFO_FILES), 1)
ifeq ($(ZIP_DEBUGINFO_FILES), true)
$1 += $$($1_OUTPUT_DIR)/$$($1_PROGRAM).diz
ifeq ($(OPENJDK_TARGET_OS), windows)
@@ -531,6 +561,8 @@ define SetupNativeCompilation
endif
endif
$1_EXTRA_LDFLAGS_SUFFIX += $(GLOBAL_LDFLAGS_SUFFIX)
$$($1_TARGET) : $$($1_EXPECTED_OBJS) $$($1_RES) $$($1_GEN_MANIFEST)
$$(call LINKING_EXE_MSG,$$($1_BASENAME))
$$($1_LDEXE) $$($1_LDFLAGS) $$($1_EXTRA_LDFLAGS) $(EXE_OUT_OPTION)$$($1_TARGET) \
@@ -539,6 +571,12 @@ define SetupNativeCompilation
ifneq (,$$($1_GEN_MANIFEST))
$(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1
endif
# This only works if the openjdk_codesign identity is present on the system. Let
# silently fail otherwise.
ifneq (,$(CODESIGN))
ifneq (,$$($1_CODESIGN))
$(CODESIGN) -s openjdk_codesign $$@
endif
endif
endif
endef

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. 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

@@ -0,0 +1,123 @@
#
# Copyright (c) 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
##########################################################################################
#
# This Makefile, together with Tools.gmk, can be used to compile a set of
# gcc based cross compilation, portable, self contained packages, capable
# of building OpenJDK.
#
# In addition to the makefiles, access to Oracle Linux installation
# media is required. This has been tested against Oracle Enterprise Linux
# 5.5. Set variables RPM_DIR_x86_64 and RPM_DIR_i686 respectively to point
# to directory containing the RPMs.
#
# By default this Makefile will build crosstools for:
# * i686-unknown-linux-gnu
# * x86_64-unknown-linux-gnu
# The x86_64 version of the compilers will work in multi arch mode and will
# be able to compile 32bit binaries with the -m32 flag. This makes the
# explicit cross compiler for i686 somewhat redundant and is a known issue.
#
# To build the full set of crosstools, use a command line looking like this:
#
# make tars RPM_DIR_x86_64=/tmp/oel55-x86_64/Server/ RPM_DIR_i686=/tmp/oel55-i686/Server/
#
# To create a x86_64 package without the redundant i686 cross compiler, do
# like this:
#
# make tars platforms=x86_64-unknown-linux-gnu RPM_DIR_x86_64=/tmp/oel55-x86_64/Server/ RPM_DIR_i686=/tmp/oel55-i686/Server/
#
# Main makefile which iterates over all host and target platforms.
#
os := $(shell uname -o)
cpu := x86_64
#$(shell uname -p)
#
# This wrapper script can handle exactly these platforms
#
platforms := $(foreach p,x86_64 i686,$(p)-unknown-linux-gnu)
#platforms := $(foreach p,x86_64,$(p)-unknown-linux-gnu)
# Figure out what platform this is building on.
me := $(cpu)-$(if $(findstring Linux,$(os)),unknown-linux-gnu)
$(info Building on platform $(me))
all compile : $(platforms)
ifeq (,$(SKIP_ME))
$(foreach p,$(filter-out $(me),$(platforms)),$(eval $(p) : $$(me)))
endif
OUTPUT_ROOT = $(abspath ../../../build/devkit)
RESULT = $(OUTPUT_ROOT)/result
submakevars = HOST=$@ BUILD=$(me) \
RESULT=$(RESULT) PREFIX=$(RESULT)/$@ \
OUTPUT_ROOT=$(OUTPUT_ROOT)
$(platforms) :
@echo 'Building compilers for $@'
@echo 'Targets: $(platforms)'
for p in $@ $(filter-out $@,$(platforms)); do \
$(MAKE) -f Tools.gmk all $(submakevars) \
TARGET=$$p || exit 1 ; \
done
@echo 'Building ccache program for $@'
$(MAKE) -f Tools.gmk ccache $(submakevars) TARGET=$@
@echo 'All done"'
$(foreach a,i686 x86_64,$(eval $(a) : $(filter $(a)%,$(platforms))))
ia32 : i686
today := $(shell date +%Y%m%d)
define Mktar
$(1)_tar = $$(RESULT)/sdk-$(1)-$$(today).tar.gz
$$($(1)_tar) : PLATFORM = $(1)
TARFILES += $$($(1)_tar)
$$($(1)_tar) : $(1) $$(shell find $$(RESULT)/$(1))
endef
$(foreach p,$(platforms),$(eval $(call Mktar,$(p))))
tars : all $(TARFILES)
onlytars : $(TARFILES)
%.tar.gz :
@echo 'Creating compiler package $@'
cd $(RESULT)/$(PLATFORM) && tar -czf $@ *
touch $@
clean :
rm -rf build result
FORCE :
.PHONY : $(configs) $(platforms)

View File

@@ -0,0 +1,473 @@
#
# Copyright (c) 2013, Oracle and/or its affiliates. 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. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
##########################################################################################
#
# Workhorse makefile for creating ONE cross compiler
# Needs either to be from BUILD -> BUILD OR have
# BUILD -> HOST prebuilt
#
# NOTE: There is a bug here. We don't limit the
# PATH when building BUILD -> BUILD, which means that
# if you configure after you've once build the BUILD->BUILD
# compiler THAT one will be picked up as the compiler for itself.
# This is not so great, especially if you did a partial delete
# of the target tree.
#
# Fix this...
#
$(info TARGET=$(TARGET))
$(info HOST=$(HOST))
$(info BUILD=$(BUILD))
ARCH := $(word 1,$(subst -, ,$(TARGET)))
##########################################################################################
# Define external dependencies
# Latest that could be made to work.
gcc_ver := gcc-4.7.3
binutils_ver := binutils-2.22
ccache_ver := ccache-3.1.9
mpfr_ver := mpfr-3.0.1
gmp_ver := gmp-4.3.2
mpc_ver := mpc-1.0.1
GCC := http://ftp.gnu.org/pub/gnu/gcc/$(gcc_ver)/$(gcc_ver).tar.bz2
BINUTILS := http://ftp.gnu.org/pub/gnu/binutils/$(binutils_ver).tar.bz2
CCACHE := http://samba.org/ftp/ccache/$(ccache_ver).tar.gz
MPFR := http://www.mpfr.org/${mpfr_ver}/${mpfr_ver}.tar.bz2
GMP := http://ftp.gnu.org/pub/gnu/gmp/${gmp_ver}.tar.bz2
MPC := http://www.multiprecision.org/mpc/download/${mpc_ver}.tar.gz
# RPMs in OEL5.5
RPM_LIST := \
kernel-headers \
glibc-2 glibc-headers glibc-devel \
cups-libs cups-devel \
libX11 libX11-devel \
xorg-x11-proto-devel \
alsa-lib alsa-lib-devel \
libXext libXext-devel \
libXtst libXtst-devel \
libXrender libXrender-devel \
freetype freetype-devel \
libXt libXt-devel \
libSM libSM-devel \
libICE libICE-devel \
libXi libXi-devel \
libXdmcp libXdmcp-devel \
libXau libXau-devel \
libgcc
ifeq ($(ARCH),x86_64)
RPM_DIR ?= $(RPM_DIR_x86_64)
RPM_ARCHS := x86_64
ifeq ($(BUILD),$(HOST))
ifeq ($(TARGET),$(HOST))
# When building the native compiler for x86_64, enable mixed mode.
RPM_ARCHS += i386 i686
endif
endif
else
RPM_DIR ?= $(RPM_DIR_i686)
RPM_ARCHS := i386 i686
endif
# Sort to remove duplicates
RPM_FILE_LIST := $(sort $(foreach a,$(RPM_ARCHS),$(wildcard $(patsubst %,$(RPM_DIR)/%*$a.rpm,$(RPM_LIST)))))
ifeq ($(RPM_FILE_LIST),)
$(error Found no RPMs, RPM_DIR must point to list of directories to search for RPMs)
endif
##########################################################################################
# Define common directories and files
# Ensure we have 32-bit libs also for x64. We enable mixed-mode.
ifeq (x86_64,$(ARCH))
LIBDIRS := lib64 lib
CFLAGS_lib := -m32
else
LIBDIRS := lib
endif
# Define directories
RESULT := $(OUTPUT_ROOT)/result
BUILDDIR := $(OUTPUT_ROOT)/$(HOST)/$(TARGET)
PREFIX := $(RESULT)/$(HOST)
TARGETDIR := $(PREFIX)/$(TARGET)
SYSROOT := $(TARGETDIR)/sys-root
DOWNLOAD := $(OUTPUT_ROOT)/download
SRCDIR := $(OUTPUT_ROOT)/src
# Marker file for unpacking rpms
rpms := $(SYSROOT)/rpms_unpacked
# Need to patch libs that are linker scripts to use non-absolute paths
libs := $(SYSROOT)/libs_patched
##########################################################################################
# Unpack source packages
# Generate downloading + unpacking of sources.
define Download
$(1)_DIR = $(abspath $(SRCDIR)/$(basename $(basename $(notdir $($(1))))))
$(1)_CFG = $$($(1)_DIR)/configure
$(1)_FILE = $(DOWNLOAD)/$(notdir $($(1)))
$$($(1)_CFG) : $$($(1)_FILE)
mkdir -p $$(SRCDIR)
tar -C $$(SRCDIR) -x$$(if $$(findstring .gz, $$<),z,j)f $$<
$$(foreach p,$$(abspath $$(wildcard $$(notdir $$($(1)_DIR)).patch)), \
echo PATCHING $$(p) ; \
patch -d $$($(1)_DIR) -p1 -i $$(p) ; \
)
touch $$@
$$($(1)_FILE) :
wget -P $(DOWNLOAD) $$($(1))
endef
# Download and unpack all source packages
$(foreach p,GCC BINUTILS CCACHE MPFR GMP MPC,$(eval $(call Download,$(p))))
##########################################################################################
# Unpack RPMS
# Note. For building linux you should install rpm2cpio.
define unrpm
$(SYSROOT)/$(notdir $(1)).unpacked \
: $(1)
$$(rpms) : $(SYSROOT)/$(notdir $(1)).unpacked
endef
%.unpacked :
$(info Unpacking target rpms and libraries from $<)
@(mkdir -p $(@D); \
cd $(@D); \
rpm2cpio $< | \
cpio --extract --make-directories \
-f \
"./usr/share/doc/*" \
"./usr/share/man/*" \
"./usr/X11R6/man/*" \
"*/X11/locale/*" \
|| die ; )
touch $@
$(foreach p,$(RPM_FILE_LIST),$(eval $(call unrpm,$(p))))
##########################################################################################
# Note: MUST create a <sys-root>/usr/lib even if not really needed.
# gcc will use a path relative to it to resolve lib64. (x86_64).
# we're creating multi-lib compiler with 32bit libc as well, so we should
# have it anyway, but just to make sure...
# Patch libc.so and libpthread.so to force linking against libraries in sysroot
# and not the ones installed on the build machine.
$(libs) : $(rpms)
@echo Patching libc and pthreads
@(for f in `find $(SYSROOT) -name libc.so -o -name libpthread.so`; do \
(cat $$f | sed -e 's|/usr/lib64/||g' \
-e 's|/usr/lib/||g' \
-e 's|/lib64/||g' \
-e 's|/lib/||g' ) > $$f.tmp ; \
mv $$f.tmp $$f ; \
done)
@mkdir -p $(SYSROOT)/usr/lib
@touch $@
##########################################################################################
# Define marker files for each source package to be compiled
$(foreach t,binutils mpfr gmp mpc gcc ccache,$(eval $(t) = $(TARGETDIR)/$($(t)_ver).done))
##########################################################################################
# Default base config
CONFIG = --target=$(TARGET) \
--host=$(HOST) --build=$(BUILD) \
--prefix=$(PREFIX)
PATHEXT = $(RESULT)/$(BUILD)/bin:
PATHPRE = PATH=$(PATHEXT)$(PATH)
BUILDPAR = -j16
# Default commands to when making
MAKECMD =
INSTALLCMD = install
declare_tools = CC$(1)=$(2)gcc LD$(1)=$(2)ld AR$(1)=$(2)ar AS$(1)=$(2)as RANLIB$(1)=$(2)ranlib CXX$(1)=$(2)g++ OBJDUMP$(1)=$(2)objdump
ifeq ($(HOST),$(BUILD))
ifeq ($(HOST),$(TARGET))
TOOLS = $(call declare_tools,_FOR_TARGET,)
endif
endif
TOOLS ?= $(call declare_tools,_FOR_TARGET,$(TARGET)-)
##########################################################################################
# Create a TARGET bfd + libiberty only.
# Configure one or two times depending on mulitlib arch.
# If multilib, the second should be 32-bit, and we resolve
# CFLAG_<name> to most likely -m32.
define mk_bfd
$$(info Libs for $(1))
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \
: CFLAGS += $$(CFLAGS_$(1))
$$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile \
: LIBDIRS = --libdir=$(TARGETDIR)/$(1)
bfdlib += $$(TARGETDIR)/$$(binutils_ver)-$(subst /,-,$(1)).done
bfdmakes += $$(BUILDDIR)/$$(binutils_ver)-$(subst /,-,$(1))/Makefile
endef
# Create one set of bfds etc for each multilib arch
$(foreach l,$(LIBDIRS),$(eval $(call mk_bfd,$(l))))
# Only build these two libs.
$(bfdlib) : MAKECMD = all-libiberty all-bfd
$(bfdlib) : INSTALLCMD = install-libiberty install-bfd
# Building targets libbfd + libiberty. HOST==TARGET, i.e not
# for a cross env.
$(bfdmakes) : CONFIG = --target=$(TARGET) \
--host=$(TARGET) --build=$(BUILD) \
--prefix=$(TARGETDIR) \
--with-sysroot=$(SYSROOT) \
$(LIBDIRS)
$(bfdmakes) : TOOLS = $(call declare_tools,_FOR_TARGET,$(TARGET)-) $(call declare_tools,,$(TARGET)-)
##########################################################################################
$(gcc) \
$(binutils) \
$(gmp) \
$(mpfr) \
$(mpc) \
$(bfdmakes) \
$(ccache) : ENVS += $(TOOLS)
# libdir to work around hateful bfd stuff installing into wrong dirs...
# ensure we have 64 bit bfd support in the HOST library. I.e our
# compiler on i686 will know 64 bit symbols, BUT later
# we build just the libs again for TARGET, then with whatever the arch
# wants.
$(BUILDDIR)/$(binutils_ver)/Makefile : CONFIG += --enable-64-bit-bfd --libdir=$(PREFIX)/$(word 1,$(LIBDIRS))
# Makefile creation. Simply run configure in build dir.
$(bfdmakes) \
$(BUILDDIR)/$(binutils_ver)/Makefile \
: $(BINUTILS_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
$(BINUTILS_CFG) \
$(CONFIG) \
--with-sysroot=$(SYSROOT) \
--disable-nls \
--program-prefix=$(TARGET)- \
--enable-multilib \
) > $(@D)/log.config 2>&1
@echo 'done'
$(BUILDDIR)/$(mpfr_ver)/Makefile \
: $(MPFR_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
$(MPFR_CFG) \
$(CONFIG) \
--program-prefix=$(TARGET)- \
--enable-shared=no \
--with-gmp=$(PREFIX) \
) > $(@D)/log.config 2>&1
@echo 'done'
$(BUILDDIR)/$(gmp_ver)/Makefile \
: $(GMP_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
$(GMP_CFG) \
--host=$(HOST) --build=$(BUILD) \
--prefix=$(PREFIX) \
--disable-nls \
--program-prefix=$(TARGET)- \
--enable-shared=no \
--with-mpfr=$(PREFIX) \
) > $(@D)/log.config 2>&1
@echo 'done'
$(BUILDDIR)/$(mpc_ver)/Makefile \
: $(MPC_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) CFLAGS="$(CFLAGS)" \
$(MPC_CFG) \
$(CONFIG) \
--program-prefix=$(TARGET)- \
--enable-shared=no \
--with-mpfr=$(PREFIX) \
--with-gmp=$(PREFIX) \
) > $(@D)/log.config 2>&1
@echo 'done'
# Only valid if glibc target -> linux
# proper destructor handling for c++
ifneq (,$(findstring linux,$(TARGET)))
$(BUILDDIR)/$(gcc_ver)/Makefile : CONFIG += --enable-__cxa_atexit
endif
# Want:
# c,c++
# shared libs
# multilib (-m32/-m64 on x64)
# skip native language.
# and link and assemble with the binutils we created
# earlier, so --with-gnu*
$(BUILDDIR)/$(gcc_ver)/Makefile \
: $(GCC_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
mkdir -p $(@D)
( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) $(GCC_CFG) $(EXTRA_CFLAGS) \
$(CONFIG) \
--with-sysroot=$(SYSROOT) \
--enable-languages=c,c++ \
--enable-shared \
--enable-multilib \
--disable-nls \
--with-gnu-as \
--with-gnu-ld \
--with-mpfr=$(PREFIX) \
--with-gmp=$(PREFIX) \
--with-mpc=$(PREFIX) \
) > $(@D)/log.config 2>&1
@echo 'done'
# need binutils for gcc
$(gcc) : $(binutils)
# as of 4.3 or so need these for doing config
$(BUILDDIR)/$(gcc_ver)/Makefile : $(gmp) $(mpfr) $(mpc)
$(mpfr) : $(gmp)
$(mpc) : $(gmp) $(mpfr)
##########################################################################################
# very straightforward. just build a ccache. it is only for host.
$(BUILDDIR)/$(ccache_ver)/Makefile \
: $(CCACHE_CFG)
$(info Configuring $@. Log in $(@D)/log.config)
@mkdir -p $(@D)
@( \
cd $(@D) ; \
$(PATHPRE) $(ENVS) $(CCACHE_CFG) \
$(CONFIG) \
) > $(@D)/log.config 2>&1
@echo 'done'
gccpatch = $(TARGETDIR)/gcc-patched
##########################################################################################
# For some reason cpp is not created as a target-compiler
ifeq ($(HOST),$(TARGET))
$(gccpatch) : $(gcc) link_libs
@echo -n 'Creating compiler symlinks...'
@for f in cpp; do \
if [ ! -e $(PREFIX)/bin/$(TARGET)-$$f ];\
then \
cd $(PREFIX)/bin && \
ln -s $$f $(TARGET)-$$f ; \
fi \
done
@touch $@
@echo 'done'
##########################################################################################
# Ugly at best. Seems that when we compile host->host compiler, that are NOT
# the BUILD compiler, the result will not try searching for libs in package root.
# "Solve" this by create links from the target libdirs to where they are.
link_libs:
@echo -n 'Creating library symlinks...'
@$(foreach l,$(LIBDIRS), \
for f in `cd $(PREFIX)/$(l) && ls`; do \
if [ ! -e $(TARGETDIR)/$(l)/$$f ]; then \
mkdir -p $(TARGETDIR)/$(l) && \
cd $(TARGETDIR)/$(l)/ && \
ln -s $(if $(findstring /,$(l)),../,)../../$(l)/$$f $$f; \
fi \
done;)
@echo 'done'
else
$(gccpatch) :
@echo 'done'
endif
##########################################################################################
# Build in two steps.
# make <default>
# make install.
# Use path to our build hosts cross tools
# Always need to build cross tools for build host self.
$(TARGETDIR)/%.done : $(BUILDDIR)/%/Makefile
$(info Building $(basename $@). Log in $(<D)/log.build)
$(PATHPRE) $(ENVS) $(MAKE) $(BUILDPAR) -f $< -C $(<D) $(MAKECMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.build 2>&1
@echo -n 'installing...'
$(PATHPRE) $(MAKE) $(INSTALLPAR) -f $< -C $(<D) $(INSTALLCMD) $(MAKECMD.$(notdir $@)) > $(<D)/log.install 2>&1
@touch $@
@echo 'done'
##########################################################################################
bfdlib : $(bfdlib)
binutils : $(binutils)
rpms : $(rpms)
libs : $(libs)
sysroot : rpms libs
gcc : sysroot $(gcc) $(gccpatch)
all : binutils gcc bfdlib
# this is only built for host. so separate.
ccache : $(ccache)
.PHONY : gcc all binutils bfdlib link_libs rpms libs sysroot

View File

@@ -127,15 +127,22 @@ CORE_PKGS = \
java.sql \
java.text \
java.text.spi \
java.time \
java.time.chrono \
java.time.format \
java.time.temporal \
java.time.zone \
java.util \
java.util.concurrent \
java.util.concurrent.atomic \
java.util.concurrent.locks \
java.util.function \
java.util.jar \
java.util.logging \
java.util.prefs \
java.util.regex \
java.util.spi \
java.util.stream \
java.util.zip \
javax.accessibility \
javax.activation \

View File

@@ -1,4 +1,4 @@
# Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 2013, Oracle and/or its affiliates. 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
@@ -32,8 +32,6 @@ include MakeBase.gmk
# Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
#
CLASSPATH_SEPARATOR = :
DOCSDIR=$(OUTPUT_ROOT)/docs
TEMPDIR=$(OUTPUT_ROOT)/docstemp
@@ -48,19 +46,11 @@ HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
BUILD_NUMBER=$(JDK_BUILD_NUMBER)
BOOT_JAVA_CMD=$(JAVA)
# Langtools
JAVAC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javac.jar
JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
DOCLETS_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/doclets.jar
JAVADOC_CMD = $(BOOT_JAVA_CMD) \
JAVADOC_CMD = $(JAVA) \
-Xmx1024m \
-Djava.awt.headless=true \
"-Xbootclasspath/p:$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)$(CLASSPATH_SEPARATOR)$(DOCLETS_JAR)" \
-jar $(JAVADOC_JAR)
JAVADOC_CMD = javadoc
$(NEW_JAVADOC) \
-bootclasspath $(JDK_OUTPUTDIR)/classes
# Copyright year for beginning of Java and some of the apis
# (Needed when creating the javadocs)
@@ -113,7 +103,8 @@ DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
# Url to copyright html file
COPYRIGHT_URL-7 = $(DOCSDIR_URL)/legal/cpyr.html
COPYRIGHT_URL-8 = $(DOCSDIR_URL)/legal/cpyr.html
# This isn't added in old build yet.
#COPYRIGHT_URL-8 = $(DOCSDIR_URL)/legal/cpyr.html
COPYRIGHT_URL = $(COPYRIGHT_URL-$(JDK_MINOR_VERSION))
# Url to bug filing site
@@ -125,7 +116,8 @@ BUG_SUBMIT_LINE = <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
# Url to devdocs page
# Was: http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html
DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
DEV_DOCS_URL-8 = http://download.oracle.com/javase/7/docs/index.html
# This isn't added in old build yet.
#DEV_DOCS_URL-8 = http://download.oracle.com/javase/7/docs/index.html
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
DOCS_BASE_URL = http://download.oracle.com/javase/7/docs
@@ -140,11 +132,12 @@ $(FULL_COMPANY_NAME) in the US and other countries.
# List of all possible directories for javadoc to look for sources
# NOTE: Quotes are required around sourcepath argument only on Windows.
# Otherwise, you get "No packages or classes specified." due
# to $(CLASSPATH_SEPARATOR) being interpreted as an end of
# to $(PATH_SEP) being interpreted as an end of
# command (newline or shell ; character)
ALL_SOURCE_DIRS = $(JDK_IMPSRC) \
ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \
$(JDK_IMPSRC) \
$(JDK_GENSRC) \
$(JDK_SHARE_CLASSES) \
$(JDK_OUTPUTDIR)/gendocsrc_rmic \
$(JDK_TOPDIR)/src/solaris/classes \
$(JDK_TOPDIR)/src/windows/classes \
$(JDK_SHARE_SRC)/doc/stub
@@ -156,7 +149,7 @@ ALL_EXISTING_SOURCE_DIRS := $(wildcard $(ALL_SOURCE_DIRS))
EMPTY:=
SPACE:= $(EMPTY) $(EMPTY)
RELEASEDOCS_SOURCEPATH = \
$(subst $(SPACE),$(CLASSPATH_SEPARATOR),$(strip $(ALL_SOURCE_DIRS)))
$(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
define prep-target
$(MKDIR) -p $(@D)
@@ -273,6 +266,8 @@ COMMON_JAVADOCFLAGS = \
-quiet \
-use \
-keywords \
-Xdoclint:none \
-Xprofilespath $(JDK_TOPDIR)/makefiles/profile-rtjar-includes.txt \
$(ADDITIONAL_JAVADOCFLAGS)
ifdef OPENJDK
@@ -395,6 +390,17 @@ $(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
$(call OptionPair,-tag,specdefault:X) ; \
$(call OptionPair,-tag,Note:X) ; \
$(call OptionPair,-tag,ToDo:X) ; \
$(call OptionPair,-tag,apiNote:a:API Note:) ; \
$(call OptionPair,-tag,implSpec:a:Implementation Requirements:) ; \
$(call OptionPair,-tag,implNote:a:Implementation Note:) ; \
$(call OptionPair,-tag,param) ; \
$(call OptionPair,-tag,return) ; \
$(call OptionPair,-tag,throws) ; \
$(call OptionPair,-tag,since) ; \
$(call OptionPair,-tag,version) ; \
$(call OptionPair,-tag,serialData) ; \
$(call OptionPair,-tag,factory) ; \
$(call OptionPair,-tag,see) ; \
$(call OptionPair,-tag,$(TAG_JLS)) ; \
$(call OptionOnly,-splitIndex) ; \
$(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
@@ -440,7 +446,7 @@ docletapidocs: $(DOCLETAPI_INDEX_FILE)
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE)
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -481,7 +487,7 @@ TAGLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_Y
TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp
# The index.html, options, and packages files
TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/com/sun/tools/doclets/Taglet.html
TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/index.html
TAGLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/tagletapi.options
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
@@ -491,7 +497,7 @@ tagletapidocs: $(TAGLETAPI_INDEX_FILE)
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE)
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(RM) -r $(TAGLETAPI_TEMPDIR)
$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
@@ -517,9 +523,7 @@ $(TAGLETAPI_OPTIONS_FILE):
# Create a file with the package names in it
$(TAGLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TAGLETAPI_PKGS))
$(prep-target)
$(call PackageFilter,$(TAGLETAPI_PKGS))
$(GREP) "$(TAGLETAPI_FILE)" $@ > $@.tmp
$(MV) $@.tmp $@
@($(ECHO) "$(JDK_IMPSRC)/$(TAGLETAPI_FILE)" ) > $@
#############################################################
#
@@ -549,7 +553,7 @@ domapidocs: $(DOMAPI_INDEX_FILE)
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE)
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -611,7 +615,7 @@ jdidocs: $(JDI_INDEX_FILE)
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE)
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -698,7 +702,7 @@ jaasdocs: $(JAAS_INDEX_FILE)
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE)
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -750,7 +754,7 @@ jgssdocs: $(JGSS_INDEX_FILE)
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE)
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -802,7 +806,7 @@ smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE)
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -852,7 +856,7 @@ httpserverdocs: $(HTTPSERVER_INDEX_HTML)
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE)
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -887,7 +891,7 @@ ALL_OTHER_TARGETS += mgmtdocs
MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
JVM_MIB_SRC := $(CLOSED_SRC)/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong>
@@ -906,7 +910,7 @@ mgmtdocs: $(MGMT_INDEX_FILE)
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE)
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) coredocs
$(prep-javadoc)
@if [ -f $(JVM_MIB_SRC) ] ; then \
$(ECHO) "$(CP) $(JVM_MIB_SRC) $(@D)/.."; \
@@ -963,7 +967,7 @@ attachdocs: $(ATTACH_INDEX_HTML)
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE)
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -1013,7 +1017,7 @@ jconsoledocs: $(JCONSOLE_INDEX_HTML)
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE)
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -1065,7 +1069,7 @@ treeapidocs: $(TREEAPI_INDEX_HTML)
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE)
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \
@@ -1116,7 +1120,7 @@ sctpdocs: $(SCTPAPI_INDEX_HTML)
$(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
# Run javadoc if the index file is out of date or missing
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE)
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) coredocs
$(prep-javadoc)
$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
$(JAVADOC_CMD) -d $(@D) \

View File

@@ -78,8 +78,10 @@ ATTACH_PKGS = com.sun.tools.attach \
JCONSOLE_PKGS = com.sun.tools.jconsole
TREEAPI_PKGS = com.sun.source.tree \
com.sun.source.util
TREEAPI_PKGS = com.sun.source.doctree \
com.sun.source.tree \
com.sun.source.util \
jdk
SMARTCARDIO_PKGS = javax.smartcardio
@@ -92,6 +94,8 @@ APPLE_EXT_PKGS = com.apple.concurrent \
com.apple.eio
endif
JDK_PKGS = jdk
# non-core packages in rt.jar
NON_CORE_PKGS = $(DOMAPI_PKGS) \
$(MGMT_PKGS) \
@@ -102,5 +106,5 @@ NON_CORE_PKGS = $(DOMAPI_PKGS) \
$(HTTPSERVER_PKGS) \
$(SMARTCARDIO_PKGS) \
$(SCTPAPI_PKGS) \
$(APPLE_EXT_PKGS)
$(APPLE_EXT_PKGS) \
$(JDK_PKGS)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.cnd.makeproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/make-project/1">
<name>OpenJDK (Native)</name>
<c-extensions>c,m</c-extensions>
<cpp-extensions>cc,cpp</cpp-extensions>
<header-extensions>ad,h,hpp,in_out</header-extensions>
<sourceEncoding>UTF-8</sourceEncoding>
<make-dep-projects/>
<sourceRootList>
<sourceRootElem>../..</sourceRootElem>
</sourceRootList>
<confList>
<confElem>
<name>Mac_64</name>
<type>0</type>
</confElem>
<confElem>
<name>Linux_64</name>
<type>0</type>
</confElem>
<confElem>
<name>Solaris_64</name>
<type>0</type>
</confElem>
</confList>
</data>
</configuration>
</project>

View File

@@ -29,6 +29,29 @@
#include <string.h>
#include <malloc.h>
void report_error()
{
LPVOID lpMsgBuf;
DWORD dw = GetLastError();
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
0,
NULL);
fprintf(stderr,
"Could not start process! Failed with error %d: %s\n",
dw, lpMsgBuf);
LocalFree(lpMsgBuf);
}
/*
* Test if pos points to /cygdrive/_/ where _ can
* be any character.
@@ -256,7 +279,7 @@ int main(int argc, char **argv)
DWORD exitCode;
if (argc<3 || argv[1][0] != '-' || (argv[1][1] != 'c' && argv[1][1] != 'm')) {
fprintf(stderr, "Usage: fixpath -c|m<path@path@...> /cygdrive/c/WINDOWS/notepad.exe /cygdrive/c/x/test.txt");
fprintf(stderr, "Usage: fixpath -c|m<path@path@...> /cygdrive/c/WINDOWS/notepad.exe /cygdrive/c/x/test.txt\n");
exit(0);
}
@@ -308,11 +331,10 @@ int main(int argc, char **argv)
0,
&si,
&pi);
if(!rc)
{
//Could not start process;
fprintf(stderr, "Could not start process!\n");
exit(-1);
if(!rc) {
// Could not start process for some reason. Try to report why:
report_error();
exit(rc);
}
WaitForSingleObject(pi.hProcess,INFINITE);

View File

@@ -186,3 +186,33 @@ d54dc53e223ed9ce7d5f4d2cd02ad9d5def3c2db jdk8-b59
08afb9c6f44f11c3595b01fd0985db64b29834dd jdk8-b62
6ccbf67b68bfed1ab9c44ab8748a5bdc7df33506 jdk8-b63
54d599a5b4aad83c235d590652fc81f41c2824fb jdk8-b64
5132f7900a8f0c30c3ca7f7a32f9433f4fee7745 jdk8-b65
65771ad1ca557ca26e4979d4dc633cf685435cb8 jdk8-b66
394515ad2a55d4d54df990b36065505d3e7a3cbb jdk8-b67
82000531feaa7baef76b6406099e5cd88943d635 jdk8-b68
22ddcac208a8dea894a16887d04f3ca4d3c5d267 jdk8-b69
603cceb495c8133d47b26a7502d51c7d8a67d76b jdk8-b70
8171d23e914d758836527b80b06debcfdb718f2d jdk8-b71
cb40427f47145b01b7e53c3e02b38ff7625efbda jdk8-b72
191afde59e7be0e1a1d76d06f2a32ff17444f0ec jdk8-b73
2132845cf5f717ff5c240a2431c0c0e03e66e3a5 jdk8-b74
d4e68ce17795601017ac2f952baad7272942c36e jdk8-b75
58be6ca3c0603882a1ec478724e337aac85e0da0 jdk8-b76
35684a40c5845782324dbcc9ac8969528020ff61 jdk8-b77
27d6368ae8ba570c31c2f0e696d39c99fa2f4538 jdk8-b78
e41fb1aa0329767b2737303c994e38bede1baa07 jdk8-b79
5f3d4a6bdd027a1631d97e2dfff63fd5e46987a4 jdk8-b80
2a00aeeb466b9dee22508f6261f63b70f9c696fe jdk8-b81
48e1bc77004d9af575b733c04637b98fd17603c2 jdk8-b82
a45bb25a67c7517b45f00c9682e317f46fecbba9 jdk8-b83
928f8b888deb785cbd7bbd5f951cd6880f11f14e jdk8-b84
9583a6431596bac1959d2d8828f5ea217843dd12 jdk8-b85
44a8ce4a759f2668ff434661a93ff462ea472478 jdk8-b86
f1709874d55a06bc3d5dfa02dbcdfbc59f4cba34 jdk8-b87
4e3a881ebb1ee96ce0872508b0066d74f310dbfa jdk8-b88
fe4150590ee597f4e125fea950aa3b352622cc2d jdk8-b89
c8286839d0df04aba819ec4bef12b86babccf30e jdk8-b90
8f7ffb296385f85a4a6d53f9f2d4a7b13a8fa1ff jdk8-b91
717aa26f8e0a1c0e768aebb3a763aca56db0c83e jdk8-b92
8dc9d7ccbb2d77fd89bc321bb02e67c152aca257 jdk8-b93
22f5d7f261d9d61a953d2d9a53f2e9ce0ca361d1 jdk8-b94

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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
@@ -29,10 +29,6 @@ com_sun_corba_se_impl_orbutil_java = \
com/sun/corba/se/impl/orbutil/DenseIntMapImpl.java \
com/sun/corba/se/impl/orbutil/GetPropertyAction.java \
com/sun/corba/se/impl/orbutil/HexOutputStream.java \
com/sun/corba/se/impl/orbutil/IIOPInputStream_1_3.java \
com/sun/corba/se/impl/orbutil/IIOPInputStream_1_3_1.java \
com/sun/corba/se/impl/orbutil/IIOPOutputStream_1_3.java \
com/sun/corba/se/impl/orbutil/IIOPOutputStream_1_3_1.java \
com/sun/corba/se/impl/orbutil/LegacyHookGetFields.java \
com/sun/corba/se/impl/orbutil/LegacyHookPutFields.java \
com/sun/corba/se/impl/orbutil/LogKeywords.java \
@@ -45,19 +41,11 @@ com_sun_corba_se_impl_orbutil_java = \
com/sun/corba/se/impl/orbutil/ORBUtility.java \
com/sun/corba/se/impl/orbutil/ORBClassLoader.java \
com/sun/corba/se/impl/orbutil/RepIdDelegator.java \
com/sun/corba/se/impl/orbutil/RepIdDelegator_1_3.java \
com/sun/corba/se/impl/orbutil/RepIdDelegator_1_3_1.java \
com/sun/corba/se/impl/orbutil/RepositoryIdCache_1_3.java \
com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java \
com/sun/corba/se/impl/orbutil/RepositoryIdFactory.java \
com/sun/corba/se/impl/orbutil/RepositoryIdStrings.java \
com/sun/corba/se/impl/orbutil/RepositoryIdUtility.java \
com/sun/corba/se/impl/orbutil/RepositoryIdInterface.java \
com/sun/corba/se/impl/orbutil/RepositoryIdCache_1_3_1.java \
com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java \
com/sun/corba/se/impl/orbutil/StackImpl.java \
com/sun/corba/se/impl/orbutil/ValueHandlerImpl_1_3_1.java \
com/sun/corba/se/impl/orbutil/ValueHandlerImpl_1_3.java \
com/sun/corba/se/impl/orbutil/closure/Future.java \
com/sun/corba/se/impl/orbutil/closure/Constant.java \
com/sun/corba/se/impl/orbutil/concurrent/Sync.java \

View File

@@ -35,8 +35,6 @@ include MakeBase.gmk
include JavaCompilation.gmk
include IdlCompilation.gmk
JAVAC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \
-jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
# The Corba sources are old and generates a LOT of warnings.
# Disable these using Xlint, until someone cares to fix them.
DISABLE_CORBA_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,-cast,-rawtypes,-static,-dep-ann
@@ -46,7 +44,7 @@ DISABLE_CORBA_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,
# Thus we force the target bytecode to the boot jdk bytecode.
$(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
JVM:=$(JAVA),\
JAVAC:=$(JAVAC_JARS),\
JAVAC:=$(NEW_JAVAC),\
FLAGS:=$(BOOT_JDK_SOURCETARGET) -bootclasspath $(BOOT_RTJAR) $(DISABLE_CORBA_WARNINGS),\
SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
@@ -56,7 +54,7 @@ $(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
# cannot necessarily be run with the boot jdk.
$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE,\
JVM:=$(JAVA),\
JAVAC:=$(JAVAC_JARS),\
JAVAC:=$(NEW_JAVAC),\
FLAGS:=-cp $(BOOT_TOOLSJAR) -XDignore.symbol.file=true $(DISABLE_CORBA_WARNINGS),\
SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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
@@ -322,9 +322,9 @@ class ServerCallback extends
com.sun.corba.se.spi.activation._ServerImplBase
{
private ORB orb;
private Method installMethod ;
private Method uninstallMethod ;
private Method shutdownMethod ;
private transient Method installMethod ;
private transient Method uninstallMethod ;
private transient Method shutdownMethod ;
private Object methodArgs[] ;
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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
@@ -1218,7 +1218,7 @@ public class AnyImpl extends Any
// See bug 4391648 for more info about the tcORB in this
// case.
RepositoryIdStrings repStrs
= RepositoryIdFactory.getRepIdStringsFactory(tcORB);
= RepositoryIdFactory.getRepIdStringsFactory();
// Assertion: c instanceof Serializable?
@@ -1251,7 +1251,7 @@ public class AnyImpl extends Any
// Anything else
// We know that this is a TypeCodeImpl since it is our ORB
classTC = (TypeCodeImpl)ValueUtility.createTypeCodeForClass(
tcORB, c, ORBUtility.createValueHandler(tcORB));
tcORB, c, ORBUtility.createValueHandler());
// Intruct classTC to store its buffer
classTC.setCaching(true);
// Update the cache

View File

@@ -2189,10 +2189,7 @@ public final class TypeCodeImpl extends TypeCode
if (labelIndex == _unionLabels.length) {
// check if label has not been found
if (_defaultIndex == -1)
// throw exception if default was not expected
throw wrapper.unexpectedUnionDefault() ;
else
if (_defaultIndex != -1)
// must be of the default branch type
_memberTypes[_defaultIndex].copy(src, dst);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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
@@ -269,8 +269,8 @@ public class CDRInputStream_1_0 extends CDRInputStreamBase
private final void createRepositoryIdHandlers()
{
repIdUtil = RepositoryIdFactory.getRepIdUtility(orb);
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory(orb);
repIdUtil = RepositoryIdFactory.getRepIdUtility();
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
}
public GIOPVersion getGIOPVersion() {
@@ -564,9 +564,6 @@ public class CDRInputStream_1_0 extends CDRInputStreamBase
checkForNegativeLength(len);
if (orb != null && ORBUtility.isLegacyORB((ORB)orb))
return legacyReadString(len);
else
return internalReadString(len);
}
@@ -588,54 +585,6 @@ public class CDRInputStream_1_0 extends CDRInputStreamBase
return new String(result, 0, getCharConverter().getNumChars());
}
private final String legacyReadString(int len) {
//
// Workaround for ORBs which send string lengths of
// zero to mean empty string.
//
//
// IMPORTANT: Do not replace 'new String("")' with "", it may result
// in a Serialization bug (See serialization.zerolengthstring) and
// bug id: 4728756 for details
if (len == 0)
return new String("");
len--;
char[] c = new char[len];
int n = 0;
while (n < len) {
int avail;
int bytes;
int wanted;
avail = bbwi.buflen - bbwi.position();
if (avail <= 0) {
grow(1, 1);
avail = bbwi.buflen - bbwi.position();
}
wanted = len - n;
bytes = (wanted < avail) ? wanted : avail;
// Microbenchmarks are showing a loop of ByteBuffer.get(int) being
// faster than ByteBuffer.get(byte[], int, int).
for (int i=0; i<bytes; i++) {
c[n+i] = (char) (bbwi.byteBuffer.get(bbwi.position()+i) & 0xFF);
}
bbwi.position(bbwi.position() + bytes);
n += bytes;
}
//
// Skip past terminating null byte
//
if (bbwi.position() + 1 > bbwi.buflen)
alignAndCheck(1, 1);
bbwi.position(bbwi.position() + 1);
return new String(c);
}
public final String read_string() {
return readStringOrIndirection(false);
}
@@ -1045,7 +994,7 @@ public class CDRInputStream_1_0 extends CDRInputStreamBase
try {
if (valueHandler == null)
valueHandler = ORBUtility.createValueHandler(orb);
valueHandler = ORBUtility.createValueHandler();
value = valueHandler.readValue(parent,
indirection,

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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
@@ -189,19 +189,9 @@ public class CDROutputStream_1_0 extends CDROutputStreamBase
private final void createRepositoryIdHandlers()
{
if (orb != null) {
// Get the appropriate versions based on the ORB version. The
// ORB versioning info is only in the core ORB.
repIdUtil
= RepositoryIdFactory.getRepIdUtility(orb);
repIdStrs
= RepositoryIdFactory.getRepIdStringsFactory(orb);
} else {
// Get the latest versions
repIdUtil = RepositoryIdFactory.getRepIdUtility();
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
}
}
public BufferManagerWrite getBufferManager()
{
@@ -705,7 +695,7 @@ public class CDROutputStream_1_0 extends CDROutputStreamBase
private void writeArray(Serializable array, Class clazz) {
if (valueHandler == null)
valueHandler = ORBUtility.createValueHandler(orb); //d11638
valueHandler = ORBUtility.createValueHandler(); //d11638
// Write value_tag
int indirection = writeValueTag(mustChunk, true,
@@ -768,7 +758,7 @@ public class CDROutputStream_1_0 extends CDROutputStreamBase
private void writeRMIIIOPValueType(Serializable object, Class clazz) {
if (valueHandler == null)
valueHandler = ORBUtility.createValueHandler(orb); //d11638
valueHandler = ORBUtility.createValueHandler(); //d11638
Serializable key = object;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. 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
@@ -86,7 +86,7 @@ public class FVDCodeBaseImpl extends _CodeBaseImplBase
// default to using the current ORB version in case the
// vhandler is not set
if (vhandler == null) {
vhandler = new ValueHandlerImpl(false);
vhandler = ValueHandlerImpl.getInstance(false);
}
// Util.getCodebase may return null which would
@@ -120,7 +120,7 @@ public class FVDCodeBaseImpl extends _CodeBaseImplBase
// default to using the current ORB version in case the
// vhandler is not set
if (vhandler == null) {
vhandler = new ValueHandlerImpl(false);
vhandler = ValueHandlerImpl.getInstance(false);
}
try{
@@ -161,7 +161,7 @@ public class FVDCodeBaseImpl extends _CodeBaseImplBase
// default to using the current ORB version in case the
// vhandler is not set
if (vhandler == null) {
vhandler = new ValueHandlerImpl(false);
vhandler = ValueHandlerImpl.getInstance(false);
}
Stack repIds = new Stack();

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. 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
@@ -25,7 +25,7 @@
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
* Copyright IBM Corp. 1998 2012 All Rights Reserved
*
*/
@@ -56,7 +56,6 @@ import java.io.Serializable;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Hashtable;
import com.sun.corba.se.impl.util.RepositoryId;
@@ -83,8 +82,6 @@ public class ObjectStreamClass implements java.io.Serializable {
private static Object noArgsList[] = {};
private static Class noTypesList[] = {};
private static Hashtable translatedFields;
/** true if represents enum type */
private boolean isEnum;
@@ -384,6 +381,42 @@ public class ObjectStreamClass implements java.io.Serializable {
*/
}
private static final class PersistentFieldsValue
extends ClassValue<ObjectStreamField[]> {
PersistentFieldsValue() { }
protected ObjectStreamField[] computeValue(Class<?> type) {
try {
Field pf = type.getDeclaredField("serialPersistentFields");
int mods = pf.getModifiers();
if (Modifier.isPrivate(mods) && Modifier.isStatic(mods) &&
Modifier.isFinal(mods)) {
pf.setAccessible(true);
java.io.ObjectStreamField[] fields =
(java.io.ObjectStreamField[])pf.get(type);
return translateFields(fields);
}
} catch (NoSuchFieldException | IllegalAccessException |
IllegalArgumentException | ClassCastException e) {
}
return null;
}
private static ObjectStreamField[] translateFields(
java.io.ObjectStreamField[] fields) {
ObjectStreamField[] translation =
new ObjectStreamField[fields.length];
for (int i = 0; i < fields.length; i++) {
translation[i] = new ObjectStreamField(fields[i].getName(),
fields[i].getType());
}
return translation;
}
}
private static final PersistentFieldsValue persistentFieldsValue =
new PersistentFieldsValue();
/*
* Initialize class descriptor. This method is only invoked on class
* descriptors created via calls to lookupInternal(). This method is kept
@@ -416,35 +449,7 @@ public class ObjectStreamClass implements java.io.Serializable {
* If it is declared, use the declared serialPersistentFields.
* Otherwise, extract the fields from the class itself.
*/
try {
Field pf = cl.getDeclaredField("serialPersistentFields");
// serial bug 7; the serialPersistentFields were not
// being read and stored as Accessible bit was not set
pf.setAccessible(true);
// serial bug 7; need to find if the field is of type
// java.io.ObjectStreamField
java.io.ObjectStreamField[] f =
(java.io.ObjectStreamField[])pf.get(cl);
int mods = pf.getModifiers();
if ((Modifier.isPrivate(mods)) &&
(Modifier.isStatic(mods)) &&
(Modifier.isFinal(mods)))
{
fields = (ObjectStreamField[])translateFields((Object[])pf.get(cl));
}
} catch (NoSuchFieldException e) {
fields = null;
} catch (IllegalAccessException e) {
fields = null;
} catch (IllegalArgumentException e) {
fields = null;
} catch (ClassCastException e) {
/* Thrown if a field serialPersistentField exists
* but it is not of type ObjectStreamField.
*/
fields = null;
}
fields = persistentFieldsValue.get(cl);
if (fields == null) {
/* Get all of the declared fields for this
@@ -641,43 +646,6 @@ public class ObjectStreamClass implements java.io.Serializable {
superclass = null;
}
private static Object[] translateFields(Object objs[])
throws NoSuchFieldException {
try{
java.io.ObjectStreamField fields[] = (java.io.ObjectStreamField[])objs;
Object translation[] = null;
if (translatedFields == null)
translatedFields = new Hashtable();
translation = (Object[])translatedFields.get(fields);
if (translation != null)
return translation;
else {
Class osfClass = Class.forName("com.sun.corba.se.impl.io.ObjectStreamField");
translation = (Object[])java.lang.reflect.Array.newInstance(osfClass, objs.length);
Object arg[] = new Object[2];
Class types[] = {String.class, Class.class};
Constructor constructor = osfClass.getDeclaredConstructor(types);
for (int i = fields.length -1; i >= 0; i--){
arg[0] = fields[i].getName();
arg[1] = fields[i].getType();
translation[i] = constructor.newInstance(arg);
}
translatedFields.put(fields, translation);
}
return (Object[])translation;
}
catch(Throwable t){
NoSuchFieldException nsfe = new NoSuchFieldException();
nsfe.initCause( t ) ;
throw nsfe ;
}
}
/*
* Set the class this version descriptor matches.
@@ -1555,8 +1523,8 @@ public class ObjectStreamClass implements java.io.Serializable {
private boolean hasExternalizableBlockData;
Method writeObjectMethod;
Method readObjectMethod;
private Method writeReplaceObjectMethod;
private Method readResolveObjectMethod;
private transient Method writeReplaceObjectMethod;
private transient Method readResolveObjectMethod;
private Constructor cons ;
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. 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,7 @@ import com.sun.corba.se.spi.logging.CORBALogDomains;
import com.sun.corba.se.impl.logging.OMGSystemException;
import com.sun.corba.se.impl.logging.UtilSystemException;
public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat {
public final class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat {
// Property to override our maximum stream format version
public static final String FORMAT_VERSION_PROPERTY
@@ -150,14 +150,22 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
writeValueWithVersion(out, value, streamFormatVersion);
}
public ValueHandlerImpl(){}
private ValueHandlerImpl(){}
public ValueHandlerImpl(boolean isInputStream) {
private ValueHandlerImpl(boolean isInputStream) {
this();
useHashtables = false;
this.isInputStream = isInputStream;
}
static ValueHandlerImpl getInstance() {
return new ValueHandlerImpl();
}
static ValueHandlerImpl getInstance(boolean isInputStream) {
return new ValueHandlerImpl(isInputStream);
}
/**
* Writes the value to the stream using java semantics.
* @param out The stream to write the value to
@@ -458,12 +466,7 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
return ObjectStreamClass.lookup(value.getClass()).writeReplace(value);
}
/**
* Encapsulates writing of Java char arrays so that the 1.3 subclass
* can override it without exposing internals across packages. This
* is a fix for bug 4367783.
*/
protected void writeCharArray(org.omg.CORBA_2_3.portable.OutputStream out,
private void writeCharArray(org.omg.CORBA_2_3.portable.OutputStream out,
char[] array,
int offset,
int length)
@@ -576,12 +579,7 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
}
}
/**
* Encapsulates reading of Java char arrays so that the 1.3 subclass
* can override it without exposing internals across packages. This
* is a fix for bug 4367783.
*/
protected void readCharArray(org.omg.CORBA_2_3.portable.InputStream in,
private void readCharArray(org.omg.CORBA_2_3.portable.InputStream in,
char[] array,
int offset,
int length)
@@ -795,7 +793,7 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
return RepositoryId.cache.getId(repId).isSequence();
}
protected String getOutputStreamClassName() {
private String getOutputStreamClassName() {
return "com.sun.corba.se.impl.io.IIOPOutputStream";
}
@@ -843,29 +841,11 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
private IIOPOutputStream createOutputStreamBuiltInNoPriv(
final String name
) throws IOException {
return
name.equals(
IIOPOutputStream
.class.getName()
) ?
new IIOPOutputStream() :
name.equals(
com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3
.class.getName()
) ?
new com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3() :
name.equals(
com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3_1
.class.getName()
) ?
new com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3_1() :
null;
return name.equals(IIOPOutputStream.class.getName()) ?
new IIOPOutputStream() : null;
}
protected String getInputStreamClassName() {
private String getInputStreamClassName() {
return "com.sun.corba.se.impl.io.IIOPInputStream";
}
@@ -913,26 +893,8 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
private IIOPInputStream createInputStreamBuiltInNoPriv(
final String name
) throws IOException {
return
name.equals(
IIOPInputStream
.class.getName()
) ?
new IIOPInputStream() :
name.equals(
com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3
.class.getName()
) ?
new com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3() :
name.equals(
com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3_1
.class.getName()
) ?
new com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3_1() :
null;
return name.equals(IIOPInputStream.class.getName()) ?
new IIOPInputStream() : null;
}
/**
@@ -958,12 +920,7 @@ public class ValueHandlerImpl implements javax.rmi.CORBA.ValueHandlerMultiFormat
}
/**
* Our JDK 1.3 and JDK 1.3.1 behavior subclasses override this.
* The correct behavior is for a Java char to map to a CORBA wchar,
* but our older code mapped it to a CORBA char.
*/
protected TCKind getJavaCharTCKind() {
TCKind getJavaCharTCKind() {
return TCKind.tk_wchar;
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. 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
@@ -93,6 +93,14 @@ public class ValueUtility {
null, // tk_abstract_interface 32
};
static {
sun.corba.SharedSecrets.setJavaCorbaAccess(new sun.corba.JavaCorbaAccess() {
public ValueHandlerImpl newValueHandlerImpl() {
return ValueHandlerImpl.getInstance();
}
});
}
public static String getSignature(ValueMember member)
throws ClassNotFoundException {

View File

@@ -112,6 +112,9 @@ import com.sun.corba.se.impl.util.JDKBridge;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.impl.logging.UtilSystemException;
import com.sun.corba.se.spi.logging.CORBALogDomains;
import sun.corba.SharedSecrets;
import sun.corba.JavaCorbaAccess;
/**
* Provides utility methods that can be used by stubs and ties to
@@ -125,7 +128,8 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
// Maps targets to ties.
private static IdentityHashtable exportedServants = new IdentityHashtable();
private static ValueHandlerImpl valueHandlerSingleton = new ValueHandlerImpl();
private static final ValueHandlerImpl valueHandlerSingleton =
SharedSecrets.getJavaCorbaAccess().newValueHandlerImpl();
private UtilSystemException utilWrapper = UtilSystemException.get(
CORBALogDomains.RPC_ENCODING);

View File

@@ -840,7 +840,7 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
// backward compatability 4365188
CodeBase cb;
ValueHandler vh = ORBUtility.createValueHandler(this);
ValueHandler vh = ORBUtility.createValueHandler();
cb = (CodeBase)vh.getRunTimeCodeBase();
return ORBUtility.connectAndGetIOR( this, cb ) ;

View File

@@ -1,57 +0,0 @@
/*
* Copyright (c) 2000, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import java.io.*;
import java.util.Hashtable;
/**
* Implements legacy behavior from before Ladybird to maintain
* backwards compatibility.
*/
public class IIOPInputStream_1_3 extends com.sun.corba.se.impl.io.IIOPInputStream
{
// The newer version in the io package correctly reads a wstring instead.
// This concerns bug 4379597.
protected String internalReadUTF(org.omg.CORBA.portable.InputStream stream)
{
return stream.read_string();
}
/**
* Before JDK 1.3.1_01, the PutField/GetField implementation
* actually sent a Hashtable.
*/
public ObjectInputStream.GetField readFields()
throws IOException, ClassNotFoundException, NotActiveException {
Hashtable fields = (Hashtable)readObject();
return new LegacyHookGetFields(fields);
}
public IIOPInputStream_1_3()
throws java.io.IOException {
super();
}
}

View File

@@ -1,54 +0,0 @@
/*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*/
package com.sun.corba.se.impl.orbutil;
import java.io.*;
import java.util.Hashtable;
/**
* Implements legacy behavior from Ladybird to maintain
* backwards compatibility.
*/
public class IIOPInputStream_1_3_1 extends com.sun.corba.se.impl.io.IIOPInputStream
{
public IIOPInputStream_1_3_1()
throws java.io.IOException {
super();
}
/**
* Before JDK 1.3.1_01, the PutField/GetField implementation
* actually sent a Hashtable.
*/
public ObjectInputStream.GetField readFields()
throws IOException, ClassNotFoundException, NotActiveException {
Hashtable fields = (Hashtable)readObject();
return new LegacyHookGetFields(fields);
}
}

View File

@@ -1,68 +0,0 @@
/*
* Copyright (c) 2000, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import java.io.*;
/**
* Implements legacy behavior from before Ladybird to maintain
* backwards compatibility.
*/
public class IIOPOutputStream_1_3 extends com.sun.corba.se.impl.io.IIOPOutputStream
{
// We can't assume that the superclass's putFields
// member will be non-private. We must allow
// the RI to run on JDK 1.3.1 FCS as well as
// the JDK 1.3.1_01 patch.
private ObjectOutputStream.PutField putFields_1_3;
// The newer version in the io package correctly writes a wstring instead.
// This concerns bug 4379597.
protected void internalWriteUTF(org.omg.CORBA.portable.OutputStream stream,
String data)
{
stream.write_string(data);
}
public IIOPOutputStream_1_3()
throws java.io.IOException {
super();
}
/**
* Before JDK 1.3.1_01, the PutField/GetField implementation
* actually sent a Hashtable.
*/
public ObjectOutputStream.PutField putFields()
throws IOException {
putFields_1_3 = new LegacyHookPutFields();
return putFields_1_3;
}
public void writeFields()
throws IOException {
putFields_1_3.write(this);
}
}

View File

@@ -1,66 +0,0 @@
/*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*/
package com.sun.corba.se.impl.orbutil;
import java.io.*;
import java.util.Hashtable;
/**
* Implements legacy behavior from Ladybird to maintain
* backwards compatibility.
*/
public class IIOPOutputStream_1_3_1 extends com.sun.corba.se.impl.io.IIOPOutputStream
{
// We can't assume that the superclass's putFields
// member will be non-private. We must allow
// the RI to run on JDK 1.3.1 FCS as well as
// the JDK 1.3.1_01 patch.
private ObjectOutputStream.PutField putFields_1_3_1;
public IIOPOutputStream_1_3_1()
throws java.io.IOException {
super();
}
/**
* Before JDK 1.3.1_01, the PutField/GetField implementation
* actually sent a Hashtable.
*/
public ObjectOutputStream.PutField putFields()
throws IOException {
putFields_1_3_1 = new LegacyHookPutFields();
return putFields_1_3_1;
}
public void writeFields()
throws IOException {
putFields_1_3_1.write(this);
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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
@@ -160,42 +160,10 @@ public final class ORBUtility {
}
/**
* Creates the correct ValueHandler for the given ORB,
* querying ORBVersion information. If the ORB or
* ORBVersion is null, gets the ValueHandler from
* Util.createValueHandler.
* Return default ValueHandler
*/
public static ValueHandler createValueHandler(ORB orb) {
if (orb == null)
public static ValueHandler createValueHandler() {
return Util.createValueHandler();
ORBVersion version = orb.getORBVersion();
if (version == null)
return Util.createValueHandler();
if (version.equals(ORBVersionFactory.getOLD()))
return new ValueHandlerImpl_1_3();
if (version.equals(ORBVersionFactory.getNEW()))
return new ValueHandlerImpl_1_3_1();
return Util.createValueHandler();
}
/**
* Returns true if the given ORB could accurately be determined to be a
* Kestrel or earlier ORB. Note: If passed the ORBSingleton, this will return
* false.
*/
public static boolean isLegacyORB(ORB orb)
{
try {
ORBVersion currentORB = orb.getORBVersion();
return currentORB.equals( ORBVersionFactory.getOLD() ) ;
} catch (SecurityException se) {
return false;
}
}
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2012, Oracle and/or its affiliates. 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
@@ -1119,8 +1119,8 @@ public class ObjectStreamClass_1_3_1 implements java.io.Serializable {
private boolean hasExternalizableBlockData;
Method writeObjectMethod;
Method readObjectMethod;
private Method writeReplaceObjectMethod;
private Method readResolveObjectMethod;
private transient Method writeReplaceObjectMethod;
private transient Method readResolveObjectMethod;
/*
* ObjectStreamClass_1_3_1 that this one was built from.

View File

@@ -1,177 +0,0 @@
/*
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import org.omg.CORBA.ORB;
import java.io.Serializable;
import java.util.Hashtable;
import java.net.MalformedURLException;
import com.sun.corba.se.impl.io.TypeMismatchException;
import com.sun.corba.se.impl.util.RepositoryId;
/**
* Delegates to the RepositoryId_1_3 implementation in
* com.sun.corba.se.impl.orbutil. This is necessary to
* overcome the fact that many of RepositoryId's methods
* are static.
*/
public final class RepIdDelegator_1_3
implements RepositoryIdStrings,
RepositoryIdUtility,
RepositoryIdInterface
{
// RepositoryIdFactory methods
public String createForAnyType(Class type) {
return RepositoryId_1_3.createForAnyType(type);
}
public String createForJavaType(Serializable ser)
throws TypeMismatchException
{
return RepositoryId_1_3.createForJavaType(ser);
}
public String createForJavaType(Class clz)
throws TypeMismatchException
{
return RepositoryId_1_3.createForJavaType(clz);
}
public String createSequenceRepID(java.lang.Object ser) {
return RepositoryId_1_3.createSequenceRepID(ser);
}
public String createSequenceRepID(Class clazz) {
return RepositoryId_1_3.createSequenceRepID(clazz);
}
public RepositoryIdInterface getFromString(String repIdString) {
return new RepIdDelegator_1_3(RepositoryId_1_3.cache.getId(repIdString));
}
// RepositoryIdUtility methods
public boolean isChunkedEncoding(int valueTag) {
return RepositoryId.isChunkedEncoding(valueTag);
}
public boolean isCodeBasePresent(int valueTag) {
return RepositoryId.isCodeBasePresent(valueTag);
}
public String getClassDescValueRepId() {
return RepositoryId_1_3.kClassDescValueRepID;
}
public String getWStringValueRepId() {
return RepositoryId_1_3.kWStringValueRepID;
}
public int getTypeInfo(int valueTag) {
return RepositoryId.getTypeInfo(valueTag);
}
public int getStandardRMIChunkedNoRepStrId() {
return RepositoryId.kPreComputed_StandardRMIChunked_NoRep;
}
public int getCodeBaseRMIChunkedNoRepStrId() {
return RepositoryId.kPreComputed_CodeBaseRMIChunked_NoRep;
}
public int getStandardRMIChunkedId() {
return RepositoryId.kPreComputed_StandardRMIChunked;
}
public int getCodeBaseRMIChunkedId() {
return RepositoryId.kPreComputed_CodeBaseRMIChunked;
}
public int getStandardRMIUnchunkedId() {
return RepositoryId.kPreComputed_StandardRMIUnchunked;
}
public int getCodeBaseRMIUnchunkedId() {
return RepositoryId.kPreComputed_CodeBaseRMIUnchunked;
}
public int getStandardRMIUnchunkedNoRepStrId() {
return RepositoryId.kPreComputed_StandardRMIUnchunked_NoRep;
}
public int getCodeBaseRMIUnchunkedNoRepStrId() {
return RepositoryId.kPreComputed_CodeBaseRMIUnchunked_NoRep;
}
// RepositoryIdInterface methods
public Class getClassFromType() throws ClassNotFoundException {
return delegate.getClassFromType();
}
public Class getClassFromType(String codebaseURL)
throws ClassNotFoundException, MalformedURLException
{
return delegate.getClassFromType(codebaseURL);
}
public Class getClassFromType(Class expectedType,
String codebaseURL)
throws ClassNotFoundException, MalformedURLException
{
return delegate.getClassFromType(expectedType, codebaseURL);
}
public String getClassName() {
return delegate.getClassName();
}
// Constructor used for factory/utility cases
public RepIdDelegator_1_3() {}
// Constructor used by getIdFromString. All non-static
// RepositoryId methods will use the provided delegate.
private RepIdDelegator_1_3(RepositoryId_1_3 _delegate) {
this.delegate = _delegate;
}
private RepositoryId_1_3 delegate = null;
public String toString() {
if (delegate != null)
return delegate.toString();
else
return this.getClass().getName();
}
public boolean equals(Object obj) {
if (delegate != null)
return delegate.equals(obj);
else
return super.equals(obj);
}
}

View File

@@ -1,177 +0,0 @@
/*
* Copyright (c) 2001, 2004, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import org.omg.CORBA.ORB;
import java.io.Serializable;
import java.util.Hashtable;
import java.net.MalformedURLException;
import com.sun.corba.se.impl.io.TypeMismatchException;
import com.sun.corba.se.impl.util.RepositoryId;
/**
* Delegates to the RepositoryId_1_3_1 implementation in
* com.sun.corba.se.impl.orbutil. This is necessary to
* overcome the fact that many of RepositoryId's methods
* are static.
*/
public final class RepIdDelegator_1_3_1
implements RepositoryIdStrings,
RepositoryIdUtility,
RepositoryIdInterface
{
// RepositoryIdFactory methods
public String createForAnyType(Class type) {
return RepositoryId_1_3_1.createForAnyType(type);
}
public String createForJavaType(Serializable ser)
throws TypeMismatchException
{
return RepositoryId_1_3_1.createForJavaType(ser);
}
public String createForJavaType(Class clz)
throws TypeMismatchException
{
return RepositoryId_1_3_1.createForJavaType(clz);
}
public String createSequenceRepID(java.lang.Object ser) {
return RepositoryId_1_3_1.createSequenceRepID(ser);
}
public String createSequenceRepID(Class clazz) {
return RepositoryId_1_3_1.createSequenceRepID(clazz);
}
public RepositoryIdInterface getFromString(String repIdString) {
return new RepIdDelegator_1_3_1(RepositoryId_1_3_1.cache.getId(repIdString));
}
// RepositoryIdUtility methods
public boolean isChunkedEncoding(int valueTag) {
return RepositoryId.isChunkedEncoding(valueTag);
}
public boolean isCodeBasePresent(int valueTag) {
return RepositoryId.isCodeBasePresent(valueTag);
}
public String getClassDescValueRepId() {
return RepositoryId_1_3_1.kClassDescValueRepID;
}
public String getWStringValueRepId() {
return RepositoryId_1_3_1.kWStringValueRepID;
}
public int getTypeInfo(int valueTag) {
return RepositoryId.getTypeInfo(valueTag);
}
public int getStandardRMIChunkedNoRepStrId() {
return RepositoryId.kPreComputed_StandardRMIChunked_NoRep;
}
public int getCodeBaseRMIChunkedNoRepStrId() {
return RepositoryId.kPreComputed_CodeBaseRMIChunked_NoRep;
}
public int getStandardRMIChunkedId() {
return RepositoryId.kPreComputed_StandardRMIChunked;
}
public int getCodeBaseRMIChunkedId() {
return RepositoryId.kPreComputed_CodeBaseRMIChunked;
}
public int getStandardRMIUnchunkedId() {
return RepositoryId.kPreComputed_StandardRMIUnchunked;
}
public int getCodeBaseRMIUnchunkedId() {
return RepositoryId.kPreComputed_CodeBaseRMIUnchunked;
}
public int getStandardRMIUnchunkedNoRepStrId() {
return RepositoryId.kPreComputed_StandardRMIUnchunked_NoRep;
}
public int getCodeBaseRMIUnchunkedNoRepStrId() {
return RepositoryId.kPreComputed_CodeBaseRMIUnchunked_NoRep;
}
// RepositoryIdInterface methods
public Class getClassFromType() throws ClassNotFoundException {
return delegate.getClassFromType();
}
public Class getClassFromType(String codebaseURL)
throws ClassNotFoundException, MalformedURLException
{
return delegate.getClassFromType(codebaseURL);
}
public Class getClassFromType(Class expectedType,
String codebaseURL)
throws ClassNotFoundException, MalformedURLException
{
return delegate.getClassFromType(expectedType, codebaseURL);
}
public String getClassName() {
return delegate.getClassName();
}
// Constructor used for factory/utility cases
public RepIdDelegator_1_3_1() {}
// Constructor used by getIdFromString. All non-static
// RepositoryId methods will use the provided delegate.
private RepIdDelegator_1_3_1(RepositoryId_1_3_1 _delegate) {
this.delegate = _delegate;
}
private RepositoryId_1_3_1 delegate = null;
public String toString() {
if (delegate != null)
return delegate.toString();
else
return this.getClass().getName();
}
public boolean equals(Object obj) {
if (delegate != null)
return delegate.equals(obj);
else
return super.equals(obj);
}
}

View File

@@ -1,108 +0,0 @@
/*
* Copyright (c) 2000, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
*
*/
package com.sun.corba.se.impl.orbutil;
import java.util.Stack;
import java.util.Hashtable;
import java.util.EmptyStackException;
import java.util.Enumeration;
// Really limited pool - in this case just creating several at a time...
class RepositoryIdPool_1_3 extends Stack {
private static int MAX_CACHE_SIZE = 4;
private RepositoryIdCache_1_3 cache;
public final synchronized RepositoryId_1_3 popId() {
try {
return (RepositoryId_1_3)super.pop();
}
catch(EmptyStackException e) {
increasePool(5);
return (RepositoryId_1_3)super.pop();
}
}
// Pool management
final void increasePool(int size) {
//if (cache.size() <= MAX_CACHE_SIZE)
for (int i = size; i > 0; i--)
push(new RepositoryId_1_3());
/*
// _REVISIT_ This will not work w/out either thread tracing or weak references. I am
// betting that thread tracing almost completely negates benefit of reuse. Until either
// 1.2 only inclusion or proof to the contrary, I'll leave it this way...
else {
int numToReclaim = cache.size() / 2;
Enumeration keys = cache.keys();
Enumeration elements = cache.elements();
for (int i = numToReclaim; i > 0; i--) {
Object key = keys.nextElement();
Object element = elements.nextElement();
push(element);
cache.remove(key);
}
}
*/
}
final void setCaches(RepositoryIdCache_1_3 cache) {
this.cache = cache;
}
}
public class RepositoryIdCache_1_3 extends Hashtable {
private RepositoryIdPool_1_3 pool = new RepositoryIdPool_1_3();
public RepositoryIdCache_1_3() {
pool.setCaches(this);
}
public final synchronized RepositoryId_1_3 getId(String key) {
RepositoryId_1_3 repId = (RepositoryId_1_3)super.get(key);
if (repId != null)
return repId;
else {
//repId = pool.popId().init(key);
repId = new RepositoryId_1_3(key);
put(key, repId);
return repId;
}
}
}

View File

@@ -1,102 +0,0 @@
/*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import java.util.Stack;
import java.util.Hashtable;
import java.util.EmptyStackException;
import java.util.Enumeration;
// Really limited pool - in this case just creating several at a time...
class RepositoryIdPool_1_3_1 extends Stack {
private static int MAX_CACHE_SIZE = 4;
private RepositoryIdCache_1_3_1 cache;
public final synchronized RepositoryId_1_3_1 popId() {
try {
return (RepositoryId_1_3_1)super.pop();
}
catch(EmptyStackException e) {
increasePool(5);
return (RepositoryId_1_3_1)super.pop();
}
}
// Pool management
final void increasePool(int size) {
//if (cache.size() <= MAX_CACHE_SIZE)
for (int i = size; i > 0; i--)
push(new RepositoryId_1_3_1());
/*
// _REVISIT_ This will not work w/out either thread tracing or weak references. I am
// betting that thread tracing almost completely negates benefit of reuse. Until either
// 1.2 only inclusion or proof to the contrary, I'll leave it this way...
else {
int numToReclaim = cache.size() / 2;
Enumeration keys = cache.keys();
Enumeration elements = cache.elements();
for (int i = numToReclaim; i > 0; i--) {
Object key = keys.nextElement();
Object element = elements.nextElement();
push(element);
cache.remove(key);
}
}
*/
}
final void setCaches(RepositoryIdCache_1_3_1 cache) {
this.cache = cache;
}
}
public class RepositoryIdCache_1_3_1 extends Hashtable {
private RepositoryIdPool_1_3_1 pool = new RepositoryIdPool_1_3_1();
public RepositoryIdCache_1_3_1() {
pool.setCaches(this);
}
public final synchronized RepositoryId_1_3_1 getId(String key) {
RepositoryId_1_3_1 repId = (RepositoryId_1_3_1)super.get(key);
if (repId != null)
return repId;
else {
//repId = pool.popId().init(key);
repId = new RepositoryId_1_3_1(key);
put(key, repId);
return repId;
}
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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,12 +30,6 @@ import com.sun.corba.se.spi.orb.ORB;
public abstract class RepositoryIdFactory
{
private static final RepIdDelegator_1_3 legacyDelegator
= new RepIdDelegator_1_3();
private static final RepIdDelegator_1_3_1 ladybirdDelegator
= new RepIdDelegator_1_3_1();
private static final RepIdDelegator currentDelegator
= new RepIdDelegator();
@@ -47,29 +41,6 @@ public abstract class RepositoryIdFactory
return currentDelegator;
}
/**
* Checks the version of the ORB and returns the appropriate
* RepositoryIdStrings instance.
*/
public static RepositoryIdStrings getRepIdStringsFactory(ORB orb)
{
if (orb != null) {
switch (orb.getORBVersion().getORBType()) {
case ORBVersion.NEWER:
case ORBVersion.FOREIGN:
case ORBVersion.JDK1_3_1_01:
return currentDelegator;
case ORBVersion.OLD:
return legacyDelegator;
case ORBVersion.NEW:
return ladybirdDelegator;
default:
return currentDelegator;
}
} else
return currentDelegator;
}
/**
* Returns the latest version RepositoryIdUtility instance
*/
@@ -78,26 +49,4 @@ public abstract class RepositoryIdFactory
return currentDelegator;
}
/**
* Checks the version of the ORB and returns the appropriate
* RepositoryIdUtility instance.
*/
public static RepositoryIdUtility getRepIdUtility(ORB orb)
{
if (orb != null) {
switch (orb.getORBVersion().getORBType()) {
case ORBVersion.NEWER:
case ORBVersion.FOREIGN:
case ORBVersion.JDK1_3_1_01:
return currentDelegator;
case ORBVersion.OLD:
return legacyDelegator;
case ORBVersion.NEW:
return ladybirdDelegator;
default:
return currentDelegator;
}
} else
return currentDelegator;
}
}

View File

@@ -1,990 +0,0 @@
/*
* Copyright (c) 2000, 2012, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
*
*/
package com.sun.corba.se.impl.orbutil;
import java.util.StringTokenizer;
import java.util.Hashtable;
import java.io.IOException;
import java.lang.reflect.Method;
// Imports for using codebase URL to load class
import java.net.MalformedURLException;
import org.omg.CORBA.portable.ValueBase;
import org.omg.CORBA.portable.IDLEntity;
import com.sun.corba.se.impl.util.JDKBridge;
import com.sun.corba.se.impl.util.Utility;
import com.sun.corba.se.impl.util.PackagePrefixChecker;
import com.sun.corba.se.impl.util.IdentityHashtable;
import com.sun.corba.se.impl.io.ObjectStreamClass;
import javax.rmi.CORBA.Util;
// keeping the original RepositoryId class that was shipped in
// JDK 1.3. It has interoperability bugs
public class RepositoryId_1_3 {
// Legal IDL Identifier characters (1 = legal). Note
// that '.' (2E) is marked as legal even though it is
// not legal in IDL. This allows us to treat a fully
// qualified Java name with '.' package separators
// uniformly, and is safe because that is the only
// legal use of '.' in a Java name.
public static final RepositoryIdCache_1_3 cache = new RepositoryIdCache_1_3();
private static final byte[] IDL_IDENTIFIER_CHARS = {
// 0 1 2 3 4 5 6 7 8 9 a b c d e f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 10-1f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,1,0, // 20-2f
1,1,1,1, 1,1,1,1, 1,1,0,0, 0,0,0,0, // 30-3f
0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 40-4f
1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,1, // 50-5f
0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 60-6f
1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,0, // 70-7f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 80-8f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 90-9f
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // a0-af
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // b0-bf
1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // c0-cf
0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // d0-df
1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // e0-ef
0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // f0-ff
};
private static String defaultServerURL = null;
private static boolean useCodebaseOnly = false;
static {
if (defaultServerURL == null)
defaultServerURL = (String)JDKBridge.getLocalCodebase();
useCodebaseOnly = JDKBridge.useCodebaseOnly();
}
private static IdentityHashtable classToRepStr = new IdentityHashtable();
private static IdentityHashtable classIDLToRepStr = new IdentityHashtable();
private static IdentityHashtable classSeqToRepStr = new IdentityHashtable();
private static IdentityHashtable repStrToByteArray = new IdentityHashtable();
private static Hashtable repStrToClass = new Hashtable();
private String repId = null;
private boolean isSupportedFormat = true;
private String typeString = null;
private String versionString = null;
private boolean isSequence = false;
private boolean isRMIValueType = false;
private boolean isIDLType = false;
private String completeClassName = null;
private String unqualifiedName = null;
private String definedInId = null;
private Class clazz = null;
private String suid = null, actualSuid = null;
private long suidLong = ObjectStreamClass.kDefaultUID, actualSuidLong = ObjectStreamClass.kDefaultUID;
// Repository ID fragments
private static final String kValuePrefix = "RMI:";
private static final String kIDLPrefix = "IDL:";
private static final String kIDLNamePrefix = "omg.org/";
private static final String kIDLClassnamePrefix = "org.omg.";
private static final String kSequencePrefix = "[";
private static final String kCORBAPrefix = "CORBA/";
private static final String kArrayPrefix = kValuePrefix + kSequencePrefix + kCORBAPrefix;
private static final int kValuePrefixLength = kValuePrefix.length();
private static final int kIDLPrefixLength = kIDLPrefix.length();
private static final int kSequencePrefixLength = kSequencePrefix.length();
private static final String kInterfaceHashCode = ":0000000000000000";
private static final String kInterfaceOnlyHashStr = "0000000000000000";
private static final String kExternalizableHashStr = "0000000000000001";
// Value tag utility methods and constants
public static final int kInitialValueTag= 0x7fffff00;
public static final int kNoTypeInfo = 0;
public static final int kSingleRepTypeInfo = 0x02;
public static final int kPartialListTypeInfo = 0x06;
public static final int kChunkedMask = 0x08;
// Public, well known repository IDs
// _REVISIT_ : A table structure with a good search routine for all of this
// would be more efficient and easier to maintain...
// String
public static final String kWStringValueVersion = "1.0";
public static final String kWStringValueHash = ":"+kWStringValueVersion;
public static final String kWStringStubValue = "WStringValue";
public static final String kWStringTypeStr = "omg.org/CORBA/"+kWStringStubValue;
public static final String kWStringValueRepID = kIDLPrefix + kWStringTypeStr + kWStringValueHash;
// Any
public static final String kAnyRepID = kIDLPrefix + "omg.org/CORBA/Any";
// Class
public static final String kClassDescValueHash = ":" + Long.toHexString(
ObjectStreamClass.getSerialVersionUID(javax.rmi.CORBA.ClassDesc.class));
public static final String kClassDescStubValue = "ClassDesc";
public static final String kClassDescTypeStr = "javax.rmi.CORBA."+kClassDescStubValue;
public static final String kClassDescValueRepID = kValuePrefix + kClassDescTypeStr + kClassDescValueHash;
// Object
public static final String kObjectValueHash = ":1.0";
public static final String kObjectStubValue = "Object";
// Sequence
public static final String kSequenceValueHash = ":1.0";
public static final String kPrimitiveSequenceValueHash = ":0000000000000000";
// Serializable
public static final String kSerializableValueHash = ":1.0";
public static final String kSerializableStubValue = "Serializable";
// Externalizable
public static final String kExternalizableValueHash = ":1.0";
public static final String kExternalizableStubValue = "Externalizable";
// Remote (The empty string is used for java.rmi.Remote)
public static final String kRemoteValueHash = "";
public static final String kRemoteStubValue = "";
public static final String kRemoteTypeStr = "";
public static final String kRemoteValueRepID = "";
private static final Hashtable kSpecialArrayTypeStrings = new Hashtable();
static {
kSpecialArrayTypeStrings.put("CORBA.WStringValue", new StringBuffer(java.lang.String.class.getName()));
kSpecialArrayTypeStrings.put("javax.rmi.CORBA.ClassDesc", new StringBuffer(java.lang.Class.class.getName()));
kSpecialArrayTypeStrings.put("CORBA.Object", new StringBuffer(java.rmi.Remote.class.getName()));
}
private static final Hashtable kSpecialCasesRepIDs = new Hashtable();
static {
kSpecialCasesRepIDs.put(java.lang.String.class, kWStringValueRepID);
kSpecialCasesRepIDs.put(java.lang.Class.class, kClassDescValueRepID);
kSpecialCasesRepIDs.put(java.rmi.Remote.class, kRemoteValueRepID);
}
private static final Hashtable kSpecialCasesStubValues = new Hashtable();
static {
kSpecialCasesStubValues.put(java.lang.String.class, kWStringStubValue);
kSpecialCasesStubValues.put(java.lang.Class.class, kClassDescStubValue);
kSpecialCasesStubValues.put(java.lang.Object.class, kObjectStubValue);
kSpecialCasesStubValues.put(java.io.Serializable.class, kSerializableStubValue);
kSpecialCasesStubValues.put(java.io.Externalizable.class, kExternalizableStubValue);
kSpecialCasesStubValues.put(java.rmi.Remote.class, kRemoteStubValue);
}
private static final Hashtable kSpecialCasesVersions = new Hashtable();
static {
kSpecialCasesVersions.put(java.lang.String.class, kWStringValueHash);
kSpecialCasesVersions.put(java.lang.Class.class, kClassDescValueHash);
kSpecialCasesVersions.put(java.lang.Object.class, kObjectValueHash);
kSpecialCasesVersions.put(java.io.Serializable.class, kSerializableValueHash);
kSpecialCasesVersions.put(java.io.Externalizable.class, kExternalizableValueHash);
kSpecialCasesVersions.put(java.rmi.Remote.class, kRemoteValueHash);
}
private static final Hashtable kSpecialCasesClasses = new Hashtable();
static {
kSpecialCasesClasses.put(kWStringTypeStr, java.lang.String.class);
kSpecialCasesClasses.put(kClassDescTypeStr, java.lang.Class.class);
kSpecialCasesClasses.put(kRemoteTypeStr, java.rmi.Remote.class);
kSpecialCasesClasses.put("org.omg.CORBA.WStringValue", java.lang.String.class);
kSpecialCasesClasses.put("javax.rmi.CORBA.ClassDesc", java.lang.Class.class);
//kSpecialCasesClasses.put(kRemoteTypeStr, java.rmi.Remote.class);
}
private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable();
static {
kSpecialCasesArrayPrefix.put(java.lang.String.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
kSpecialCasesArrayPrefix.put(java.lang.Class.class, kValuePrefix + kSequencePrefix + "javax/rmi/CORBA/");
kSpecialCasesArrayPrefix.put(java.lang.Object.class, kValuePrefix + kSequencePrefix + "java/lang/");
kSpecialCasesArrayPrefix.put(java.io.Serializable.class, kValuePrefix + kSequencePrefix + "java/io/");
kSpecialCasesArrayPrefix.put(java.io.Externalizable.class, kValuePrefix + kSequencePrefix + "java/io/");
kSpecialCasesArrayPrefix.put(java.rmi.Remote.class, kValuePrefix + kSequencePrefix + kCORBAPrefix);
}
private static final Hashtable kSpecialPrimitives = new Hashtable();
static {
kSpecialPrimitives.put("int","long");
kSpecialPrimitives.put("long","longlong");
kSpecialPrimitives.put("byte","octet");
}
/**
* Used to convert ascii to hex.
*/
private static final byte ASCII_HEX[] = {
(byte)'0',
(byte)'1',
(byte)'2',
(byte)'3',
(byte)'4',
(byte)'5',
(byte)'6',
(byte)'7',
(byte)'8',
(byte)'9',
(byte)'A',
(byte)'B',
(byte)'C',
(byte)'D',
(byte)'E',
(byte)'F',
};
// Interface Rep ID Strings
public static final String kjava_rmi_Remote = createForAnyType(java.rmi.Remote.class);
public static final String korg_omg_CORBA_Object = createForAnyType(org.omg.CORBA.Object.class);
// Dummy arguments for getIdFromHelper method
public static final Class kNoParamTypes[] ={};
public static final Object kNoArgs[] = {};
RepositoryId_1_3(){}
RepositoryId_1_3(String aRepId){
init(aRepId);
}
RepositoryId_1_3 init(String aRepId){
this.repId = aRepId;
// Special case for remote
if (aRepId.length() == 0) {
clazz = java.rmi.Remote.class;
typeString = "";
isRMIValueType = true;
suid = kInterfaceOnlyHashStr;
return this;
}
else if (aRepId.equals(kWStringValueRepID)) {
clazz = java.lang.String.class;
typeString = kWStringTypeStr;
isIDLType = true;
versionString = kWStringValueVersion;
return this;
}
else {
String repId = convertFromISOLatin1(aRepId);
versionString = repId.substring(repId.indexOf(':', repId.indexOf(':')+1));
if (repId.startsWith(kIDLPrefix)) {
typeString =
repId.substring(kIDLPrefixLength, repId.indexOf(':', kIDLPrefixLength));
isIDLType = true;
if (typeString.startsWith(kIDLNamePrefix))
completeClassName = kIDLClassnamePrefix +
typeString.substring(kIDLNamePrefix.length()).replace('/','.');
else completeClassName = typeString.replace('/','.');
}
else if (repId.startsWith(kValuePrefix)) {
typeString =
repId.substring(kValuePrefixLength, repId.indexOf(':', kValuePrefixLength));
isRMIValueType = true;
if (versionString.indexOf('.') == -1) {
actualSuid = versionString.substring(1);
suid = actualSuid; // default if not explicitly specified
if (actualSuid.indexOf(':') != -1){
// we have a declared hash also
int pos = actualSuid.indexOf(':')+1;
// actualSuid = suid.substring(pos);
// suid = suid.substring(0, pos-1);
suid = actualSuid.substring(pos);
actualSuid = actualSuid.substring(0, pos-1);
}
}
else {
// _REVISIT_ : Special case version failure ?
}
}
else isSupportedFormat = false;
if (typeString.startsWith(kSequencePrefix)) {
isSequence = true;
}
return this;
}
}
public final String getUnqualifiedName() {
if (unqualifiedName == null){
String className = getClassName();
int index = (className != null) ? className.lastIndexOf('.') : -1;
if (index == -1){
unqualifiedName = className;
definedInId = "IDL::1.0";
}
else {
unqualifiedName = className.substring(index);
definedInId = "IDL:" + className.substring(0, index).replace('.','/') + ":1.0";
}
}
return unqualifiedName;
}
public final String getDefinedInId() {
if (definedInId == null){
getUnqualifiedName();
}
return definedInId;
}
public final String getTypeString() {
return typeString;
}
public final String getVersionString() {
return versionString;
}
public final String getSerialVersionUID() {
return suid;
}
public final String getActualSerialVersionUID() {
return actualSuid;
}
public final long getSerialVersionUIDAsLong() {
return suidLong;
}
public final long getActualSerialVersionUIDAsLong() {
return actualSuidLong;
}
public final boolean isRMIValueType() {
return isRMIValueType;
}
public final boolean isIDLType() {
return isIDLType;
}
public final String getRepositoryId() {
return repId;
}
public static byte[] getByteArray(String repStr) {
synchronized (repStrToByteArray){
return (byte[]) repStrToByteArray.get(repStr);
}
}
public static void setByteArray(String repStr, byte[] repStrBytes) {
synchronized (repStrToByteArray){
repStrToByteArray.put(repStr, repStrBytes);
}
}
public final boolean isSequence() {
return isSequence;
}
public final boolean isSupportedFormat() {
return isSupportedFormat;
}
// This method will return the classname from the typestring OR if the classname turns out to be
// a special class "pseudo" name, then the matching real classname is returned.
public final String getClassName() {
if (isRMIValueType)
return typeString;
else if (isIDLType)
return completeClassName;
else return null;
}
// This method calls getClazzFromType() and falls back to the repStrToClass
// cache if no class was found. It's used where any class matching the
// given repid is an acceptable result.
public final Class getAnyClassFromType() throws ClassNotFoundException {
try {
return getClassFromType();
} catch (ClassNotFoundException cnfe) {
Class clz = (Class)repStrToClass.get(repId);
if (clz != null)
return clz;
else
throw cnfe;
}
}
public final Class getClassFromType()
throws ClassNotFoundException {
if (clazz != null)
return clazz;
Class specialCase = (Class)kSpecialCasesClasses.get(getClassName());
if (specialCase != null){
clazz = specialCase;
return specialCase;
}
else
{
try{
return Util.loadClass(getClassName(), null, null);
}
catch(ClassNotFoundException cnfe){
if (defaultServerURL != null) {
try{
return getClassFromType(defaultServerURL);
}
catch(MalformedURLException mue){
throw cnfe;
}
}
else throw cnfe;
}
}
}
public final Class getClassFromType(Class expectedType, String codebase)
throws ClassNotFoundException {
if (clazz != null)
return clazz;
Class specialCase = (Class)kSpecialCasesClasses.get(getClassName());
if (specialCase != null){
clazz = specialCase;
return specialCase;
} else {
ClassLoader expectedTypeClassLoader = (expectedType == null ? null : expectedType.getClassLoader());
return loadClassOfType(getClassName(),
codebase,
expectedTypeClassLoader,
expectedType,
expectedTypeClassLoader);
}
}
public final Class getClassFromType(String url)
throws ClassNotFoundException, MalformedURLException {
return Util.loadClass(getClassName(), url, null);
}
public final String toString() {
return repId;
}
private static String createHashString(java.io.Serializable ser) {
return createHashString(ser.getClass());
}
private static String createHashString(java.lang.Class clazz) {
if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz))
return kInterfaceHashCode;
long actualLong = ObjectStreamClassUtil_1_3.computeStructuralUID(false, clazz);
String hash = null;
if (actualLong == 0)
hash = kInterfaceOnlyHashStr;
else if (actualLong == 1)
hash = kExternalizableHashStr;
else
hash = Long.toHexString(actualLong).toUpperCase();
while(hash.length() < 16){
hash = "0" + hash;
}
long declaredLong = ObjectStreamClassUtil_1_3.computeSerialVersionUID(clazz);
String declared = null;
if (declaredLong == 0)
declared = kInterfaceOnlyHashStr;
else if (declaredLong == 1)
declared = kExternalizableHashStr;
else
declared = Long.toHexString(declaredLong).toUpperCase();
while (declared.length() < 16){
declared = "0" + declared;
}
hash = hash + ":" + declared;
return ":" + hash;
}
/**
* Creates a repository ID for a sequence. This is for expert users only as
* this method assumes the object passed is an array. If passed an object
* that is not an array, it will produce a rep id for a sequence of zero
* length. This would be an error.
* @param ser The Java object to create a repository ID for
**/
public static String createSequenceRepID(java.lang.Object ser){
return createSequenceRepID(ser.getClass());
}
/**
* Creates a repository ID for a sequence. This is for expert users only as
* this method assumes the object passed is an array. If passed an object
* that is not an array, it will produce a malformed rep id.
* @param clazz The Java class to create a repository ID for
**/
public static String createSequenceRepID(java.lang.Class clazz){
synchronized (classSeqToRepStr){
String repid = (String)classSeqToRepStr.get(clazz);
if (repid != null)
return repid;
Class originalClazz = clazz;
Class type = null;
int numOfDims = 0;
while ((type = clazz.getComponentType()) != null) {
numOfDims++;
clazz = type;
}
if (clazz.isPrimitive())
repid = kValuePrefix + originalClazz.getName() + kPrimitiveSequenceValueHash;
else {
StringBuffer buf = new StringBuffer();
buf.append(kValuePrefix);
while(numOfDims-- > 0) {
buf.append("[");
}
buf.append("L");
buf.append(convertToISOLatin1(clazz.getName()));
buf.append(";");
buf.append(createHashString(clazz));
repid = buf.toString();
}
classSeqToRepStr.put(originalClazz,repid);
return repid;
}
}
public static String createForSpecialCase(java.lang.Class clazz){
if (clazz.isArray()){
return createSequenceRepID(clazz);
}
else {
return (String)kSpecialCasesRepIDs.get(clazz);
}
}
public static String createForSpecialCase(java.io.Serializable ser){
Class clazz = ser.getClass();
if (clazz.isArray()){
return createSequenceRepID(ser);
}
else
return createForSpecialCase(clazz);
}
/**
* Creates a repository ID for a normal Java Type.
* @param ser The Java object to create a repository ID for
* @exception com.sun.corba.se.impl.io.TypeMismatchException if ser implements the
* org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
**/
public static String createForJavaType(java.io.Serializable ser)
throws com.sun.corba.se.impl.io.TypeMismatchException
{
synchronized (classToRepStr) {
String repid = createForSpecialCase(ser);
if (repid != null)
return repid;
Class clazz = ser.getClass();
repid = (String)classToRepStr.get(clazz);
if (repid != null)
return repid;
repid = kValuePrefix + convertToISOLatin1(clazz.getName()) +
createHashString(clazz);
classToRepStr.put(clazz, repid);
repStrToClass.put(repid, clazz);
return repid;
}
}
/**
* Creates a repository ID for a normal Java Type.
* @param clz The Java class to create a repository ID for
* @exception com.sun.corba.se.impl.io.TypeMismatchException if ser implements the
* org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
**/
public static String createForJavaType(Class clz)
throws com.sun.corba.se.impl.io.TypeMismatchException
{
synchronized (classToRepStr){
String repid = createForSpecialCase(clz);
if (repid != null)
return repid;
repid = (String)classToRepStr.get(clz);
if (repid != null)
return repid;
repid = kValuePrefix + convertToISOLatin1(clz.getName()) +
createHashString(clz);
classToRepStr.put(clz, repid);
repStrToClass.put(repid, clz);
return repid;
}
}
/**
* Creates a repository ID for an IDL Java Type.
* @param ser The IDL Value object to create a repository ID for
* @param major The major version number
* @param minor The minor version number
* @exception com.sun.corba.se.impl.io.TypeMismatchException if ser does not implement the
* org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL Value type.
**/
public static String createForIDLType(Class ser, int major, int minor)
throws com.sun.corba.se.impl.io.TypeMismatchException
{
synchronized (classIDLToRepStr){
String repid = (String)classIDLToRepStr.get(ser);
if (repid != null)
return repid;
repid = kIDLPrefix + convertToISOLatin1(ser.getName()).replace('.','/') +
":" + major + "." + minor;
classIDLToRepStr.put(ser, repid);
return repid;
}
}
private static String getIdFromHelper(Class clazz){
try {
Class helperClazz = Utility.loadClassForClass(clazz.getName()+"Helper", null,
clazz.getClassLoader(), clazz, clazz.getClassLoader());
Method idMethod = helperClazz.getDeclaredMethod("id", kNoParamTypes);
return (String)idMethod.invoke(null, kNoArgs);
}
catch(java.lang.ClassNotFoundException cnfe)
{
throw new org.omg.CORBA.MARSHAL(cnfe.toString());
}
catch(java.lang.NoSuchMethodException nsme)
{
throw new org.omg.CORBA.MARSHAL(nsme.toString());
}
catch(java.lang.reflect.InvocationTargetException ite)
{
throw new org.omg.CORBA.MARSHAL(ite.toString());
}
catch(java.lang.IllegalAccessException iae)
{
throw new org.omg.CORBA.MARSHAL(iae.toString());
}
}
/**
* Createa a repository ID for the type if it is either a java type
* or an IDL type.
* @param type The type to create rep. id for
* @return The rep. id.
**/
public static String createForAnyType(Class type) {
try{
if (type.isArray())
return createSequenceRepID(type);
else if (IDLEntity.class.isAssignableFrom(type))
{
try{
return getIdFromHelper(type);
}
catch(Throwable t) {
return createForIDLType(type, 1, 0);
}
}
else return createForJavaType(type);
}
catch(com.sun.corba.se.impl.io.TypeMismatchException e){
return null;
}
}
public static boolean isAbstractBase(Class clazz) {
return (clazz.isInterface() &&
IDLEntity.class.isAssignableFrom(clazz) &&
(!ValueBase.class.isAssignableFrom(clazz)) &&
(!org.omg.CORBA.Object.class.isAssignableFrom(clazz)));
}
/**
* Convert strings with illegal IDL identifier characters.
* <p>
* Section 5.5.7 of OBV spec.
*/
private static String convertToISOLatin1 (String name) {
int length = name.length();
if (length == 0) {
return name;
}
StringBuffer buffer = null;
for (int i = 0; i < length; i++) {
char c = name.charAt(i);
if (c > 255 || IDL_IDENTIFIER_CHARS[c] == 0) {
// We gotta convert. Have we already started?
if (buffer == null) {
// No, so get set up...
buffer = new StringBuffer(name.substring(0,i));
}
// Convert the character into the IDL escape syntax...
buffer.append(
"\\U" +
(char)ASCII_HEX[(c & 0xF000) >>> 12] +
(char)ASCII_HEX[(c & 0x0F00) >>> 8] +
(char)ASCII_HEX[(c & 0x00F0) >>> 4] +
(char)ASCII_HEX[(c & 0x000F)]);
} else {
if (buffer != null) {
buffer.append(c);
}
}
}
if (buffer != null) {
name = buffer.toString();
}
return name;
}
/**
* Convert strings with ISO Latin 1 escape sequences back to original strings.
* <p>
* Section 5.5.7 of OBV spec.
*/
private static String convertFromISOLatin1 (String name) {
int index = -1;
StringBuffer buf = new StringBuffer(name);
while ((index = buf.toString().indexOf("\\U")) != -1){
String str = "0000" + buf.toString().substring(index+2, index+6);
// Convert Hexadecimal
byte[] buffer = new byte[(str.length() - 4) / 2];
for (int i=4, j=0; i < str.length(); i +=2, j++) {
buffer[j] = (byte)((ORBUtility.hexOf(str.charAt(i)) << 4) & 0xF0);
buffer[j] |= (byte)((ORBUtility.hexOf(str.charAt(i+1)) << 0) & 0x0F);
}
buf = new StringBuffer(delete(buf.toString(), index, index+6));
buf.insert(index, (char)buffer[1]);
}
return buf.toString();
}
private static String delete(String str, int from, int to)
{
return str.substring(0, from) + str.substring(to, str.length());
}
private static String replace(String target, String arg, String source)
{
int i = 0;
i = target.indexOf(arg);
while(i != -1)
{
String left = target.substring(0, i);
String right = target.substring(i+arg.length());
target = new String(left+source+right);
i = target.indexOf(arg);
}
return target;
}
/*
* Load a class and check that it is assignable to a given type.
* @param className the class name.
* @param remoteCodebase the codebase to use. May be null.
* @param loader the class loader of last resort. May be null.
* @param expectedType the expected type. May be null.
* @return the loaded class.
*/
private Class loadClassOfType (String className,
String remoteCodebase,
ClassLoader loader,
Class expectedType,
ClassLoader expectedTypeClassLoader)
throws ClassNotFoundException {
Class loadedClass = null;
try {
//Sequence finding of the stubs according to spec
try{
//If-else is put here for speed up of J2EE.
//According to the OMG spec, the if clause is not dead code.
//It can occur if some compiler has allowed generation
//into org.omg.stub hierarchy for non-offending
//classes. This will encourage people to
//produce non-offending class stubs in their own hierarchy.
if(!PackagePrefixChecker
.hasOffendingPrefix(PackagePrefixChecker
.withoutPackagePrefix(className))){
loadedClass = Util.loadClass
(PackagePrefixChecker.withoutPackagePrefix(className),
remoteCodebase,
loader);
} else {
loadedClass = Util.loadClass
(className,
remoteCodebase,
loader);
}
} catch (ClassNotFoundException cnfe) {
loadedClass = Util.loadClass
(className,
remoteCodebase,
loader);
}
if (expectedType == null)
return loadedClass;
} catch (ClassNotFoundException cnfe) {
if (expectedType == null)
throw cnfe;
}
// If no class was not loaded, or if the loaded class is not of the
// correct type, make a further attempt to load the correct class
// using the classloader of the expected type.
// _REVISIT_ Is this step necessary, or should the Util,loadClass
// algorithm always produce a valid class if the setup is correct?
// Does the OMG standard algorithm need to be changed to include
// this step?
if (loadedClass == null || !expectedType.isAssignableFrom(loadedClass)) {
if (expectedType.getClassLoader() != expectedTypeClassLoader)
throw new IllegalArgumentException("expectedTypeClassLoader not class loader of expectedType.");
if (expectedTypeClassLoader != null)
loadedClass = expectedTypeClassLoader.loadClass(className);
else
loadedClass = ORBClassLoader.loadClass(className);
}
return loadedClass;
}
/**
* Checks to see if the FullValueDescription should be retrieved.
* @exception Throws IOException if suids do not match or if the repositoryID
* is not an RMIValueType
*/
public static boolean useFullValueDescription(Class clazz, String repositoryID)
throws IOException{
String clazzRepIDStr = createForAnyType(clazz);
if (clazzRepIDStr.equals(repositoryID))
return false;
RepositoryId_1_3 targetRepid;
RepositoryId_1_3 clazzRepid;
synchronized(cache) {
// to avoid race condition where multiple threads could be
// accessing this method, and their access to the cache may
// be interleaved giving unexpected results
targetRepid = cache.getId(repositoryID);
clazzRepid = cache.getId(clazzRepIDStr);
}
if ((targetRepid.isRMIValueType()) && (clazzRepid.isRMIValueType())){
if (!targetRepid.getSerialVersionUID().equals(clazzRepid.getSerialVersionUID())) {
String mssg = "Mismatched serialization UIDs : Source (Rep. ID" +
clazzRepid + ") = " +
clazzRepid.getSerialVersionUID() + " whereas Target (Rep. ID " + repositoryID +
") = " + targetRepid.getSerialVersionUID();
throw new IOException(mssg);
} else {
return true;
}
} else {
throw new IOException("The repository ID is not of an RMI value type (Expected ID = " + clazzRepIDStr + "; Received ID = " + repositoryID +")");
}
}
}

View File

@@ -1,251 +0,0 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Licensed Materials - Property of IBM
* RMI-IIOP v1.0
* Copyright IBM Corp. 1998 1999 All Rights Reserved
*
*/
package com.sun.corba.se.impl.orbutil;
import javax.rmi.CORBA.Util;
import javax.rmi.PortableRemoteObject;
import java.util.Hashtable;
import java.util.Stack;
import java.io.IOException;
import java.util.EmptyStackException;
import com.sun.corba.se.impl.util.Utility;
import com.sun.corba.se.impl.io.IIOPInputStream;
import com.sun.corba.se.impl.io.IIOPOutputStream;
import com.sun.corba.se.impl.util.RepositoryId;
import com.sun.corba.se.impl.util.Utility;
import org.omg.CORBA.TCKind;
import org.omg.CORBA.MARSHAL;
import org.omg.CORBA.CompletionStatus;
import org.omg.CORBA.portable.IndirectionException;
import com.sun.org.omg.SendingContext.CodeBase;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* This class overrides behavior of our current ValueHandlerImpl to
* provide backwards compatibility with JDK 1.3.0.
*/
public class ValueHandlerImpl_1_3 extends com.sun.corba.se.impl.io.ValueHandlerImpl {
public ValueHandlerImpl_1_3(){
super();
}
public ValueHandlerImpl_1_3(boolean isInputStream) {
super(isInputStream);
}
/**
* Writes the value to the stream using java semantics.
* @param out The stream to write the value to
* @param value The value to be written to the stream
**/
public void writeValue(org.omg.CORBA.portable.OutputStream _out, java.io.Serializable value) {
super.writeValue(_out, value);
}
/**
* Reads a value from the stream using java semantics.
* @param in The stream to read the value from
* @param clazz The type of the value to be read in
* @param sender The sending context runtime
**/
public java.io.Serializable readValue(org.omg.CORBA.portable.InputStream _in,
int offset,
java.lang.Class clazz,
String repositoryID,
org.omg.SendingContext.RunTime _sender)
{
return super.readValue(_in, offset, clazz, repositoryID, _sender);
}
/**
* Returns the repository ID for the given RMI value Class.
* @param clz The class to return a repository ID for.
* @return the repository ID of the Class.
**/
public java.lang.String getRMIRepositoryID(java.lang.Class clz) {
return RepositoryId_1_3.createForJavaType(clz);
}
/**
* Indicates whether the given Class performs custom or
* default marshaling.
* @param clz The class to test for custom marshaling.
* @return True if the class performs custom marshaling, false
* if it does not.
**/
public boolean isCustomMarshaled(java.lang.Class clz) {
return super.isCustomMarshaled(clz);
}
/**
* Returns the CodeBase for this ValueHandler. This is used by
* the ORB runtime. The server sends the service context containing
* the IOR for this CodeBase on the first GIOP reply. The clients
* do the same on the first GIOP request.
* @return the SendingContext.CodeBase of this ValueHandler.
**/
public org.omg.SendingContext.RunTime getRunTimeCodeBase() {
return super.getRunTimeCodeBase();
}
/**
* If the value contains a writeReplace method then the result
* is returned. Otherwise, the value itself is returned.
* @return the true value to marshal on the wire.
**/
public java.io.Serializable writeReplace(java.io.Serializable value) {
return super.writeReplace(value);
}
// methods supported for backward compatability so that the appropriate
// Rep-id calculations take place based on the ORB version
/**
* Returns a boolean of whether or not RepositoryId indicates
* FullValueDescriptor.
* used for backward compatability
*/
public boolean useFullValueDescription(Class clazz, String repositoryID)
throws IOException
{
return RepositoryId_1_3.useFullValueDescription(clazz, repositoryID);
}
public String getClassName(String id)
{
RepositoryId_1_3 repID = RepositoryId_1_3.cache.getId(id);
return repID.getClassName();
}
public Class getClassFromType(String id)
throws ClassNotFoundException
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.getClassFromType();
}
public Class getAnyClassFromType(String id)
throws ClassNotFoundException
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.getAnyClassFromType();
}
public String createForAnyType(Class cl)
{
return RepositoryId_1_3.createForAnyType(cl);
}
public String getDefinedInId(String id)
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.getDefinedInId();
}
public String getUnqualifiedName(String id)
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.getUnqualifiedName();
}
public String getSerialVersionUID(String id)
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.getSerialVersionUID();
}
public boolean isAbstractBase(Class clazz)
{
return RepositoryId_1_3.isAbstractBase(clazz);
}
public boolean isSequence(String id)
{
RepositoryId_1_3 repId = RepositoryId_1_3.cache.getId(id);
return repId.isSequence();
}
/**
* Preserves the incorrect 1.3 behavior which truncates Java chars in
* arrays to 8-bit CORBA chars. Bug 4367783. This enables us to
* continue interoperating with our legacy ORBs. If this goes into
* Ladybird, then Ladybird and Kestrel will interoperate as long as
* people don't use chars greater than 8-bits.
*/
protected void writeCharArray(org.omg.CORBA_2_3.portable.OutputStream out,
char[] array,
int offset,
int length)
{
out.write_char_array(array, offset, length);
}
/**
* Preserves the incorrect 1.3 behavior which truncates Java chars in
* arrays to 8-bit CORBA chars. Bug 4367783. This enables us to
* continue interoperating with our legacy ORBs. If this goes into
* Ladybird, then Ladybird and Kestrel will interoperate as long as
* people don't use chars greater than 8-bits.
*/
protected void readCharArray(org.omg.CORBA_2_3.portable.InputStream in,
char[] array,
int offset,
int length)
{
in.read_char_array(array, offset, length);
}
protected final String getOutputStreamClassName() {
return "com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3";
}
protected final String getInputStreamClassName() {
return "com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3";
}
/**
* Our JDK 1.3 and JDK 1.3.1 behavior subclasses override this.
* The correct behavior is for a Java char to map to a CORBA wchar,
* but our older code mapped it to a CORBA char.
*/
protected TCKind getJavaCharTCKind() {
return TCKind.tk_char;
}
}

View File

@@ -1,77 +0,0 @@
/*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.corba.se.impl.orbutil;
import org.omg.CORBA.TCKind;
/**
* This class overrides behavior of our current ValueHandlerImpl to
* provide backwards compatibility with JDK 1.3.1.
*/
public class ValueHandlerImpl_1_3_1
extends com.sun.corba.se.impl.io.ValueHandlerImpl
{
public ValueHandlerImpl_1_3_1() {}
public ValueHandlerImpl_1_3_1(boolean isInputStream) {
super(isInputStream);
}
/**
* Our JDK 1.3 and JDK 1.3.1 behavior subclasses override this.
* The correct behavior is for a Java char to map to a CORBA wchar,
* but our older code mapped it to a CORBA char.
*/
protected TCKind getJavaCharTCKind() {
return TCKind.tk_char;
}
/**
* RepositoryId_1_3_1 performs an incorrect repId calculation
* when using serialPersistentFields and one of the fields no longer
* exists on the class itself.
*/
public boolean useFullValueDescription(Class clazz, String repositoryID)
throws java.io.IOException
{
return RepositoryId_1_3_1.useFullValueDescription(clazz, repositoryID);
}
/**
* Installs the legacy IIOPOutputStream_1_3_1 which does
* PutFields/GetFields incorrectly. Bug 4407244.
*/
protected final String getOutputStreamClassName() {
return "com.sun.corba.se.impl.orbutil.IIOPOutputStream_1_3_1";
}
/**
* Installs the legacy IIOPInputStream_1_3_1 which does
* PutFields/GetFields incorrectly. Bug 4407244.
*/
protected final String getInputStreamClassName() {
return "com.sun.corba.se.impl.orbutil.IIOPInputStream_1_3_1";
}
}

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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
@@ -23,9 +23,9 @@
# questions.
#
orbd.usage=Utilizzo: {0} <opzioni> \n\ndove <opzioni> include:\n -port Porta di attivazione da cui avviare ORBD, valore predefinito 1049 (opzionale)\n -defaultdb Directory per i file ORBD, valore predefinito "./orb.db" (opzionale)\n -serverid ID server per ORBD, valore predefinito 1 (opzionale)\n -ORBInitialPort Porta iniziale (richiesta)\n -ORBInitialHost HostName iniziale (richiesto)\n
orbd.usage=Uso: {0} <opzioni> \n\ndove <opzioni> include:\n -port Porta di attivazione da cui avviare ORBD, valore predefinito 1049 (opzionale)\n -defaultdb Directory per i file ORBD, valore predefinito "./orb.db" (opzionale)\n -serverid ID server per ORBD, valore predefinito 1 (opzionale)\n -ORBInitialPort Porta iniziale (richiesta)\n -ORBInitialHost HostName iniziale (richiesto)\n
servertool.usage=Utilizzo: {0} <opzioni> \n\ndove <opzioni> include:\n -ORBInitialPort Porta iniziale (richiesta)\n -ORBInitialHost HostName iniziale (richiesto)\n
servertool.usage=Uso: {0} <opzioni> \n\ndove <opzioni> include:\n -ORBInitialPort Porta iniziale (richiesta)\n -ORBInitialHost HostName iniziale (richiesto)\n
servertool.banner=\n\nBenvenuti in Java IDL Server Tool \nimmettere i comandi quando richiesto \n
servertool.shorthelp=\n\n\tComandi disponibili:\n\t-------------------- \n
servertool.baddef=Definizione server errata: {0}
@@ -82,13 +82,13 @@ servertool.quit1=esci dall'applicazione corrente
servertool.help=\thelp\n\tOR\n\thelp <nome comando>\n
servertool.help1=Guida
servertool.orbidmap=\tUtilizzo: orblist [ -serverid <id server> | -applicationName <nome> ]\n
servertool.orbidmap=\tUso: orblist [ -serverid <id server> | -applicationName <nome> ]\n
servertool.orbidmap1=lista nomi orb e relativa mappatura
servertool.orbidmap2=\n\tId ORB\t\tNome ORB\n\t------\t\t--------\n
pnameserv.success=NameServer persistente avviato correttamente
bootstrap.usage=Utilizzo: {0} <opzioni> \n\ndove <opzioni> include:\n -ORBInitialPort Porta iniziale (richiesta)\n -InitialServicesFile File contenente la lista dei servizi iniziali (richiesto)\n
bootstrap.usage=Uso: {0} <opzioni> \n\ndove <opzioni> include:\n -ORBInitialPort Porta iniziale (richiesta)\n -InitialServicesFile File contenente la lista dei servizi iniziali (richiesto)\n
bootstrap.success=impostazione porta su {0} e lettura servizi da {1} in corso
bootstrap.filenotreadable=il file {0} non \u00E8 leggibile
bootstrap.filenotfound=impossibile trovare il file {0}

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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
@@ -60,12 +60,12 @@ servertool.getserverid=\n\tgetserverid [ -applicationName <name> ]\n
servertool.getserverid1=applicationName\u306E\u30B5\u30FC\u30D0\u30FCID\u3092\u8FD4\u3057\u307E\u3059
servertool.getserverid2=\tapplicationName {0}\u306E\u30B5\u30FC\u30D0\u30FCID\u306F{1}\u3067\u3059
servertool.list=\n\t\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059\n
servertool.list=\n\tlist\n
servertool.list1=\u767B\u9332\u3055\u308C\u305F\u3059\u3079\u3066\u306E\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059
servertool.list2=\n\t\u30B5\u30FC\u30D0\u30FCID\t\u30B5\u30FC\u30D0\u30FC\u306E\u30AF\u30E9\u30B9\u540D\t\t\u30B5\u30FC\u30D0\u30FC\u30FB\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\n\t---------\t----------------\t\t----------------------\n
servertool.listactive=\n\t\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059
servertool.listactive=\n\tlistactive
servertool.listactive1=\u73FE\u5728\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059
servertool.listappnames=\tapplicationNames\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059\n
servertool.listappnames=\tlistappnames\n
servertool.listappnames1=\u73FE\u5728\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u308BapplicationNames\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059
servertool.listappnames2=\u73FE\u5728\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u308B\u30B5\u30FC\u30D0\u30FCapplicationNames:
@@ -76,7 +76,7 @@ servertool.startserver=\n\tstartup [ -serverid <server id> | -applicationName <n
servertool.startserver1=\u767B\u9332\u3055\u308C\u305F\u30B5\u30FC\u30D0\u30FC\u3092\u8D77\u52D5\u3057\u307E\u3059
servertool.startserver2=\t\u30B5\u30FC\u30D0\u30FC\u306E\u8D77\u52D5\u306B\u6210\u529F\u3057\u307E\u3057\u305F\u3002
servertool.quit=\n\t\u7D42\u4E86\u3057\u307E\u3059\n
servertool.quit=\n\tquit\n
servertool.quit1=\u3053\u306E\u30C4\u30FC\u30EB\u3092\u7D42\u4E86\u3057\u307E\u3059
servertool.help=\thelp\n\t\u307E\u305F\u306F\n\thelp <command name>\n

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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 (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 2005, Oracle and/or its affiliates. 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

@@ -98,6 +98,7 @@ import com.sun.corba.se.impl.logging.OMGSystemException ;
import com.sun.corba.se.impl.presentation.rmi.PresentationManagerImpl ;
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
import sun.awt.AppContext;
public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
implements Broker, TypeCodeFactory
@@ -173,14 +174,7 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
protected MonitoringManager monitoringManager;
// There is only one instance of the PresentationManager
// that is shared between all ORBs. This is necessary
// because RMI-IIOP requires the PresentationManager in
// places where no ORB is available, so the PresentationManager
// must be global. It is initialized here as well.
protected static PresentationManager globalPM = null ;
static {
private static PresentationManager setupPresentationManager() {
staticWrapper = ORBUtilSystemException.get(
CORBALogDomains.RPC_PRESENTATION ) ;
@@ -220,10 +214,11 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
}
) ;
globalPM = new PresentationManagerImpl( useDynamicStub ) ;
globalPM.setStubFactoryFactory( false,
PresentationManager pm = new PresentationManagerImpl( useDynamicStub ) ;
pm.setStubFactoryFactory( false,
PresentationDefaults.getStaticStubFactoryFactory() ) ;
globalPM.setStubFactoryFactory( true, dynamicStubFactoryFactory ) ;
pm.setStubFactoryFactory( true, dynamicStubFactoryFactory ) ;
return pm;
}
public void destroy() {
@@ -234,11 +229,19 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
byteBufferPool = null;
}
/** Get the single instance of the PresentationManager
/**
* Returns the Presentation Manager for the current thread group, using the ThreadGroup-specific
* AppContext to hold it. Creates and records one if needed.
*/
public static PresentationManager getPresentationManager()
{
return globalPM ;
AppContext ac = AppContext.getAppContext();
PresentationManager pm = (PresentationManager) ac.get(PresentationManager.class);
if (pm == null) {
pm = setupPresentationManager();
ac.put(PresentationManager.class, pm);
}
return pm;
}
/** Get the appropriate StubFactoryFactory. This
@@ -248,8 +251,9 @@ public abstract class ORB extends com.sun.corba.se.org.omg.CORBA.ORB
public static PresentationManager.StubFactoryFactory
getStubFactoryFactory()
{
boolean useDynamicStubs = globalPM.useDynamicStubs() ;
return globalPM.getStubFactoryFactory( useDynamicStubs ) ;
PresentationManager gPM = getPresentationManager();
boolean useDynamicStubs = gPM.useDynamicStubs() ;
return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
protected ORB()

View File

@@ -68,7 +68,7 @@ Compile.parsing=%0\u306E\u89E3\u6790\u4E2D
Compile.parseDone=\u5B8C\u4E86 - %0
Compile.generating=%0\u306E\u751F\u6210\u4E2D
Compile.genDone=\u5B8C\u4E86 - %0
Deprecated.keyword=\u8B66\u544A: \u30AD\u30FC\u30EF\u30FC\u30C9`%0'\u306F\u63A8\u5968\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002
Deprecated.keyword=\u8B66\u544A: \u30AD\u30FC\u30EF\u30FC\u30C9`%0'\u306F\u975E\u63A8\u5968\u3067\u3059\u3002
EvaluationException.1=%0\u6F14\u7B97\u5B50\u306E\u30AA\u30DA\u30E9\u30F3\u30C9\u306B\u4E00\u8CAB\u6027\u304C\u3042\u308A\u307E\u305B\u3093: %1\u304A\u3088\u3073%2\u3002
EvaluationException.2=%0\u6F14\u7B97\u5B50\u306E\u30AA\u30DA\u30E9\u30F3\u30C9\u306F\u3001%1\u3067\u306F\u306A\u304F\u6570\u5024\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002
EvaluationException.or=\u30D3\u30C3\u30C8\u5358\u4F4D\u306EOR\u6F14\u7B97
@@ -114,7 +114,7 @@ ParseException.badRepIDPrefix=%0 (\u884C%1): \u30A4\u30F3\u30BF\u30D5\u30A7\u30F
ParseException.badState=%0 (\u884C%1): %2\u306F\u30B9\u30C6\u30FC\u30C8\u30D5\u30EB\u30FB\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306B\u3067\u304D\u307E\u305B\u3093\u3002\u8907\u6570\u306E\u30B9\u30C6\u30FC\u30C8\u30D5\u30EB\u89AA\u304C\u3042\u308A\u307E\u3059\u3002\n%3\n%4
ParseException.branchLabel=%0 (\u884C%1): case %2\u306F\u3059\u3067\u306B\u5BA3\u8A00\u3055\u308C\u3066\u3044\u307E\u3059\u3002\n%3\n%4
ParseException.branchName=%0 (\u884C%1): %2\u3068\u3044\u3046\u540D\u524D\u306E\u5206\u5C90\u306F\u3059\u3067\u306B\u5BA3\u8A00\u3055\u308C\u3066\u3044\u307E\u3059\u3002\n%3\n%4
ParseException.duplicateInit=%0 (\u884C%1): \u521D\u671F\u5316\u5B50\u306B\u306F\u524D\u306E\u521D\u671F\u5316\u5B50\u3068\u540C\u3058\u7F72\u540D\u304C\u3042\u308A\u307E\u3059\u3002\n%2\n%3
ParseException.duplicateInit=%0 (\u884C%1): \u521D\u671F\u5316\u5B50\u306B\u306F\u524D\u306E\u521D\u671F\u5316\u5B50\u3068\u540C\u3058\u30B7\u30B0\u30CD\u30C1\u30E3\u304C\u3042\u308A\u307E\u3059\u3002\n%2\n%3
ParseException.duplicateState=%0 (\u884C%1): \u30C7\u30FC\u30BF\u30FB\u30E1\u30F3\u30D0\u30FC%2\u306E\u540D\u524D\u304C\u524D\u306E\u30C7\u30FC\u30BF\u30FB\u30E1\u30F3\u30D0\u30FC\u3068\u540C\u3058\u3067\u3059\u3002\n%3\n%4
ParseException.elseNoIf=%0 (\u884C%1): \u4E00\u81F4\u3059\u308B#if\u304C\u306A\u3044#else\u304C\u691C\u51FA\u3055\u308C\u307E\u3057\u305F\u3002\n%2\n%3
ParseException.endNoIf=%0 (\u884C%1): \u4E00\u81F4\u3059\u308B#if\u304C\u306A\u3044#endif\u304C\u691C\u51FA\u3055\u308C\u307E\u3057\u305F\u3002\n%2\n%3
@@ -146,7 +146,7 @@ ParseException.selfInherit=%0 (\u884C%1): %2\u3092\u305D\u308C\u81EA\u4F53\u304B
ParseException.stringTooLong=%0 (\u884C%1): "%2"\u306F%3\u6587\u5B57\u4EE5\u5185\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\n%4\n%5
ParseException.syntax1=%0 (\u884C%1): `%2'\u304C\u5FC5\u8981\u3067\u3059\u304C\u3001`%3'\u304C\u691C\u51FA\u3055\u308C\u307E\u3057\u305F\u3002\n%4\n%5
ParseException.syntax2=%0 (\u884C%1): %2\u306E1\u3064\u304C\u5FC5\u8981\u3067\u3059\u304C\u3001`%3'\u304C\u691C\u51FA\u3055\u308C\u307E\u3057\u305F\u3002\n%4\n%5
ParseException.unclosed=%0: \u30B3\u30E1\u30F3\u30C8\u3067\u4E88\u671F\u3057\u306A\u3044EOF\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002
ParseException.unclosed=%0: \u30B3\u30E1\u30F3\u30C8\u3067\u4E88\u671F\u3057\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u306E\u7D42\u308F\u308A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002
ParseException.undeclaredType=%0 (\u884C%1): %2\u306F\u5BA3\u8A00\u3055\u308C\u3066\u3044\u306A\u3044\u578B\u3067\u3059\u3002\n%3\n%4
ParseException.warning=%0 (\u884C%1): %2\n%3\n%4
ParseException.constExprType=%0 (\u884C%1): \u5B9A\u6570\u5F0F\u306E\u578B\u306F%2\u3067\u3059\u304C\u3001%3\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002\n%4\n%5
@@ -173,5 +173,5 @@ default=\u30A8\u30E9\u30FC\u3002\u5B58\u5728\u3057\u306A\u3044\u30E1\u30C3\u30BB
# -i, -d, -keep, -emitAll, -noWarn, -v, -verbose, -version, #define
# Do not translate the string "java com.sun.tools.corba.se.idl.Compile"
usage=\u30B3\u30F3\u30D1\u30A4\u30E9\u306E\u4F7F\u7528\u65B9\u6CD5:\n\ java com.sun.tools.corba.se.idl.Compile [options] <idl file>\n<idl file>\u306FIDL\u5B9A\u7FA9\u3092\u542B\u3080\u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3067\u3001\n[options]\u306F\u6B21\u306B\u30EA\u30B9\u30C8\u3059\u308B\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u7D44\u5408\u305B\u3067\u3059\u3002\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\n\u7701\u7565\u53EF\u80FD\u3067\u3001\u4EFB\u610F\u306E\u9806\u5E8F\u3067\u8868\u793A\u3055\u308C\u307E\u3059\u3002<idl file>\u306F\u5FC5\u9808\u3067\u3001\n\u6700\u5F8C\u306B\u8868\u793A\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002\n\ \n\u30AA\u30D7\u30B7\u30E7\u30F3:\n-d <symbol> IDL\u30D5\u30A1\u30A4\u30EB\u306E\u6B21\u306E\u884C\u3068\n\ \u540C\u3058\u3067\u3059: #define <symbol>\n-emitAll #included\u30D5\u30A1\u30A4\u30EB\u3067\u898B\u3064\u304B\u3063\u305F\u30BF\u30A4\u30D7\u3092\u542B\u3080\u3001\u3059\u3079\u3066\u306E\u30BF\u30A4\u30D7\u3092\n\ \u767A\u884C\u3057\u307E\u3059\u3002\n-i <include path> \u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u73FE\u5728\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u30A4\u30F3\u30AF\u30EB\u30FC\u30C9\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u304C\n\ \u30B9\u30AD\u30E3\u30F3\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\u5225\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u8FFD\u52A0\u3057\u307E\u3059\u3002\n-keep \u751F\u6210\u3055\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u304C\u3059\u3067\u306B\u5B58\u5728\u3059\u308B\u5834\u5408\u306F\u3001\u4E0A\u66F8\u304D\n\ \u3057\u307E\u305B\u3093\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u4E0A\u66F8\u304D\u3055\u308C\u307E\u3059\u3002\n-noWarn \u8B66\u544A\u3092\u51FA\u3055\u306A\u3044\u3088\u3046\u306B\u3057\u307E\u3059\u3002\n-v, -verbose \u8A73\u7D30\u30E2\u30FC\u30C9\u3002\n-version \u30D0\u30FC\u30B8\u30E7\u30F3\u756A\u53F7\u3092\u8868\u793A\u3057\u307E\u3059\u3002\n
usage=\u30B3\u30F3\u30D1\u30A4\u30E9\u306E\u4F7F\u7528\u65B9\u6CD5:\n java com.sun.tools.corba.se.idl.Compile [options] <idl file>\n<idl file>\u306FIDL\u5B9A\u7FA9\u3092\u542B\u3080\u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3067\u3001\n[options]\u306F\u6B21\u306B\u30EA\u30B9\u30C8\u3059\u308B\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u7D44\u5408\u305B\u3067\u3059\u3002\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\n\u7701\u7565\u53EF\u80FD\u3067\u3001\u4EFB\u610F\u306E\u9806\u5E8F\u3067\u8868\u793A\u3055\u308C\u307E\u3059\u3002<idl file>\u306F\u5FC5\u9808\u3067\u3001\n\u6700\u5F8C\u306B\u8868\u793A\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002\n \n\u30AA\u30D7\u30B7\u30E7\u30F3:\n-d <symbol> IDL\u30D5\u30A1\u30A4\u30EB\u306E\u6B21\u306E\u884C\u3068\n \u540C\u3058\u3067\u3059: #define <symbol>\n-emitAll #included\u30D5\u30A1\u30A4\u30EB\u3067\u898B\u3064\u304B\u3063\u305F\u30BF\u30A4\u30D7\u3092\u542B\u3080\u3001\u3059\u3079\u3066\u306E\u30BF\u30A4\u30D7\u3092\n \u767A\u884C\u3057\u307E\u3059\u3002\n-i <include path> \u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u73FE\u5728\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u30A4\u30F3\u30AF\u30EB\u30FC\u30C9\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u304C\n \u30B9\u30AD\u30E3\u30F3\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\u5225\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u8FFD\u52A0\u3057\u307E\u3059\u3002\n-keep \u751F\u6210\u3055\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u304C\u3059\u3067\u306B\u5B58\u5728\u3059\u308B\u5834\u5408\u306F\u3001\u4E0A\u66F8\u304D\n \u3057\u307E\u305B\u3093\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u4E0A\u66F8\u304D\u3055\u308C\u307E\u3059\u3002\n-noWarn \u8B66\u544A\u3092\u51FA\u3055\u306A\u3044\u3088\u3046\u306B\u3057\u307E\u3059\u3002\n-v, -verbose \u8A73\u7D30\u30E2\u30FC\u30C9\u3002\n-version \u30D0\u30FC\u30B8\u30E7\u30F3\u756A\u53F7\u3092\u8868\u793A\u3057\u307E\u3059\u3002\n

View File

@@ -173,5 +173,5 @@ default=\u9519\u8BEF! \u8BF7\u6C42\u4E86\u4E0D\u5B58\u5728\u7684\u6D88\u606F\u30
# -i, -d, -keep, -emitAll, -noWarn, -v, -verbose, -version, #define
# Do not translate the string "java com.sun.tools.corba.se.idl.Compile"
usage=\u7F16\u8BD1\u5668\u7528\u6CD5:\n\ java com.sun.tools.corba.se.idl.Compile [\u9009\u9879] <idl \u6587\u4EF6>\n\u5176\u4E2D, <idl \u6587\u4EF6> \u662F\u5305\u542B IDL \u5B9A\u4E49\u7684\u6587\u4EF6\u7684\u540D\u79F0, \u800C\n[\u9009\u9879] \u662F\u4E0B\u5217\u9009\u9879\u7684\u4EFB\u610F\u7EC4\u5408\u3002\u8FD9\u4E9B\u9009\u9879\n\u662F\u53EF\u9009\u7684, \u5E76\u4E14\u663E\u793A\u987A\u5E8F\u5E76\u4E0D\u56FA\u5B9A; <idl \u6587\u4EF6> \u662F\u5FC5\u9700\u7684\n\u5E76\u4E14\u5FC5\u987B\u663E\u793A\u5728\u6700\u540E\u3002\n\ \n\u9009\u9879:\n-d <\u7B26\u53F7> \u8FD9\u7B49\u540C\u4E8E IDL \u6587\u4EF6\u4E2D\u7684\n\ \u4E0B\u9762\u4E00\u884C: #define <\u7B26\u53F7>\n-emitAll \u53D1\u51FA\u6240\u6709\u7C7B\u578B, \u5305\u62EC\u5728 #included\n\ \u6587\u4EF6\u4E2D\u627E\u5230\u7684\u7C7B\u578B\u3002\n-i <\u5305\u542B\u8DEF\u5F84> \u9ED8\u8BA4\u60C5\u51B5\u4E0B, \u5C06\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u626B\u63CF\n\ \u5305\u542B\u7684\u6587\u4EF6\u3002\u6B64\u9009\u9879\u5C06\u6DFB\u52A0\u53E6\u4E00\u4E2A\u76EE\u5F55\u3002\n-keep \u5982\u679C\u8981\u751F\u6210\u7684\u6587\u4EF6\u5DF2\u5B58\u5728, \u8BF7\u4E0D\u8981\n\ \u8986\u76D6\u5B83\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u4F1A\u8986\u76D6\u5B83\u3002\n-noWarn \u9690\u85CF\u8B66\u544A\u3002\n-v, -verbose \u8BE6\u7EC6\u6A21\u5F0F\u3002\n-version \u663E\u793A\u7248\u672C\u53F7\u3002\n
usage=\u7F16\u8BD1\u5668\u7528\u6CD5:\n java com.sun.tools.corba.se.idl.Compile [\u9009\u9879] <idl \u6587\u4EF6>\n\u5176\u4E2D, <idl \u6587\u4EF6> \u662F\u5305\u542B IDL \u5B9A\u4E49\u7684\u6587\u4EF6\u7684\u540D\u79F0, \u800C\n[\u9009\u9879] \u662F\u4E0B\u5217\u9009\u9879\u7684\u4EFB\u610F\u7EC4\u5408\u3002\u8FD9\u4E9B\u9009\u9879\n\u662F\u53EF\u9009\u7684, \u5E76\u4E14\u663E\u793A\u987A\u5E8F\u5E76\u4E0D\u56FA\u5B9A; <idl \u6587\u4EF6> \u662F\u5FC5\u9700\u7684\n\u5E76\u4E14\u5FC5\u987B\u663E\u793A\u5728\u6700\u540E\u3002\n \n\u9009\u9879:\n-d <\u7B26\u53F7> \u8FD9\u7B49\u540C\u4E8E IDL \u6587\u4EF6\u4E2D\u7684\n \u4E0B\u9762\u4E00\u884C: #define <\u7B26\u53F7>\n-emitAll \u53D1\u51FA\u6240\u6709\u7C7B\u578B, \u5305\u62EC\u5728 #included\n \u6587\u4EF6\u4E2D\u627E\u5230\u7684\u7C7B\u578B\u3002\n-i <\u5305\u542B\u8DEF\u5F84> \u9ED8\u8BA4\u60C5\u51B5\u4E0B, \u5C06\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u626B\u63CF\n \u5305\u542B\u7684\u6587\u4EF6\u3002\u6B64\u9009\u9879\u5C06\u6DFB\u52A0\u53E6\u4E00\u4E2A\u76EE\u5F55\u3002\n-keep \u5982\u679C\u8981\u751F\u6210\u7684\u6587\u4EF6\u5DF2\u5B58\u5728, \u8BF7\u4E0D\u8981\n \u8986\u76D6\u5B83\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u4F1A\u8986\u76D6\u5B83\u3002\n-noWarn \u9690\u85CF\u8B66\u544A\u3002\n-v, -verbose \u8BE6\u7EC6\u6A21\u5F0F\u3002\n-version \u663E\u793A\u7248\u672C\u53F7\u3002\n

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. 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
@@ -258,6 +258,19 @@ public class UnionGen implements com.sun.tools.corba.se.idl.UnionGen, JavaGenera
{
Vector labels = vectorizeLabels (u.branches (), true);
if (Util.javaName(utype).equals ("boolean")) {
stream.println( "" ) ;
stream.println( " private void verifyDefault (boolean discriminator)" ) ;
stream.println( " {" ) ;
if (labels.contains ("true"))
stream.println (" if ( discriminator )");
else
stream.println (" if ( !discriminator )");
stream.println( " throw new org.omg.CORBA.BAD_OPERATION();" ) ;
stream.println( " }" ) ;
return;
}
stream.println( "" ) ;
stream.println( " private void verifyDefault( " + Util.javaName(utype) +
" value )" ) ;
@@ -763,7 +776,7 @@ public class UnionGen implements com.sun.tools.corba.se.idl.UnionGen, JavaGenera
stream.println (indent + "if (" + disName + ')');
if (firstBranch == null)
stream.println (indent + " throw new org.omg.CORBA.BAD_OPERATION ();");
stream.println (indent + " value._default(" + disName + ");");
else {
stream.println (indent + '{');
index = readBranch (index, indent + " ", firstBranch.typedef.name (),
@@ -774,7 +787,7 @@ public class UnionGen implements com.sun.tools.corba.se.idl.UnionGen, JavaGenera
stream.println (indent + "else");
if (secondBranch == null)
stream.println (indent + " throw new org.omg.CORBA.BAD_OPERATION ();");
stream.println (indent + " value._default(" + disName + ");");
else {
stream.println (indent + '{');
index = readBranch (index, indent + " ", secondBranch.typedef.name (),
@@ -924,20 +937,22 @@ public class UnionGen implements com.sun.tools.corba.se.idl.UnionGen, JavaGenera
firstBranch = secondBranch;
secondBranch = tmp;
}
if (firstBranch != null && secondBranch != null) {
stream.println (indent + "if (" + disName + ')');
if (firstBranch == null)
stream.println (indent + " throw new org.omg.CORBA.BAD_OPERATION ();");
else
{
stream.println (indent + '{');
index = writeBranch (index, indent + " ", name, firstBranch.typedef, stream);
stream.println (indent + '}');
}
stream.println (indent + "else");
if (secondBranch == null)
stream.println (indent + " throw new org.omg.CORBA.BAD_OPERATION ();");
else
{
stream.println (indent + '{');
index = writeBranch (index, indent + " ", name, secondBranch.typedef, stream);
stream.println (indent + '}');
} else if (firstBranch != null) {
stream.println (indent + "if (" + disName + ')');
stream.println (indent + '{');
index = writeBranch (index, indent + " ", name, firstBranch.typedef, stream);
stream.println (indent + '}');
} else {
stream.println (indent + "if (!" + disName + ')');
stream.println (indent + '{');
index = writeBranch (index, indent + " ", name, secondBranch.typedef, stream);
stream.println (indent + '}');

File diff suppressed because one or more lines are too long

View File

@@ -65,4 +65,4 @@ NameModifier.InvalidChar=\u6A21\u5F0F\u4E2D\u5305\u542B\u65E0\u6548\u5B57\u7B26
# -d, -emitAll, -f, -i, -keep, -m, -sep, -pkgPrefix, -td, -v, -verbose, -version, -implbase
# Do not translate the string "java com.sun.tools.corba.se.idl.toJavaPortable.Compile"
#
usage=\u7F16\u8BD1\u5668\u7528\u6CD5:\n\n\ java com.sun.tools.corba.se.idl.toJavaPortable.Compile [\u9009\u9879] <idl \u6587\u4EF6>\n\n\u5176\u4E2D, <idl \u6587\u4EF6> \u662F\u5305\u542B IDL \u5B9A\u4E49\u7684\u6587\u4EF6\u7684\u540D\u79F0, \u800C\n[\u9009\u9879] \u662F\u4E0B\u5217\u9009\u9879\u7684\u4EFB\u610F\u7EC4\u5408\u3002\u9009\u9879\n\u662F\u53EF\u9009\u7684, \u5E76\u4E14\u663E\u793A\u987A\u5E8F\u5E76\u4E0D\u56FA\u5B9A; <idl \u6587\u4EF6> \u662F\u5FC5\u9700\u7684,\n\u5E76\u4E14\u5FC5\u987B\u663E\u793A\u5728\u6700\u540E\u3002\n\ \n\u9009\u9879:\n-d <\u7B26\u53F7> \u8FD9\u7B49\u540C\u4E8E IDL \u6587\u4EF6\u4E2D\u7684\n\ \u4E0B\u9762\u4E00\u884C: #define <\u7B26\u53F7>\n-emitAll \u53D1\u51FA\u6240\u6709\u7C7B\u578B, \u5305\u62EC\u5728 #included \u6587\u4EF6\u4E2D\u627E\u5230\u7684\u7C7B\u578B\u3002\n-f<side> \u5B9A\u4E49\u8981\u53D1\u51FA\u54EA\u4E9B\u7ED1\u5B9A\u3002<side> \u662F client,\n\ server, all, serverTIE, allTIE \u4E4B\u4E00\u3002serverTIE \u548C allTIE\n\ \u5BFC\u81F4\u53D1\u51FA\u59D4\u6D3E\u6A21\u578B\u9AA8\u67B6\u3002\u5982\u679C\u672A\u4F7F\u7528\n\ \u6B64\u6807\u8BB0, \u5C06\u5047\u5B9A\u4E3A -fclient\u3002\n-i <\u5305\u542B\u8DEF\u5F84> \u9ED8\u8BA4\u60C5\u51B5\u4E0B, \u5C06\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u626B\u63CF\n\ \u5305\u542B\u7684\u6587\u4EF6\u3002\u6B64\u9009\u9879\u5C06\u6DFB\u52A0\u53E6\u4E00\u4E2A\u76EE\u5F55\u3002\n-keep \u5982\u679C\u8981\u751F\u6210\u7684\u6587\u4EF6\u5DF2\u5B58\u5728, \u8BF7\u4E0D\u8981\n\ \u8986\u76D6\u5B83\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u4F1A\u8986\u76D6\u5B83\u3002\n-noWarn \u9690\u85CF\u8B66\u544A\u3002\n-oldImplBase \u751F\u6210\u4E0E\u65E7\u7248 (1.4 \u7248\u4E4B\u524D) JDK ORB \u517C\u5BB9\u7684\u9AA8\u67B6\u3002\n-pkgPrefix <t> <\u524D\u7F00> \u5F53\u5728\u6587\u4EF6\u8303\u56F4\u5185\u9047\u5230\u7C7B\u578B\u6216\u6A21\u5757\u540D <t> \u65F6,\n\ \u5728\u4E3A <t> \u751F\u6210\u7684\u6240\u6709\u6587\u4EF6\u7684 Java \u7A0B\u5E8F\u5305\u540D\u524D\n\ \u6DFB\u52A0 <\u524D\u7F00>\u3002\n-pkgTranslate <t> <pkg> \u5F53\u9047\u5230\u7C7B\u578B\u6216\u6A21\u5757\u540D <t> \u65F6, \u5728\n\ \u751F\u6210\u7684 Java \u7A0B\u5E8F\u5305\u4E2D\u5C06\u5176\u66FF\u6362\u4E3A <pkg>\u3002\u8BF7\u6CE8\u610F, \n\ \u5C06\u9996\u5148\u8FDB\u884C pkgPrefix \u66F4\u6539\u3002<t> \u5FC5\u987B\u4E0E\n\ \u5B8C\u6574\u7A0B\u5E8F\u5305\u540D\u5B8C\u5168\u5339\u914D\u3002\u53E6\u5916, <t> \u4E0D\u80FD\u4E3A\n\ org, org.omg \u6216 org.omg \u7684\u4EFB\u4F55\u5B50\u7A0B\u5E8F\u5305\u3002\n-skeletonName <xxx%yyy> \u6839\u636E\u6A21\u5F0F\u547D\u540D\u9AA8\u67B6\u3002\n\ \u9ED8\u8BA4\u503C\u4E3A:\n\ %POA \u8868\u793A POA \u57FA\u7C7B (-fserver \u6216 -fall) \n\ _%ImplBase \u8868\u793A oldImplBase \u57FA\u7C7B\n\ (-oldImplBase \u548C (-fserver \u6216 -fall))\u3002\n-td <dir> \u4F7F\u7528 <dir> \u8868\u793A\u8F93\u51FA\u76EE\u5F55\u4EE5\u4EE3\u66FF\n\ \u5F53\u524D\u76EE\u5F55\u3002\n-tieName <xxx%yyy> \u6839\u636E\u6A21\u5F0F\u547D\u540D tie\u3002\u9ED8\u8BA4\u503C\u4E3A:\n\ %POATie \u8868\u793A POA tie (-fserverTie \u6216 -fallTie) \n\ %_Tie \u8868\u793A oldImplBase tie\n\ (-oldImplBase \u548C (-fserverTie \u6216 -fallTie))\u3002\n-v, -verbose \u8BE6\u7EC6\u6A21\u5F0F\u3002\n-version \u663E\u793A\u7248\u672C\u53F7\u5E76\u9000\u51FA\u3002\n
usage=\u7F16\u8BD1\u5668\u7528\u6CD5:\n\n java com.sun.tools.corba.se.idl.toJavaPortable.Compile [\u9009\u9879] <idl \u6587\u4EF6>\n\n\u5176\u4E2D, <idl \u6587\u4EF6> \u662F\u5305\u542B IDL \u5B9A\u4E49\u7684\u6587\u4EF6\u7684\u540D\u79F0, \u800C\n[\u9009\u9879] \u662F\u4E0B\u5217\u9009\u9879\u7684\u4EFB\u610F\u7EC4\u5408\u3002\u9009\u9879\n\u662F\u53EF\u9009\u7684, \u5E76\u4E14\u663E\u793A\u987A\u5E8F\u5E76\u4E0D\u56FA\u5B9A; <idl \u6587\u4EF6> \u662F\u5FC5\u9700\u7684,\n\u5E76\u4E14\u5FC5\u987B\u663E\u793A\u5728\u6700\u540E\u3002\n \n\u9009\u9879:\n-d <\u7B26\u53F7> \u8FD9\u7B49\u540C\u4E8E IDL \u6587\u4EF6\u4E2D\u7684\n \u4E0B\u9762\u4E00\u884C: #define <\u7B26\u53F7>\n-emitAll \u53D1\u51FA\u6240\u6709\u7C7B\u578B, \u5305\u62EC\u5728 #included \u6587\u4EF6\u4E2D\u627E\u5230\u7684\u7C7B\u578B\u3002\n-f<side> \u5B9A\u4E49\u8981\u53D1\u51FA\u54EA\u4E9B\u7ED1\u5B9A\u3002<side> \u662F client,\n server, all, serverTIE, allTIE \u4E4B\u4E00\u3002serverTIE \u548C allTIE\n \u5BFC\u81F4\u53D1\u51FA\u59D4\u6D3E\u6A21\u578B\u9AA8\u67B6\u3002\u5982\u679C\u672A\u4F7F\u7528\n \u6B64\u6807\u8BB0, \u5C06\u5047\u5B9A\u4E3A -fclient\u3002\n-i <\u5305\u542B\u8DEF\u5F84> \u9ED8\u8BA4\u60C5\u51B5\u4E0B, \u5C06\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u626B\u63CF\n \u5305\u542B\u7684\u6587\u4EF6\u3002\u6B64\u9009\u9879\u5C06\u6DFB\u52A0\u53E6\u4E00\u4E2A\u76EE\u5F55\u3002\n-keep \u5982\u679C\u8981\u751F\u6210\u7684\u6587\u4EF6\u5DF2\u5B58\u5728, \u8BF7\u4E0D\u8981\n \u8986\u76D6\u5B83\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u4F1A\u8986\u76D6\u5B83\u3002\n-noWarn \u9690\u85CF\u8B66\u544A\u3002\n-oldImplBase \u751F\u6210\u4E0E\u65E7\u7248 (1.4 \u7248\u4E4B\u524D) JDK ORB \u517C\u5BB9\u7684\u9AA8\u67B6\u3002\n-pkgPrefix <t> <\u524D\u7F00> \u5F53\u5728\u6587\u4EF6\u8303\u56F4\u5185\u9047\u5230\u7C7B\u578B\u6216\u6A21\u5757\u540D <t> \u65F6,\n \u5728\u4E3A <t> \u751F\u6210\u7684\u6240\u6709\u6587\u4EF6\u7684 Java \u7A0B\u5E8F\u5305\u540D\u524D\n \u6DFB\u52A0 <\u524D\u7F00>\u3002\n-pkgTranslate <t> <pkg> \u5F53\u9047\u5230\u7C7B\u578B\u6216\u6A21\u5757\u540D <t> \u65F6, \u5728\n \u751F\u6210\u7684 Java \u7A0B\u5E8F\u5305\u4E2D\u5C06\u5176\u66FF\u6362\u4E3A <pkg>\u3002\u8BF7\u6CE8\u610F, \n \u5C06\u9996\u5148\u8FDB\u884C pkgPrefix \u66F4\u6539\u3002<t> \u5FC5\u987B\u4E0E\n \u5B8C\u6574\u7A0B\u5E8F\u5305\u540D\u5B8C\u5168\u5339\u914D\u3002\u53E6\u5916, <t> \u4E0D\u80FD\u4E3A\n org, org.omg \u6216 org.omg \u7684\u4EFB\u4F55\u5B50\u7A0B\u5E8F\u5305\u3002\n-skeletonName <xxx%yyy> \u6839\u636E\u6A21\u5F0F\u547D\u540D\u9AA8\u67B6\u3002\n \u9ED8\u8BA4\u503C\u4E3A:\n %POA \u8868\u793A POA \u57FA\u7C7B (-fserver \u6216 -fall) \n _%ImplBase \u8868\u793A oldImplBase \u57FA\u7C7B\n (-oldImplBase \u548C (-fserver \u6216 -fall))\u3002\n-td <dir> \u4F7F\u7528 <dir> \u8868\u793A\u8F93\u51FA\u76EE\u5F55\u4EE5\u4EE3\u66FF\n \u5F53\u524D\u76EE\u5F55\u3002\n-tieName <xxx%yyy> \u6839\u636E\u6A21\u5F0F\u547D\u540D tie\u3002\u9ED8\u8BA4\u503C\u4E3A:\n %POATie \u8868\u793A POA tie (-fserverTie \u6216 -fallTie) \n %_Tie \u8868\u793A oldImplBase tie\n (-oldImplBase \u548C (-fserverTie \u6216 -fallTie))\u3002\n-v, -verbose \u8BE6\u7EC6\u6A21\u5F0F\u3002\n-version \u663E\u793A\u7248\u672C\u53F7\u5E76\u9000\u51FA\u3002\n

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2012, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.corba;
import com.sun.corba.se.impl.io.ValueHandlerImpl;
public interface JavaCorbaAccess {
public ValueHandlerImpl newValueHandlerImpl();
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright (c) 2012, Oracle and/or its affiliates. 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.corba;
import com.sun.corba.se.impl.io.ValueUtility;
import sun.misc.Unsafe;
import java.security.AccessController;
/** A repository of "shared secrets", which are a mechanism for
calling implementation-private methods in another package without
using reflection. A package-private class implements a public
interface and provides the ability to call package-private methods
within that package; the object implementing that interface is
provided through a third package to which access is restricted.
This framework avoids the primary disadvantage of using reflection
for this purpose, namely the loss of compile-time checking. */
// SharedSecrets cloned in corba repo to avoid build issues
public class SharedSecrets {
private static final Unsafe unsafe = Unsafe.getUnsafe();
private static JavaCorbaAccess javaCorbaAccess;
public static JavaCorbaAccess getJavaCorbaAccess() {
if (javaCorbaAccess == null) {
// Ensure ValueUtility is initialized; we know that that class
// provides the shared secret
unsafe.ensureClassInitialized(ValueUtility.class);
}
return javaCorbaAccess;
}
public static void setJavaCorbaAccess(JavaCorbaAccess access) {
javaCorbaAccess = access;
}
}

View File

@@ -26,8 +26,8 @@
#
# Get clones of all nested repositories
sh ./make/scripts/hgforest.sh clone $*
sh ./common/bin/hgforest.sh clone "$@" || exit 1
# Update all existing repositories to the latest sources
sh ./make/scripts/hgforest.sh pull -u
sh ./common/bin/hgforest.sh pull -u

View File

@@ -293,3 +293,61 @@ acabb5c282f59be7e3238920b2ea06b684ab68f7 jdk8-b63
8cb93eadfb6dcab88d91b8e2cd3e0e07d0ac4048 hs25-b08
5920f72e799c8133d1066c4a62fa1fafcb729966 jdk8-b64
b4ee7b773144a88af8b6b92e4384dea82cb948d8 hs25-b09
0f7290a03b24bd562583fa325d3566c21c51fb94 jdk8-b65
cfc5309f03b7bd6c1567618b63cf1fc74c0f2a8f hs25-b10
01684f7fee1b86222be69bc23841ec2a4416696c jdk8-b66
b61d9c88b759d1594b8af1655598e8fa00393672 hs25-b11
25bdce771bb3a7ae9825261a284d292cda700122 jdk8-b67
a35a72dd2e1255239d31f796f9f693e49b36bc9f hs25-b12
121aa71316af6cd877bf455e775fa3fdbcdd4b65 jdk8-b68
b6c9c0109a608eedbb6b868d260952990e3c91fe hs25-b13
cb8a4e04bc8c104de8a2f67463c7e31232bf8d68 jdk8-b69
990bbd393c239d95310ccc38094e57923bbf1d4a hs25-b14
e94068d4ff52849c8aa0786a53a59b63d1312a39 jdk8-b70
0847210f85480bf3848dc90bc2ab23c0a4791b55 jdk8-b71
d5cb5830f570d1304ea4b196dde672a291b55f29 jdk8-b72
1e129851479e4f5df439109fca2c7be1f1613522 hs25-b15
11619f33cd683c2f1d6ef72f1c6ff3dacf5a9f1c jdk8-b73
70c89bd6b895a10d25ca70e08093c09ff2005fda hs25-b16
1a3e54283c54aaa8b3437813e8507fbdc966e5b6 jdk8-b74
b4391649e91ea8d37f66317a03d6d2573a93d10d hs25-b17
6778d0b1659323a506ca47600ca29a9d9f8b383d jdk8-b75
20b605466ccb1b3725eb25314d9e8782199630c5 jdk8-b76
412d722168bc23f8e6d98995202728678561417f hs25-b18
cdb46031e7184d37301288f5719121a63c7054b5 jdk8-b77
9f19f4a7d48a4ebe7f616b6068971ea5f8b075fa hs25-b19
d5e12e7d2f719144d84903d9151455661c47b476 jdk8-b78
555ec35a250783110aa070dbc8a8603f6cabe41f hs25-b20
6691814929b606fe0e7954fd6e485dd876505c83 jdk8-b79
df5396524152118535c36da5801d828b560d19a2 hs25-b21
4a198b201f3ce84433fa94a3ca65d061473e7c4c jdk8-b80
dd6350b4abc4a6c19c89dd982cc0e4f3d119885c hs25-b22
65b797426a3bec6e91b64085a0cfb94adadb634a jdk8-b81
0631ebcc45f05c73b09a56c2586685af1f781c1d hs25-b23
3db4ab0e12f437fe374817de346b2b0c6b4a5b31 jdk8-b82
e3a41fc0234895eba4f272b984f7dacff495f8eb hs25-b24
1c8db54ee9f315e20d6d5d9bf0b5c10349e9d301 jdk8-b83
8d0f263a370c5f3e61791bb06054560804117288 hs25-b25
af788b85010ebabbc1e8f52c6766e08c7a95cf99 jdk8-b84
a947f40fb536e5b9e0aa210cf26abb430f80887a hs25-b26
42fe530cd478744a4d12a0cbf803f0fc804bab1a jdk8-b85
09b0d3e9ba6cdf7da07d4010d2d1df14596f6864 hs25-b27
6d88a566d369f6a1f86912cad7d0912686b2fda1 hs25-b28
86db4847f195c0ecceea646431f1ff22d56282e8 jdk8-b86
d4c2667846607042370760e23f64c3ab9350e60d jdk8-b87
01d5f04e64dc2d64625b2db2056f5ed4de918a45 hs25-b29
c4af77d2045476c56fbf3f914b336bb1b7cd18af hs25-b30
8482058e74bc8c1a890e6f3be3eff192dba6ce67 jdk8-b88
4ec91349972255650f97bedfd07e6423e02428cf hs25-b31
9c1fe0b419b40a9ecdd1653cc9af1b6d67a12c46 jdk8-b89
69494caf57908ba2c8efa9eaaa472b4d1875588a hs25-b32
1ae0472ff3a0117b5b019d380ad59fface2fde14 jdk8-b90
b19517cecc2e91636d7c16ba2f35e3d3dc628099 hs25-b33
7cbdf0e3725c0c56a2ff7540fc70b6d4b5890d04 jdk8-b91
38da9f4f67096745f851318d792d6468aa1f6cf8 hs25-b34
092018493d3bbeb1c24278fd8c40ff3d76e1fed7 jdk8-b92
573d86d412cd9d3df7912194c1a540be50e9544e jdk8-b93
b786c04b7be15194febe88dc1f0c9443e737a84b hs25-b35
3c78a14da19d26d6937af5f98b97e2a21c653b04 hs25-b36
1beed1f6f9edefe47ba8ed1355fbd3e7606b8288 jdk8-b94
69689078dff8b21e6df30870464f5d736eebdf72 hs25-b37

View File

@@ -0,0 +1,41 @@
<html>
<head>
<title>
Replay
</title>
</head>
<body>
<h1>Compiler replay</h1>
<p>
The compiler replay is a function to repeat the compiling process from a crashed java process in compiled method<br>
This function only exists in debug version of VM
</p>
<h2>Usage</h2>
<pre>
First, use SA to attach to the core file, if succeeded, do
hsdb&gt; dumpreplaydata &lt;address&gt; | -a | &lt;thread_id&gt; [&gt; replay.txt]
create file replay.txt, address is address of Method, or nmethod(CodeBlob)
hsdb&gt; buildreplayjars [all | boot | app]
create files:
all:
app.jar, boot.jar
boot:
boot.jar
app:
app.jar
exit SA now.
Second, use the obtained replay text file, replay.txt and jar files, app.jar and boot.jar, using debug version of java
java -Xbootclasspath/p:boot.jar -cp app.jar -XX:ReplayDataFile=&lt;datafile&gt; -XX:+ReplayCompiles ....
This will replay the compiling process.
With ReplayCompiles, the replay will recompile all the methods in app.jar, and in boot.jar to emulate the process in java app.
notes:
1) Most time, we don't need the boot.jar which is the classes loaded from JDK. It will be only modified when an agent(JVMDI) is running and modifies the classes.
2) If encounter error as "&lt;flag&gt;" not found, that means the SA is using a VMStructs which is different from the one with corefile. In this case, SA has a utility tool vmstructsdump which is located at agent/src/os/&lt;os&gt;/proc/&lt;os_platform&gt;
Use this tool to dump VM type library:
vmstructsdump libjvm.so &gt; &lt;type_name&gt;.db
set env SA_TYPEDB=&lt;type_name&gt;.db (refer different shell for set envs)

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