Compare commits

...

3084 Commits

Author SHA1 Message Date
J. Duke
c77a22380d Merge 2017-07-05 19:04:56 +02:00
J. Duke
fe3818cd5f Merge 2017-07-05 19:04:53 +02:00
J. Duke
ecd523a023 Merge 2017-07-05 19:04:46 +02:00
J. Duke
e9facbae15 Merge 2017-07-05 19:04:43 +02:00
J. Duke
7234f3c4a1 Merge 2017-07-05 19:04:39 +02:00
J. Duke
265bfd44d5 Merge 2017-07-05 19:04:28 +02:00
J. Duke
0534bc8792 Merge 2017-07-05 19:04:25 +02:00
J. Duke
80bc88850d Merge 2017-07-05 19:04:06 +02:00
J. Duke
db93e08c87 Added tag jdk8-b99 for changeset 2d3875b0d18b 2017-07-05 19:03:53 +02:00
J. Duke
b7f9acdbd3 Merge 2017-07-05 19:03:53 +02:00
J. Duke
52c07d8eeb Merge 2017-07-05 19:03:50 +02:00
J. Duke
de389e9174 Merge 2017-07-05 19:03:46 +02:00
J. Duke
23076a4be7 Merge 2017-07-05 19:03:44 +02:00
J. Duke
b8c12c2e14 Merge 2017-07-05 19:03:41 +02:00
J. Duke
25d13a1230 Merge 2017-07-05 19:03:38 +02:00
J. Duke
026a4d08b1 Merge 2017-07-05 19:03:35 +02:00
J. Duke
46702c8d43 Merge 2017-07-05 19:03:31 +02:00
J. Duke
278c2e7fb9 Added tag jdk8-b98 for changeset 711eb4aa87de 2017-07-05 19:03:14 +02:00
J. Duke
5b4e46bf5f Merge 2017-07-05 19:03:14 +02:00
J. Duke
5508dc48a0 Merge 2017-07-05 19:03:11 +02:00
J. Duke
4596b27070 Merge 2017-07-05 19:03:04 +02:00
J. Duke
3b013d87d7 Merge 2017-07-05 19:03:01 +02:00
J. Duke
08c11f5b17 Merge 2017-07-05 19:02:58 +02:00
J. Duke
fcc33aa056 Merge 2017-07-05 19:02:49 +02:00
J. Duke
cc5d5ff7d0 Merge 2017-07-05 19:02:46 +02:00
J. Duke
2d09aa608f Merge 2017-07-05 19:02:28 +02:00
J. Duke
dc7547e0c0 Added tag jdk8-b97 for changeset 0a85476a0b9c 2017-07-05 19:02:09 +02:00
J. Duke
618a814772 Merge 2017-07-05 19:02:09 +02:00
J. Duke
8cac8e4bf0 Merge 2017-07-05 19:02:06 +02:00
J. Duke
1a9aa5e32f Merge 2017-07-05 19:02:03 +02:00
J. Duke
300560cccc Merge 2017-07-05 19:02:00 +02:00
J. Duke
bdf31a3c89 Merge 2017-07-05 19:01:56 +02:00
J. Duke
7d625b8a1c Merge 2017-07-05 19:01:53 +02:00
J. Duke
86b33eec31 Merge 2017-07-05 19:01:51 +02:00
J. Duke
a81dd4d9b5 Merge 2017-07-05 19:01:47 +02:00
J. Duke
a4b7a83147 Added tag jdk8-b96 for changeset ea73f01b9053 2017-07-05 19:01:33 +02:00
J. Duke
d9e5bebaa6 Merge 2017-07-05 19:01:32 +02:00
J. Duke
66d6e28ea0 Merge 2017-07-05 19:01:29 +02:00
J. Duke
af8a1f099f Merge 2017-07-05 19:01:16 +02:00
J. Duke
2976020cd7 Merge 2017-07-05 19:01:11 +02:00
J. Duke
36b1c206e7 Merge 2017-07-05 19:01:02 +02:00
J. Duke
4aa69982c6 Merge 2017-07-05 19:00:49 +02:00
J. Duke
f7c235467c Merge 2017-07-05 19:00:41 +02:00
J. Duke
f0226e0dc5 Merge 2017-07-05 19:00:09 +02:00
J. Duke
45f9665948 Added tag jdk8-b95 for changeset 49fe9c804913 2017-07-05 18:59:43 +02:00
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
Lana Steuck
9167785782 Merge 2013-07-22 17:40:26 -07:00
Lana Steuck
524a340ac9 Merge 2013-07-22 17:39:45 -07:00
Lana Steuck
ee1b9621d9 Merge 2013-07-22 17:37:15 -07:00
Lana Steuck
c47454aac9 Merge 2013-07-22 17:29:05 -07:00
Alejandro Murillo
9a2397d3b9 Added tag hs25-b42 for changeset 72a811d263ec 2013-07-18 09:25:07 -07:00
Alejandro Murillo
18c3256b56 Merge 2013-07-18 09:25:06 -07:00
Christine Lu
bd5783e38b Added tag jdk8-b99 for changeset d104c72ebc8a 2013-07-18 03:39:39 -07:00
Christine Lu
c1ca4a663a Added tag jdk8-b99 for changeset 38dd7ede2dfb 2013-07-18 03:39:33 -07:00
Christine Lu
53e58e338a Added tag jdk8-b99 for changeset 984f3e50463b 2013-07-18 03:38:49 -07:00
Christine Lu
fefea4c558 Added tag jdk8-b99 for changeset c653feb1fe9e 2013-07-18 03:38:23 -07:00
Christine Lu
96677c909a Added tag jdk8-b99 for changeset 830a3a26d45b 2013-07-18 03:38:19 -07:00
Christine Lu
b2fe68d0a5 Added tag jdk8-b99 for changeset 009e3b20a47e 2013-07-18 03:38:10 -07:00
Christine Lu
e6c7628c4a Added tag jdk8-b99 for changeset a9bf8e1ddffb 2013-07-18 03:37:56 -07:00
Christine Lu
225912c694 Added tag jdk8-b99 for changeset 29592dce4679 2013-07-18 03:37:53 -07:00
Carlos Lucasius
d1e961d31c Merge 2013-07-18 00:52:54 -04:00
Lana Steuck
95a3a25b17 Merge 2013-07-17 13:00:36 -07:00
Lana Steuck
ae0dd64548 Merge 2013-07-17 12:56:04 -07:00
Lana Steuck
9e0b381478 Merge 2013-07-17 12:53:54 -07:00
Maurizio Cimadamore
70e005a7eb 8013638: Few policy tests are failing in Lambda nightly
BridgeHarness test is leaving files open

Reviewed-by: ksrini
2013-07-17 19:28:40 +01:00
Lana Steuck
be00b8110f Merge 2013-07-17 10:40:53 -07:00
Jan Lahoda
35af8eccde 8020586: Warning produced for an incorrect file
Always using DeferredLintHandler.immediateHandler when processing import classes

Reviewed-by: mcimadamore
2013-07-17 15:08:58 +02:00
Maurizio Cimadamore
a2a579a4bd 8019942: Graph inference: avoid redundant computation during bound incorporation
Bound incorporation should not perform same operation multiple times

Reviewed-by: jjg
2013-07-17 14:21:12 +01:00
Maurizio Cimadamore
717a989214 8019340: varargs-related warnings are meaningless on signature-polymorphic methods such as MethodHandle.invokeExact
Disable certain varargs warnings when compiling polymorphic signature calls

Reviewed-by: jjg
2013-07-17 14:19:25 +01:00
Maurizio Cimadamore
73953320cc 8020149: Graph inference: wrong logic for picking best variable to solve
Replace logic for selecting best inference leaf in the graph during an unsticking round

Reviewed-by: jjg
2013-07-17 14:19:02 +01:00
Maurizio Cimadamore
8850329bc1 8016640: compiler hangs if the generics arity of a base class is wrong
Check.checkCompatibleConcretes hang when javac creates synthetic supertypes for 269 model API

Reviewed-by: jjg
2013-07-17 14:16:25 +01:00
Maurizio Cimadamore
defbb67771 7041019: Bogus type-variable substitution with array types with dependencies on accessibility check
Call to upperBound() when performing type-variable substitution on element type leads to unsoundness

Reviewed-by: jjg
2013-07-17 14:14:49 +01:00
Maurizio Cimadamore
732e49f6dc 8020286: Wrong diagnostic after compaction
Compact diagnostic shows the least relevant method in the list

Reviewed-by: jjg
2013-07-17 14:14:32 +01:00
Maurizio Cimadamore
eb4e8153b3 8020147: Spurious errors when compiling nested stuck lambdas
Scope of deferred types is not copied correctly; postAttr analyzer should not run on stuck expressions

Reviewed-by: jjg
2013-07-17 14:13:15 +01:00
Maurizio Cimadamore
e92a56fade 8012238: Nested method capture and inference
8008200: java/lang/Class/asSubclass/BasicUnit.java fails to compile

Inference support should be more flexible w.r.t. nested method calls returning captured types

Reviewed-by: jjg, vromero
2013-07-17 14:11:41 +01:00
Maurizio Cimadamore
99b0413d48 8016175: Add bottom-up type-checking support for unambiguous method references
Type-checking of non-overloaded method references should be independent from target-type

Reviewed-by: jjg, vromero
2013-07-17 14:09:46 +01:00
Maurizio Cimadamore
941752ea25 8012242: Lambda compatibility and checked exceptions
Inference variables in 'throws' clause with no constraints should be inferred as RuntimeException

Reviewed-by: jjg, vromero
2013-07-17 14:04:01 +01:00
Lana Steuck
a2dcb875cd Merge 2013-07-17 00:36:48 -07:00
Lana Steuck
660a97197d Merge 2013-07-17 00:34:39 -07:00
Lana Steuck
b29a60f222 Merge 2013-07-17 00:34:12 -07:00
David Katleman
1fd7a90882 Merge 2013-07-16 15:16:24 -07:00
David Katleman
6043666187 Merge 2013-07-16 15:15:43 -07:00
Jason Uh
f76ebb663c 8020557: javadoc cleanup in javax.security
Reviewed-by: darcy
2013-07-16 12:19:41 -07:00
Joseph Provino
b573023374 Merge 2013-07-16 12:20:08 -04:00
Attila Szegedi
f6a5b67f14 8015356: array concatenation should skip empty elements
Reviewed-by: jlaskey, sundar
2013-07-16 17:03:30 +02:00
Joseph Provino
b5c0da41b9 8011569: ARM -- avoid native stack walking
ARM compilers do not emit FramePointer on each native frame by default

Reviewed-by: dholmes, zgu
2013-07-16 10:55:48 -04:00
Hannes Wallnöfer
06394dedc7 8010821: [findbugs] Some classes in jdk.nashorn.internal.runtime.regexp expose mutable objects
Reviewed-by: attila, jlaskey, sundar
2013-07-16 16:12:26 +02:00
Attila Szegedi
e85e4fb319 8020357: throw RangeError for too large NativeArrayBuffer size
Reviewed-by: jlaskey, hannesw, sundar
2013-07-16 15:28:33 +02:00
Athijegannathan Sundararajan
6891593360 Merge 2013-07-16 09:54:04 +05:30
Tao Mao
4b6898af4a Merge 2013-07-15 15:14:58 -07:00
Brian Burkhalter
1b0b4ca8c7 8020409: Clean up doclint problems in java.util package, part 1
Clean up doclint problems in java.util package, part 1

Reviewed-by: darcy
2013-07-15 14:37:01 -07:00
Hannes Wallnöfer
6055fea677 8020358: Array(0xfffffff) throws OutOfMemoryError
Reviewed-by: jlaskey, sundar
2013-07-15 18:32:23 +02:00
Carlos Lucasius
235c30f21c Merge 2013-07-15 12:24:32 -04:00
Attila Szegedi
a4b42a9a25 8011210: fix reporting of call site locations; print them on -tcs=miss
Reviewed-by: jlaskey, hannesw
2013-07-15 16:58:23 +02:00
Hannes Wallnöfer
9d4ac8b057 8020283: Don't use exceptions for widening of ArrayData
Reviewed-by: jlaskey, attila
2013-07-15 16:35:38 +02:00
Attila Szegedi
84e8d48fb4 8020508: Enforce reflection access restrictions on Object.bindProperties
Reviewed-by: jlaskey, sundar
2013-07-15 16:31:49 +02:00
Hannes Wallnöfer
40b8f5d48c 8020354: Object literal property initialization is not done in source order
Reviewed-by: sundar, jlaskey
2013-07-15 15:51:06 +02:00
Sergey Malenkov
c934d0bd27 8017492: Static field in HTML parser affects all applications
Reviewed-by: art
2013-07-15 17:33:44 +04:00
Sean Coffey
6a6f5006d3 8017566: Backout 8000450 - Cannot access to com.sun.corba.se.impl.orb.ORBImpl
Reviewed-by: mchung
2013-07-15 13:42:35 +01:00
Attila Szegedi
e11a9b1d07 8020324: Implement Object.bindProperties(target, source) for beans
Reviewed-by: hannesw, sundar
2013-07-15 12:33:48 +02:00
Peter Levart
b0d167645f 7122142: (ann) Race condition between isAnnotationPresent and getAnnotations
Reviewed-by: dholmes, jfranck
2013-07-15 10:55:53 +02:00
Petr Pchelko
0b20e5e9af 8020371: [macosx] applets with Drag and Drop fail with IllegalArgumentException
Reviewed-by: anthony, art
2013-07-15 12:06:06 +04:00
Weijun Wang
2842af69c0 8019410: sun/security/krb5/auto/ReplayCacheTestProc.java
Reviewed-by: mullan
2013-07-13 08:47:49 +08:00
Alejandro Murillo
f442e1dad8 8020382: new hotspot build - hs25-b42
Reviewed-by: jcoomes
2013-07-12 17:08:52 -07:00
Alejandro Murillo
47f6cf4392 Added tag hs25-b41 for changeset f88df7eff51e 2013-07-12 16:53:40 -07:00
Alejandro Murillo
9cff99a4d5 Merge 2013-07-12 16:53:39 -07:00
Jonathan Gibbons
9dd2fe90d4 8020278: NPE in javadoc
Reviewed-by: mcimadamore, vromero
2013-07-12 13:11:12 -07:00
Joe Wang
7c99d52918 8020430: NullPointerException in xml sqe nightly result on 2013-07-12
Reviewed-by: chegar, lancea
2013-07-12 11:12:40 -07:00
Sergey Bylokhov
a507980e6d 8020298: [macosx] Incorrect merge in the lwawt code
Reviewed-by: art, anthony
2013-07-12 21:33:33 +04:00
Athijegannathan Sundararajan
ed18e742ce Merge 2013-07-12 20:13:43 +05:30
Athijegannathan Sundararajan
62ca9dfc18 Merge 2013-07-12 20:12:29 +05:30
Athijegannathan Sundararajan
b8081def9f 8020463: Input argument array wrapping in loadWithNewGlobal is wrong
Reviewed-by: attila, jlaskey
2013-07-12 20:06:41 +05:30
Ragini Prasad
2a2bf1051b 8009168: accessibility.properties syntax issue
Reviewed-by: ptbrunet, mfang, alexsch
2013-07-12 14:46:21 +04:00
Attila Szegedi
533439278e 8019822: Duplicate name and signature in finally block
Reviewed-by: jlaskey, sundar
2013-07-12 11:58:42 +02:00
Athijegannathan Sundararajan
eaed291ba6 8020223: ClassCastException: String can not be casted to ScriptFunction
Reviewed-by: attila, lagergren
2013-07-12 15:27:16 +05:30
Athijegannathan Sundararajan
4972fea316 8020437: Wrong handling of line numbers with multiline string literals
Reviewed-by: attila, lagergren
2013-07-12 15:01:33 +05:30
David Katleman
1a981bf8d1 Merge 2013-07-11 14:34:18 -07:00
David Katleman
17190821f8 Merge 2013-07-11 14:33:54 -07:00
David Katleman
d939aea838 8020414: JDK8 b98 source with GPL header errors
Reviewed-by: darcy, lancea, iris
2013-07-11 14:07:26 -07:00
David Katleman
1ad2c364d6 8020414: JDK8 b98 source with GPL header errors
Reviewed-by: darcy, lancea, iris
2013-07-11 14:03:31 -07:00
Attila Szegedi
8603660852 8020125: PrintVisitor wasn't printing bodies of FunctionNode within UnaryNode
Reviewed-by: jlaskey, lagergren
2013-07-11 22:01:55 +02:00
Tao Mao
2e0f5d85ff Merge 2013-07-11 11:45:09 -07:00
Athijegannathan Sundararajan
380db28df8 8012191: noSuchProperty can't cope with vararg functions
Reviewed-by: jlaskey, attila
2013-07-11 22:58:37 +05:30
David Katleman
65c7578ee8 Added tag jdk8-b98 for changeset 7954f50477a0 2013-07-11 10:13:59 -07:00
David Katleman
51ac0c583f Added tag jdk8-b98 for changeset 5b24b75e2710 2013-07-11 10:13:49 -07:00
David Katleman
69ec2f0570 Added tag jdk8-b98 for changeset 0549b5fbbde2 2013-07-11 10:13:46 -07:00
David Katleman
3900da3ac2 Added tag jdk8-b98 for changeset 4d6d050bc7d5 2013-07-11 10:13:44 -07:00
David Katleman
9089220ded Added tag jdk8-b98 for changeset 9402036a05e2 2013-07-11 10:13:37 -07:00
David Katleman
b5d8676ff8 Added tag jdk8-b98 for changeset f832872e55e5 2013-07-11 10:13:34 -07:00
David Katleman
61972b30f3 Added tag jdk8-b98 for changeset 99bf8dc53505 2013-07-11 10:13:32 -07:00
Attila Szegedi
4eb5c9e3a4 8013925: Remove symbol fields from nodes that don't need them
Reviewed-by: jlaskey, lagergren
2013-07-11 18:33:33 +02:00
Maurizio Cimadamore
617386d568 8013404: Unclear spec for target typing with conditional operator (?:)
Fix previously ignored test

Reviewed-by: jjg, vromero
2013-07-11 15:37:02 +01:00
Leonid Romanov
b3a5f0ec38 8020038: [macosx] Incorrect usage of invokeLater() and likes in callbacks called via JNI from AppKit thread
Reviewed-by: art, anthony
2013-07-11 18:23:15 +04:00
Robert Field
d3d1da337a 8016281: The SAM method should be passed to the metafactory as a MethodType not a MethodHandle
8020010: Move lambda bridge creation from metafactory and VM to compiler

Langtools/javac component of the bridge support and MethodType vs. MethodHandle changes.

Reviewed-by: jjg, vromero, briangoetz, forax
2013-07-11 14:07:39 +01:00
David Katleman
94e178de87 Added tag jdk8-b98 for changeset d3db5fb3d72f 2013-07-11 10:13:57 -07:00
Robert Field
381356dde3 8016281: The SAM method should be passed to the metafactory as a MethodType not a MethodHandle
8020010: Move lambda bridge creation from metafactory and VM to compiler

JDK/metafactory component of the bridge fix and and MethodType vs. MethodHandle changes.

Reviewed-by: twisti, briangoetz, forax
2013-07-11 14:02:20 +01:00
Athijegannathan Sundararajan
80f5124f23 8020380: __noSuchProperty__ defined in mozilla_compat.js script should be non-enumerable
Reviewed-by: jlaskey, hannesw, attila
2013-07-11 18:23:13 +05:30
Petr Pchelko
f22f9eb04b 8020210: [macosx] JVM crashes in CWrapper$NSWindow.screen(long)
Reviewed-by: anthony, art
2013-07-11 16:42:13 +04:00
Athijegannathan Sundararajan
f0144d9d93 8020325: static property does not work on accessible, public classes
Reviewed-by: attila, hannesw, lagergren
2013-07-11 16:34:55 +05:30
Bengt Rutisson
0f82640543 8020155: PSR:PERF G1 not collecting old regions when humongous allocations interfer
Take _last_young_gc into account when deciding on starting a concurrent mark. Also reviewed-by: per.liden@oracle.com.

Reviewed-by: tschatzl, johnc
2013-07-11 11:33:27 +02:00
Roland Westrelin
d9ae342dff Merge 2013-07-11 01:11:52 -07:00
Albert Noll
93d49935a9 8016749: -XX:+UseISM fails an assert(obj->is_oop()) when running SPECjbb2005
Remove obsolete code that relates to ISM which was used only on Solaris 8.

Reviewed-by: kvn, twisti
2013-07-10 13:33:56 -07:00
Jennifer Godinez
701d77dfd1 8016737: After clicking on "Print UNCOLLATED" button, the print out come in order 'Page 1', 'Page 2', 'Page 1'
Reviewed-by: jchen, prr
2013-07-10 11:49:04 -07:00
Athijegannathan Sundararajan
48c4649f17 8020276: interface checks in Invocable.getInterface implementation
Reviewed-by: jlaskey, hannesw, attila
2013-07-10 19:08:04 +05:30
Erik Helin
54b1857550 8013939: Metaspace capacity not available
Reviewed-by: tschatzl, mgerdin, stefank
2013-07-10 15:28:43 +02:00
Hannes Wallnöfer
652b020905 8016681: regex capture behaves differently than on V8
Reviewed-by: lagergren, sundar
2013-07-10 10:54:19 +02:00
Athijegannathan Sundararajan
41c47ddf53 8020224: LinkageError: attempted duplicate class definition when --loader-per-compiler=false
Reviewed-by: hannesw
2013-07-10 13:25:07 +05:30
Christian Thalinger
fa834be249 Merge 2013-07-09 22:00:04 -07:00
Joe Wang
255a9b3dd1 8016648: FEATURE_SECURE_PROCESSING set to true or false causes SAXParseException to be thrown
Jaxp 1.5 feature update

Reviewed-by: alanb, dfuchs, lancea
2013-07-09 16:34:52 -07:00
Kumar Srinivasan
424ac16db0 8020214: TEST_BUG: test/tools/javap/8007907/JavapReturns0AfterClassNotFoundTest.java broken
Reviewed-by: jjg
2013-07-09 14:54:20 -07:00
Karen Kinnear
de0c86b0b4 Merge 2013-07-09 22:48:52 +02:00
Karen Kinnear
ed46fe2de9 8013635: VM should no longer create bridges for generic signatures
Requires: 8013789: Compiler bridges, 8015402: metafactory

Reviewed-by: sspitsyn, coleenp, bharadwaj
2013-07-09 14:02:28 -04:00
Zhengyu Gu
e3831a3495 Merge 2013-07-09 19:56:07 +02:00
Sergey Bylokhov
b2b2d519ca 8019587: [macosx] Possibility to set the same frame for the different screens
Reviewed-by: art, anthony
2013-07-09 21:21:55 +04:00
Zhengyu Gu
4382d40555 8011760: assert(delta != 0) failed: dup pointer in MemBaseline::malloc_sort_by_addr
Some of qsort implementation on Linux x86 compares element to itself, which is  mistakenly treated as duplicate pointer

Reviewed-by: dcubed, acorn
2013-07-09 13:18:16 -04:00
Tim Bell
da494c8bc9 8009315: F# on PATH breaks Cygwin tools (mkdir, echo, mktemp ...)
Reviewed-by: erikj
2013-07-09 08:35:20 -07:00
Sergey Malenkov
25f2802a70 6707231: Wrong read Method returned for boolen properties
Reviewed-by: alexsch
2013-07-09 18:01:58 +04:00
Marcus Lagergren
cfbe70e223 8020124: In the case of an eval switch, we might need explicit conversions of the tag store, as it was not known in the surrounding environment
Reviewed-by: sundar, jlaskey
2013-07-09 15:56:59 +02:00
David Chase
94609df5da 8017578: Hotspot compilation error with latest Studio compiler
Make the destructor virtual (note more non-compiler hotspot errors occur downstream)

Reviewed-by: kvn, twisti
2013-07-09 08:56:04 -04:00
Niclas Adlertz
5de04505c1 8019625: Test compiler/8005956/PolynomialRoot.java timeouts on Solaris SPARCs
Disable the test for SPARC and reduce the number of test iterations

Reviewed-by: kvn
2013-07-09 17:20:32 +02:00
Athijegannathan Sundararajan
8854b24a30 8014785: Ability to extend global instance by binding properties of another object
Reviewed-by: attila, hannesw, jlaskey, lagergren
2013-07-09 17:37:46 +05:30
Attila Szegedi
3e0c71b6c1 8009758: reactivate the 8006529 test
Reviewed-by: jlaskey, sundar
2013-07-09 13:57:24 +02:00
Albert Noll
1bc320c73a 8015635: Crash when specifying very large code cache size
Limit the size of the code cache to at most 2G when arguments are checked; added regression test

Reviewed-by: kvn, twisti
2013-07-09 11:48:05 +02:00
Harold Seigel
64cf70de03 Merge 2013-07-08 18:26:26 -07:00
Harold Seigel
06810f8410 Merge 2013-07-08 16:44:03 -07:00
Eric Mccorkle
65405fd613 8014399: Remove JVM_SetProtectionDomain from hotspot
JVM_SetProtectionDomain has been deprecated since 1.5 and is being removed

Reviewed-by: coleenp, hseigel
2013-07-08 19:36:22 -04:00
Jiangli Zhou
be1bcb5b41 Merge 2013-07-08 14:53:52 -07:00
David Katleman
262f4074d8 Merge 2013-07-08 14:29:46 -07:00
Goetz Lindenmaier
85fedf2714 8020059: The flag introduced by 8014972 is not defined if Hotspot is built without a compiler (zero, ppc64 core build)
Define CodeCacheMinimumUseSpace flag for cppInterpeter build.

Reviewed-by: kvn
2013-07-08 14:15:02 -07:00
Brian Goetz
50a242e510 8020062: Nest StreamBuilder interfaces inside relevant Stream interfaces
Reviewed-by: psandoz, mduigou
2013-07-08 15:46:26 -04:00
Brian Goetz
ace3a4d196 8015320: Pull spliterator() up from Collection to Iterable
Reviewed-by: psandoz, mduigou
2013-07-12 15:01:08 -07:00
Vinnie Ryan
3300eed0bb 8019627: RuntimeException gets obscured during OCSP cert revocation checking
Reviewed-by: mullan
2013-07-12 20:44:34 +01:00
Jiangli Zhou
536e85289d Merge 2013-07-08 14:21:20 -04:00
Ioi Lam
1958240c6f 8016903: Thread::_handle_area initial size too big
Changed initial size to Chunk::tiny_size (216 bytes)

Reviewed-by: coleenp, dholmes, sspitsyn
2013-07-08 10:58:48 -07:00
Hannes Wallnöfer
4e011cfb8c 8019963: empty char range in regex
Reviewed-by: jlaskey, sundar
2013-07-08 19:34:55 +02:00
Leonid Romanov
007e944455 8019265: [macosx] apple.laf.useScreenMenuBar regression comparing with jdk6
Reviewed-by: anthony
2013-07-08 19:47:40 +04:00
Petr Pchelko
7ca1f12993 8012925: [parfait] Missing return value in jdk/src/macosx/native/sun/awt/AWTEvent.m
Reviewed-by: katleman, leonidr
2013-07-08 07:20:44 -07:00
Athijegannathan Sundararajan
f505b24c9b Merge 2013-07-08 18:43:41 +05:30
Athijegannathan Sundararajan
1e0c0dc73e 8020035: nashorn jdk buildfile BuildNashorn.gmk still renamed jdk.nashorn.internal.objects package
Reviewed-by: attila, jlaskey
2013-07-08 18:36:10 +05:30
Athijegannathan Sundararajan
0a7fda8dbe 8020015: shared PropertyMaps should not be used without duplication
Reviewed-by: hannesw, attila
2013-07-08 16:33:50 +05:30
Lana Steuck
a7cb4ce7b0 Merge 2013-07-05 13:29:04 -07:00
Lana Steuck
851063935c Merge 2013-07-05 12:26:27 -07:00
Lana Steuck
39a631a7e3 Merge 2013-07-05 11:57:11 -07:00
Lana Steuck
bcde82f11b Merge 2013-07-05 11:07:03 -07:00
Lana Steuck
9b5da4e548 Merge 2013-07-05 11:06:24 -07:00
Lana Steuck
a68e62073a Merge 2013-07-05 11:05:50 -07:00
Marcus Lagergren
fa6c5ef45f 8019983: Void returns combined with return with expression picked the wrong return type
Reviewed-by: sundar, jlaskey
2013-07-05 19:35:39 +02:00
Frederic Parain
7f314c6d87 Merge 2013-07-05 08:09:40 -07:00
Attila Szegedi
dbe76b28bd 8019819: scope symbol didn't get a slot in certain cases
Reviewed-by: hannesw, jlaskey, lagergren, sundar
2013-07-05 15:10:47 +02:00
Hannes Wallnöfer
8f092c733a 8017084: Use spill properties for large object literals
Reviewed-by: lagergren, sundar
2013-07-05 14:36:54 +02:00
Maurizio Cimadamore
7229f89614 8019824: very long error messages on inference error
Inference error messages shows several spurious captured variables generated during an inference loop

Reviewed-by: jjg, vromero
2013-07-05 11:05:02 +01:00
Maurizio Cimadamore
4442f43ea3 8016702: use of ternary operator in lambda expression gives incorrect results
Constant types erroneously creep in during inference

Reviewed-by: jjg, vromero
2013-07-05 11:04:22 +01:00
Maurizio Cimadamore
28b5759093 8016059: Cannot compile following lambda
8016060: Lambda isn't compiled with return statement

Spurious error triggered during unnecessary recovery round

Reviewed-by: jjg, vromero
2013-07-05 11:03:04 +01:00
Maurizio Cimadamore
86f630b63e 8019480: Javac crashes when method is called on a type-variable receiver from lambda expression
Logic for shortcircuiting speculative attribution doesn't handle type-variable receivers

Reviewed-by: jjg, vromero
2013-07-05 11:02:17 +01:00
Maurizio Cimadamore
7e6f7dcca5 8017618: NullPointerException in RichDiagnosticFormatter for bad input program
RDF crashes when diagnostic contains type 'void'

Reviewed-by: jjg, vromero
2013-07-05 11:00:19 +01:00
Athijegannathan Sundararajan
1853f28ab3 8019947: inherited property invalidation does not work with two globals in same context
Reviewed-by: jlaskey, lagergren, hannesw, attila
2013-07-05 14:38:04 +05:30
Frederic Parain
f6dc452231 8016465: The hs_err file gets wrong name
Reviewed-by: dcubed, dholmes, rdurbin
2013-07-05 08:26:49 +00:00
Daniel D. Daugherty
765f5cd4e7 8015884: runThese crashed with SIGSEGV, hs_err has an error instead of stacktrace
Dl_info struct should only be used if dladdr() has returned non-zero (no errors) and always check the dladdr() return value; Dl_info.dli_sname and Dl_info.dli_saddr fields should only be used if non-NULL; update/improve runtime/6888954/vmerrors.sh test

Reviewed-by: dsamersoff, zgu, hseigel, coleenp
2013-07-04 21:10:17 -07:00
Alejandro Murillo
b5efe058f7 8019934: new hotspot build - hs25-b41
Reviewed-by: jcoomes
2013-07-04 14:56:49 -07:00
Alejandro Murillo
f2930397a1 Added tag hs25-b40 for changeset d5b4e1fe16bd 2013-07-04 14:45:58 -07:00
Alejandro Murillo
17631f681a Merge 2013-07-04 14:45:57 -07:00
Marcus Lagergren
7426b8de5c Merge 2013-07-04 17:28:04 +02:00
Marcus Lagergren
0807ef3638 8019821: allInteger switches were confused by boolean cases, as they are a narrower type than int
Reviewed-by: sundar, hannesw
2013-07-04 17:27:33 +02:00
Attila Szegedi
f495ca639c 8019809: return after break incorrectly sets the block as terminal
Reviewed-by: jlaskey, lagergren
2013-07-04 14:10:18 +02:00
Anton Litvinov
b75b83da3e 8015730: PIT: On Linux, OGL=true and fbobject=false leads to deadlock or infinite loop
Reviewed-by: art, anthony
2013-07-04 16:06:11 +04:00
Zhengyu Gu
5de65fba93 Merge 2013-07-04 04:03:28 -07:00
Roland Westrelin
bc15de549e Merge 2013-07-04 03:41:57 -07:00
Zhengyu Gu
3e8c767620 8016074: NMT: assertion failed: assert(thread->thread_state() == from) failed: coming from wrong thread state
Uses os::NakedYield() on Solaris instead of os::yield_all()

Reviewed-by: acorn, coleenp, hseigel
2013-07-04 06:24:08 -04:00
Vicente Romero
684d5ec76d 6356530: -Xlint:serial does not flag abstract classes with concrete methods/members
Reviewed-by: mcimadamore
2013-07-04 10:41:08 +01:00
Vicente Romero
8277af52ee 8009924: some langtools tools do not accept -cp as an alias for -classpath
Reviewed-by: jjg
2013-07-04 10:35:33 +01:00
Roland Westrelin
6864f9f8a8 Merge 2013-07-04 01:42:34 -07:00
Bertrand Delsart
06ecbc8ba4 Merge 2013-07-04 01:03:26 -07:00
Christine Lu
277da6e517 Added tag jdk8-b97 for changeset f9f7fb94f515 2013-07-04 01:01:10 -07:00
Christine Lu
7b58133588 Added tag jdk8-b97 for changeset 6774fe79db80 2013-07-04 01:01:07 -07:00
Christine Lu
f1406aa65e Added tag jdk8-b97 for changeset a23062727b66 2013-07-04 01:00:52 -07:00
Christine Lu
9731e20795 Added tag jdk8-b97 for changeset f5105d95c3a3 2013-07-04 01:00:38 -07:00
Christine Lu
a3d4e7121c Added tag jdk8-b97 for changeset 611e21a147b1 2013-07-04 01:00:34 -07:00
Christine Lu
8007f4f434 Added tag jdk8-b97 for changeset 3a6f15473944 2013-07-04 01:00:19 -07:00
Christine Lu
4f3801a66f Added tag jdk8-b97 for changeset 1ebe717664d4 2013-07-04 01:00:08 -07:00
Christine Lu
36a8e30316 Added tag jdk8-b97 for changeset 1c0d035d6968 2013-07-04 01:00:06 -07:00
Carlos Lucasius
3fb892d0e8 Merge 2013-07-03 22:36:42 -04:00
Lana Steuck
0c0bcad83c Merge 2013-07-03 19:09:20 -07:00
Tao Mao
c02e42d05e Merge 2013-07-03 15:04:53 -07:00
Tao Mao
e94f9fcf63 Merge 2013-07-03 14:50:10 -07:00
Jiangli Zhou
b454ece6d7 7133260: AllocationProfiler uses space in metadata and doesn't seem to do anything useful
Remove -Xaprof and Klass::_alloc_count & ArrayKlass::_alloc_size.

Reviewed-by: stefank, coleenp
2013-07-03 17:26:59 -04:00
Paul Sandoz
c5fcef26c9 8019395: Consolidate StreamSupport.{stream,parallelStream} into a single method
Reviewed-by: henryjen, briangoetz
2013-07-03 21:43:49 +02:00
Mike Duigou
be6f63a1f8 Merge 2013-07-12 12:15:59 -07:00
Brian Goetz
4e416d4714 8015315: Stream.concat methods
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: psandoz, mduigou
2013-07-12 12:15:22 -07:00
Joe Darcy
25154dcc20 8010679: Clarify "present" and annotation ordering in Core Reflection for Annotations
Reviewed-by: abuckley, jfranck
2013-07-12 11:48:23 -07:00
Joe Wang
593f3c74ba 8020430: NullPointerException in xml sqe nightly result on 2013-07-12
Reviewed-by: chegar, lancea
2013-07-12 11:14:53 -07:00
Brian Goetz
53edbe01cb 8015317: Optional.filter, map, and flatMap
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: psandoz, mduigou
2013-07-12 11:12:16 -07:00
Mike Duigou
c14b02d707 7129185: Add Collections.{checked|empty|unmodifiable}Navigable{Map|Set}
Reviewed-by: dmocek, martin, smarks
2013-07-12 11:11:30 -07:00
Thomas Schatzl
b2aec6eda3 8014890: (ref) Reference queues may return more entries than expected
When enqueuing references check whether the j.l.r.Reference has already been enqeued or removed in the lock. Do not enqueue them again. This occurs because multiple threads may try to enqueue the same j.l.r.Reference at the same time.

Reviewed-by: mchung, dholmes, plevart, shade
2013-07-08 14:05:59 +02:00
Valerie Peng
cc8c381257 Merge 2013-07-11 17:52:04 -07:00
Dan Xu
94e1bc3172 8017212: File.createTempFile requires unnecessary "read" permission
Directly call FileSystem method to check a file existence. Also reviewed by tom.hawtin@oracle.com

Reviewed-by: alanb
2013-07-11 13:40:25 -07:00
Kumar Srinivasan
20c1572bcd 8019799: api/java_util/jar/Pack200 test failed with compactX profiles
Reviewed-by: dholmes
2013-07-11 11:14:06 -07:00
Jaroslav Bachorik
ec6cb721e1 8010285: Enforce the requirement of Management Interfaces being public
Reviewed-by: sjiang, dfuchs, mchung
2013-07-11 21:11:03 +02:00
Valerie Peng
a4223b53c1 8020321: Problem in PKCS11 regression test TestRSAKeyLength
Corrected the "isValidKeyLength" array

Reviewed-by: xuelei
2013-07-11 11:43:23 -07:00
Athijegannathan Sundararajan
5a354fd6c7 7187144: JavaDoc for ScriptEngineFactory.getProgram() contains an error
Reviewed-by: mcimadamore, jlaskey, hannesw, attila
2013-07-11 18:50:25 +05:30
Doug Lea
841458107b 8019484: Sync j.u.c.ConcurrentHashMap from 166 to tl
Reviewed-by: martin
2013-07-11 13:07:47 +02:00
Jaroslav Bachorik
d7811f443c 8019826: Test com/sun/management/HotSpotDiagnosticMXBean/SetVMOption.java fails with NPE
Reviewed-by: sjiang, dholmes, mchung
2013-07-11 09:21:09 +02:00
Valerie Peng
ad9738a0be 8020310: JDK-6356530 broke the old build
Add serialVersionUID to AuthProvider and P11Key class.

Reviewed-by: xuelei
2013-07-10 18:14:35 -07:00
Jason Uh
4111a6d9e4 8020318: Fix doclint issues in java.net
Reviewed-by: darcy, khazra
2013-07-10 18:01:22 -07:00
Serguei Spitsyn
a809f3b3f0 8020308: Fix doclint issues in java.lang.management
Reviewed-by: darcy
2013-07-10 14:20:19 -07:00
Valerie Peng
7ac34a643a Merge 2013-07-09 15:26:20 -07:00
Brian Burkhalter
9123d3fed3 6480539: BigDecimal.stripTrailingZeros() has no effect on zero itself ("0.0")
Make stripTrailingZeros() return BigDecimal.ZERO if the BigDecimal is numerically equal to zero.

Reviewed-by: darcy
2013-07-09 12:47:37 -07:00
Brian Burkhalter
7816fc6dde 6178739: (fmt) Formatter.format("%0.4f\n", 56789.456789) generates MissingFormatWidthException
Change the field width specification to require a positive value. The exception is still thrown but that is now explicitly consistent with the specification.

Reviewed-by: darcy
2013-07-09 11:26:25 -07:00
Joe Darcy
20cc00ce2b 8020294: Fix doclint issues in java.util.Spliterator
Reviewed-by: psandoz
2013-07-10 11:05:39 -07:00
Paul Sandoz
cfbed70a62 8020040: Improve and generalize the F/J tasks to handle right or left-balanced trees
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: briangoetz
2013-07-10 10:24:38 +02:00
Paul Sandoz
b47a003232 8017447: Unmodifiable map entry becomes modifiable if taken from a stream of map entries
Reviewed-by: briangoetz
2013-07-10 09:52:02 +02:00
Weijun Wang
2241a3720d 8019267: NPE in AbstractSaslImpl when trace level >= FINER in KRB5
Reviewed-by: mullan
2013-07-10 15:11:32 +08:00
David Holmes
ddb13a825c 8016341: java/lang/ref/OOMEInReferenceHandler.java failing intermittently
Ensure WeakRef object can't be prematurely gc'd

Reviewed-by: chegar, plevart
2013-07-09 22:01:57 -04:00
Sean Coffey
411683f3a7 8019979: Replace CheckPackageAccess test with better one from closed repo
Reviewed-by: mullan
2013-07-09 16:00:41 +01:00
Doug Lea
4fd805da91 8019370: Sync j.u.c Fork/Join from 166 to tl
Reviewed-by: chegar, martin
2013-07-09 16:04:25 +02:00
Brian Goetz
320200e8b7 8019551: Make BaseStream public
Reviewed-by: chegar, psandoz
2013-07-09 10:44:49 +02:00
Paul Sandoz
2409f0944c 8017141: java.util/stream Spliterators from sequential sources should not catch OOME
Reviewed-by: mchung
2013-07-09 09:15:57 +02:00
Joe Darcy
0fb5272229 8020095: Fix doclint warnings in java.util.regex
Reviewed-by: mchung
2013-07-08 22:43:36 -07:00
Jason Uh
dfb135dd14 8020091: Fix HTML doclint issues in java.io
Reviewed-by: darcy
2013-07-08 19:24:22 -07:00
Valerie Peng
3af3e5bf85 Merge 2013-07-08 11:11:07 -07:00
Anthony Scarpino
bc2fd2fe9c 6755701: SunJCE DES/DESede SecretKeyFactory.generateSecret throws InvalidKeySpecExc if passed SecretKeySpec
Reviewed-by: valeriep, wetmore, xuelei
2013-07-08 10:20:46 -07:00
Erik Helin
6085f712f8 8010734: NPG: The test MemoryTest.java needs to be updated to support metaspace
Reviewed-by: alanb
2013-07-08 11:30:44 +02:00
Bradford Wetmore
2c7b97640d 8019341: Update CookieHttpsClientTest to use the newer framework
Reviewed-by: xuelei, smarks, michaelm
2013-07-05 18:22:58 -07:00
Lana Steuck
18748d45b6 Merge 2013-07-05 14:37:41 -07:00
Valerie Peng
c4932212fc 7196805: DH Key interoperability testing between SunJCE and JsafeJCE not successful
Check equality based on component values instead of encoding which may vary due to optional components

Reviewed-by: weijun
2013-07-05 13:56:12 -07:00
Valerie Peng
3c38993366 8012637: Adjust CipherInputStream class to work in AEAD/GCM mode
Ensure the Cipher.doFinal() is called only once

Reviewed-by: xuelei
2013-07-05 13:53:37 -07:00
Sean Mullan
9643931f86 Merge 2013-07-05 16:30:08 -04:00
Lana Steuck
23a17dfafa Merge 2013-07-05 13:28:17 -07:00
Sean Mullan
e8695e26e4 8011547: Update XML Signature implementation to Apache Santuario 1.5.4
Reviewed-by: xuelei
2013-07-05 15:54:42 -04:00
Shi Jun Zhang
2e28a006d8 8019381: HashMap.isEmpty is non-final, potential issues for get/remove
Reviewed-by: chegar, mduigou
2013-07-05 10:51:54 +08:00
Brian Goetz
fd97f9873a 8017231: Add StringJoiner.merge
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: psandoz, alanb
2013-07-04 20:00:20 +01:00
Alan Bateman
fac53ff2dc 8019622: (sl) ServiceLoader.next incorrect when creation and usages are in different contexts
Reviewed-by: mchung, ahgross, forax, psandoz
2013-07-04 14:38:44 +01:00
Brian Burkhalter
095614ee2c 8019862: Fix doclint errors in java.lang.*
Fix doclint errors in java.lang.*

Reviewed-by: darcy
2013-07-03 17:08:14 -07:00
Eric McCorkle
a58f094d40 8016285: Add java.lang.reflect.Parameter.isNamePresent()
Add isNamePresent method to parameter reflection library, which indicates whether or real parameter data is available

Reviewed-by: darcy
2013-07-03 19:47:15 -04:00
Brian Burkhalter
c70d472774 8019857: Fix doclint errors in java.util.Format*
Fix doclint errors in java.util.Format*.

Reviewed-by: darcy
2013-07-03 13:30:46 -07:00
Vinnie Ryan
93a8ac2246 Merge 2013-07-03 14:35:10 -07:00
Jason Uh
d0f08f7987 8019772: Fix doclint issues in javax.crypto and javax.security subpackages
Reviewed-by: darcy
2013-07-03 12:51:45 -07:00
Paul Sandoz
355205b8a5 8017329: 8b92-lambda regression: TreeSet("a", "b").stream().substream(1).parallel().iterator() is empty
Reviewed-by: alanb
2013-07-03 21:19:25 +02:00
Christian Thalinger
22d32e76ce 8019184: MethodHandles.catchException() fails when methods have 8 args + varargs
Reviewed-by: jrose
2013-07-03 11:35:06 -07:00
Sylvestre Ledru
eeba729b55 8019833: Wrong JNI error code for preexisting JVM
Return the appropriate JNI error message (instead of the generic one) when the JVM is already started

Reviewed-by: coleenp, hseigel
2013-07-03 13:45:39 -04:00
Johnny Chen
f530400e5c 8014497: [parfait] Potential null pointer dereference in jdk/src/share/native/sun/java2d/cmm/lcms/cmsgamma.c
Reviewed-by: bae, prr
2013-07-03 10:22:13 -07:00
James Laskey
8ebb701354 8011629: Object.defineProperty performance issue
Reviewed-by: sundar, attila
2013-07-03 13:41:18 -03:00
Attila Szegedi
75501c6993 8017768: allow dot as inner class name separator for Java.type
Reviewed-by: jlaskey, sundar
2013-07-03 18:10:12 +02:00
Sergey Bylokhov
45d608aa5b 8004859: Graphics.getClipBounds/getClip return difference nonequivalent bounds, depending from transform
Reviewed-by: prr, flar
2013-07-03 19:00:10 +04:00
Athijegannathan Sundararajan
1e6e9dc0c6 8019814: Add regression test for passing cases
Reviewed-by: jlaskey, lagergren
2013-07-03 19:20:29 +05:30
Marcus Lagergren
047d1b732f 8019811: Static calls - self referential functions needed a return type conversion if they were specialized, as they can't use the same mechanism as indy calls
Reviewed-by: sundar, jlaskey
2013-07-03 15:46:03 +02:00
Athijegannathan Sundararajan
72a7034a41 8019805: for each (init; test; modify) is invalid
Reviewed-by: lagergren, jlaskey
2013-07-03 17:26:31 +05:30
Marcus Lagergren
62fb002570 8019585: Sometimes a var declaration using itself in its init wasn't declared as canBeUndefined, causing erroneous bytecode
Reviewed-by: sundar, attila
2013-07-03 13:03:36 +02:00
Attila Szegedi
92bcfea39a 8010946: AccessControl.doPrivileged is broken when called from js script
Reviewed-by: jlaskey, sundar
2013-07-03 12:39:28 +02:00
Doug Lea
1001452ba9 8019481: Sync misc j.u.c classes from 166 to tl
Reviewed-by: martin
2013-07-03 11:58:10 +02:00
Doug Lea
efb561f632 8011427: java.util.concurrent collection Spliterator implementations
Reviewed-by: martin
2013-07-03 11:58:09 +02:00
Athijegannathan Sundararajan
6dfb638284 8019791: ~ is a unary operator
Reviewed-by: hannesw
2013-07-03 14:08:00 +05:30
Athijegannathan Sundararajan
5ccee02c35 8019783: typeof does not work properly for java methods and foreign objects
Reviewed-by: hannesw
2013-07-03 13:13:17 +05:30
Christian Thalinger
3fb7de3d0d Merge 2013-07-02 22:51:23 -07:00
Christian Thalinger
90c790728d 8017571: JSR292: JVM crashing on assert "cast to instanceKlass" while producing MethodHandle for array methods with MethodHandle.findVirtual
Reviewed-by: kvn
2013-07-02 20:27:00 -07:00
David Chase
9a359984c2 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
Add intrinsics using new instruction to interpreter, C1, C2, for suitable x86; add test

Reviewed-by: kvn, twisti
2013-07-02 20:42:12 -04:00
Vinnie Ryan
118272d2e9 7165807: Non optimized initialization of NSS crypto library leads to scalability issues
Reviewed-by: mullan, valeriep
2013-07-02 16:38:09 -07:00
Mandy Chung
5a360a7579 8007035: deprecate public void SecurityManager.checkMemberAccess(Class<?> clazz, int which)
Reviewed-by: jrose, alanb, dfuchs
2013-07-02 15:58:09 -07:00
David Katleman
f1082cda65 Merge 2013-07-02 15:55:55 -07:00
David Katleman
46026ae61c Merge 2013-07-02 15:55:36 -07:00
David Katleman
1924ae840b Merge 2013-07-02 15:55:14 -07:00
Lana Steuck
8a261ad520 Merge 2013-07-02 15:23:23 -07:00
Lana Steuck
5facdba813 Merge 2013-07-02 15:20:55 -07:00
Vicente Romero
ea2c99f5bb 6326693: variable x might already have been assigned, when assignment is in catch block
Reviewed-by: mcimadamore
2013-07-02 22:49:40 +01:00
Phil Race
467296964c 8019692: JDK build CC_OPT_HIGHEST setting isn't valid for Sun C++ compiler
Reviewed-by: jgodinez
2013-07-02 14:25:56 -07:00
Athijegannathan Sundararajan
22b6014ba6 8019629: void operator should always evaluate to undefined
Reviewed-by: jlaskey
2013-07-03 00:08:45 +05:30
Daniel Fuchs
5f717a6674 7184195: java.util.logging.Logger.getGlobal().info() doesn't log without configuration
Due to subtle synchronization issues between LogManager & Logger class initialization the global logger doesn't have its 'manager' field initialized until the LogManager is initialized. This fix will ensure that the global logger has its 'manager' field set when getGlobal() is called.

Reviewed-by: mchung, plevart
2013-07-02 19:47:58 +02:00
Coleen Phillimore
4ecee47075 Merge 2013-07-02 16:54:24 +02:00
Athijegannathan Sundararajan
f76da2a387 Merge 2013-07-02 18:39:41 +05:30
Erik Joelsson
afe1b20cde 8019537: jdk8-build prebuild fails in source bundle generation, The path of TOOLS_DIR ... is not found
Reviewed-by: tbell
2013-07-02 15:07:05 +02:00
Marcus Lagergren
53a84f9d41 Merge 2013-07-02 15:01:38 +02:00
Marcus Lagergren
8ff9291b05 8017082: Long array literals were slightly broken
Reviewed-by: sundar, attila
2013-07-02 14:50:39 +02:00
Coleen Phillimore
1e7c006d39 8015391: NPG: With -XX:+UseCompressedKlassPointers OOME due to exhausted metadata space could occur when metaspace is almost empty
Allocate medium chunks for class metaspace when class loader has lots of classes

Reviewed-by: mgerdin, jmasa
2013-07-02 08:42:37 -04:00
Athijegannathan Sundararajan
f05a001210 8019553: NPE on illegal l-value for increment and decrement
Reviewed-by: jlaskey, attila, lagergren
2013-07-02 18:00:15 +05:30
Kumar Srinivasan
bd5975ceec 8017463: [TEST_BUG] 2 tests from tools/pack200/ remain about 1 GB of data in work directory after execution
Reviewed-by: mchung
2013-07-02 05:28:31 -07:00
Marcus Lagergren
518a9bf3d0 8016667: Wrong bytecode when testing/setting due to null check shortcut checking against primitive too
Reviewed-by: jlaskey, sundar
2013-07-02 13:50:19 +02:00
Erik Helin
66ab4f9471 8019500: Exclude MemoryTest.java and MemoryTestAllGC.sh to enable integration
Reviewed-by: erikj, alanb
2013-07-02 13:06:50 +02:00
Eugene Drobitko
e8a1440b91 8019580: Build Script Change for Nashorn promotion testing
Reviewed-by: jlaskey
2013-07-02 07:45:16 -03:00
Daniel Fuchs
677643324e 8017174: NPE when using Logger.getAnonymousLogger or LogManager.getLogManager().getLogger
This patch makes sure that LoggerContext instances created for applets have a root and global logger.

Reviewed-by: mchung
2013-07-02 11:30:31 +02:00
Albert Noll
386e37ba15 8014972: Crash with specific values for -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=500k
Introduce a minimum code cache size that guarantees that the VM can startup.

Reviewed-by: kvn, twisti
2013-07-02 07:51:31 +02:00
Vladimir Kozlov
fc1302ea95 8019247: SIGSEGV in compiled method c8e.e.t_.getArray(Ljava/lang/Class;)[Ljava/lang/Object
Undo recent changes (and add more comments) in Ideal_allocation().

Reviewed-by: roland
2013-07-02 10:30:49 -07:00
Jason Uh
200428aa69 8019539: Fix doclint errors in java.security and its subpackages
Reviewed-by: darcy
2013-07-01 17:46:12 -07:00
Jiangli Zhou
bf2a400ca2 8006023: Embedded Builds fail management test because of requirement for UsePerfData being enabled
Added -XX:+UsePerfData to Test7196045.java.

Reviewed-by: dholmes, collins
2013-07-01 19:44:37 -04:00
Kumar Srinivasan
bab861035d 8019460: tests in changeset do not have @bug tag
Reviewed-by: darcy
2013-07-01 16:36:08 -07:00
Dmytro Sheyko
ba85477f84 8019397: javap does not show SourceDebugExtension properly
Reviewed-by: jjg
2013-07-02 10:21:41 +01:00
Joe Darcy
a0fa326cb4 8019535: Fix doclint issues in java.time.format
Reviewed-by: lancea, rriggs
2013-07-01 14:33:08 -07:00
Volker Simonis
7936ee54bf 8019382: PPC64: Fix bytecodeInterpreter to compile with '-Wunused-value'
Cast the offending expressions to (void)

Reviewed-by: kvn, coleenp
2013-07-01 14:14:16 -07:00
Tomas Hurka
425681caec 8009204: [dtrace] signatures returned by Java 7 jstack() are corrupted on Solaris
The fix is basically a backport of JDK-7019165 (pstack issue) to jhelper.d.

Reviewed-by: coleenp, sspitsyn
2013-07-01 14:13:12 -07:00
Joe Darcy
6db4640708 8019529: Fix doclint issues in java.util.spi
Reviewed-by: lancea
2013-07-01 13:42:03 -07:00
Joe Darcy
04e9fa3289 8019527: Fix doclint issues in java.lang.instrument
Reviewed-by: lancea, alanb
2013-07-01 13:29:32 -07:00
Phil Race
71a1e79eeb 8015144: Performance regression in ICU OpenType Layout library
Reviewed-by: srl, jgodinez
2013-07-01 12:39:26 -07:00
Filipp Zhinkin
68c516f654 8006629: NEED_TEST: need test for JDK-8001071
Added regression test

Reviewed-by: kvn, coleenp
2013-07-01 12:22:34 -07:00
Joe Darcy
547a050fe1 7162089: Add support for repeating annotations to javax.annotation.processing
Reviewed-by: abuckley, jjg, jfranck
2013-07-01 11:58:45 -07:00
Peter Levart
329abc4028 8017540: Improve multi-threaded contention behavior of radix conversion cache
Replace array of ArrayList of BigIntegers with a volatile two-dimensional BigInteger array eliminate the synchronization of getRadixConversionCache()

Co-authored-by: Dmitry Nadezhin <dmitry.nadezhin@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Reviewed-by: plevart, shade, bpb, alanb
2013-07-01 11:30:14 -07:00
Athijegannathan Sundararajan
f743fb3852 8019508: Comma handling in object literal parsing is wrong
Reviewed-by: hannesw
2013-07-01 23:36:40 +05:30
Athijegannathan Sundararajan
c6b0514112 8019488: switch on literals result in NoSuchMethodError or VerifyError
Reviewed-by: hannesw
2013-07-01 19:52:07 +05:30
Maurizio Cimadamore
1c13f5e4cb 7034798: Ambiguity error for abstract method call is too eager
Javac should wait and see if ambiguous methods can be reconciled at the end of an overload resolution round

Reviewed-by: jjg, vromero
2013-07-01 14:57:03 +01:00
Erik Joelsson
4d4e099942 8009744: build-infra: REGRESSION: Publisher was NOT set for some JDK files
Reviewed-by: tbell
2013-07-01 15:40:27 +02:00
Vinnie Ryan
53ecefacac 8019259: Failover to CRL checking does not happen if wrong OCSP responder URL is set
Reviewed-by: xuelei
2013-07-01 14:39:47 +01:00
Athijegannathan Sundararajan
135ccaceef 8019482: Number("0x0.0p0") should evaluate to NaN
Reviewed-by: lagergren
2013-07-01 17:21:09 +05:30
Daniel Fuchs
7addcb118b 8014045: test/java/lang/management/PlatformLoggingMXBean/LoggingMXBeanTest.java failing intermittently
This test was failing because it didn't take into account the fact that Loggers could be garbage collected.

Reviewed-by: mchung
2013-07-01 11:13:56 +02:00
Athijegannathan Sundararajan
1a074a8b66 8019478: Object.prototype.toString.call(/a/.exec("a")) === "[object Array]" should be true
Reviewed-by: hannesw
2013-07-01 14:15:07 +05:30
Athijegannathan Sundararajan
1a0fc187f4 8019473: Parser issues related to functions and blocks
Reviewed-by: lagergren
2013-07-01 12:38:01 +05:30
Joe Darcy
8de97d93a0 8019467: Fix doclint issues in java.util.jar.Pack200
Reviewed-by: lancea, ksrini
2013-06-30 17:15:47 -07:00
Joe Darcy
60782578cb 8019466: Fix doclint issues in java.util.function
Reviewed-by: briangoetz
2013-06-30 16:02:11 -07:00
Vicente Romero
a33129c6af 6983646: javap should identify why a DefaultAttribute is being used
Reviewed-by: jjg
2013-06-29 20:12:24 +01:00
Lance Andersen
607de236dc 8019286: Fix javadoc typo in ResultSet.next
Reviewed-by: darcy, mchung
2013-06-29 06:12:28 -04:00
Tao Mao
7109e85e43 8017611: Auto corrector for mistyped vm options
The auto corrector for mistyped vm options fuzzy-matches existing flags based on string similarity (Dice's coefficient).

Reviewed-by: kvn, dsamersoff, hseigel, johnc
2013-06-28 20:18:04 -07:00
John Cuthbertson
f93ee2a9dd 8017070: G1: assert(_card_counts[card_num] <= G1ConcRSHotCardLimit) failed
The assert is invalid when a card is being refined by two different threads and its count crosses the hot threshold - the refinement count will be updated once by each thread triggering the assert. Remove the assert and update the count using a bounded expression.

Reviewed-by: jmasa, tamao, brutisso
2013-07-01 09:30:23 -07:00
Per Liden
36967c98e4 8014022: G1: Non Java threads should lock the shared SATB queue lock without safepoint checks
Reviewed-by: tschatzl, brutisso, jmasa, ysr
2013-06-30 21:42:07 +02:00
Lana Steuck
365be2d998 Merge 2013-06-28 19:48:01 -07:00
Lana Steuck
c5e36903f7 Merge 2013-06-28 19:47:54 -07:00
Lana Steuck
c4c235dc4a Merge 2013-06-28 19:46:18 -07:00
Lana Steuck
0e912d560f Merge 2013-06-28 19:37:48 -07:00
Lana Steuck
cf72044ebb Merge 2013-06-28 18:06:26 -07:00
David Katleman
78425fd8da 8019347: JDK8 b96 source with GPL header errors
Reviewed-by: iris, alanb, lancea
2013-06-28 16:26:36 -07:00
David Katleman
96d8c85b80 8019347: JDK8 b96 source with GPL header errors
Reviewed-by: iris, alanb, lancea
2013-06-28 16:25:51 -07:00
Alan Bateman
6084db7277 8019384: jps and jcmd tests fail when there is a process started with a .war file
Reviewed-by: dcubed, sla, mchung
2013-06-28 19:45:06 +01:00
Joe Darcy
da1d369ffe 8019407: Fix doclint issues in javax.naming.*
Reviewed-by: lancea
2013-06-28 11:35:36 -07:00
Jason Uh
0b7143c3ee 8019360: Cleanup of the javadoc <code> tag in java.security.*
Convert to {@code ...} tags. convert package.html to package-info.java.

Reviewed-by: darcy
2013-06-28 10:48:02 -07:00
Erik Helin
f72bcd09ec Merge 2013-06-28 18:28:17 +02:00
Chris Hegarty
d469f38970 Merge 2013-06-28 16:39:15 +01:00
John Zavgren
0faa9a064f 8015799: HttpURLConnection.getHeaderFields() throws IllegalArgumentException
Reviewed-by: chegar, dsamersoff, khazra
2013-06-28 16:38:09 +01:00
Alan Bateman
8002fd8cbf 8019380: doclint warnings in java.nio, java.nio.file.**, java.nio.channels.**
Reviewed-by: chegar
2013-06-28 16:10:23 +01:00
Dmitry Markov
681764bad0 8016534: javax/swing/text/View/8014863/bug8014863.java failed
Reviewed-by: alexp, alexsch
2013-06-28 18:32:20 +04:00
Athijegannathan Sundararajan
0eb7f23c99 8019365: Error stack format
Reviewed-by: hannesw
2013-06-28 19:36:26 +05:30
Vicente Romero
39673a6ee9 8005552: c.s.t.javap.AttributeWriter.visitLocalVariableTable() uses incorrect format string
Reviewed-by: mcimadamore
2013-06-28 14:36:06 +01:00
Vicente Romero
e8952a4764 6473148: TreePath.iterator() should document the iteration order
Reviewed-by: mcimadamore
2013-06-28 13:20:44 +01:00
Doug Lea
4535f67d05 8019377: Sync j.u.c locks and atomic from 166 to tl
Reviewed-by: chegar
2013-06-28 12:12:37 +01:00
Doug Lea
0eb360620b 8017739: ReentrantReadWriteLock is confused by the Threads with reused IDs
Reviewed-by: chegar
2013-06-28 12:10:18 +01:00
Eric McCorkle
95e39e6039 8016760: Failure of regression test langtools/tools/javac/T6725036.java
Marking the failing test @ignore; the proposed change for 8015666 addresses the underlying issue

Reviewed-by: jjg
2013-06-28 06:54:58 -04:00
Erik Joelsson
b09cf3ec07 8010385: build with LOG=trace broken on mac
Reviewed-by: dholmes, tbell, prr
2013-06-28 12:02:37 +02:00
Erik Joelsson
3b0b76b721 8016303: make CONF= isn't working
Reviewed-by: tbell
2013-06-28 12:00:03 +02:00
Erik Joelsson
bf403c2e7e 8019229: Build Configuration Fail in Windows Platform
Reviewed-by: chegar, tbell, dxu
2013-06-28 11:58:16 +02:00
Erik Joelsson
343cdc40e7 8016605: New files dont apear in src.zip
Reviewed-by: tbell
2013-06-28 11:55:46 +02:00
Alejandro Murillo
13bcac6e93 8019302: new hotspot build - hs25-b40
Reviewed-by: jcoomes
2013-06-28 02:33:13 -07:00
Alejandro Murillo
bac4ba3939 Added tag hs25-b39 for changeset 4056af328b00 2013-06-28 02:25:08 -07:00
Alejandro Murillo
c2c1793452 Merge 2013-06-28 02:25:07 -07:00
Paul Sandoz
27da77ce6b 8012987: Optimizations for Stream.limit/substream
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou
2013-06-28 10:29:21 +02:00
Eric McCorkle
9b1ec513d5 8013357: javac accepts erroneous binary comparison operations
Javac does not report type errors on illegal Object == primitive comparisons

Reviewed-by: abuckley, mcimadamore
2013-06-27 17:45:56 -04:00
David Katleman
73d6b7cc52 Added tag jdk8-b96 for changeset 472d8f5f0d9b 2013-06-27 13:40:38 -07:00
David Katleman
8ba7651e27 Added tag jdk8-b96 for changeset 51ef92228b23 2013-06-27 13:40:36 -07:00
David Katleman
c3b9b19f91 Added tag jdk8-b96 for changeset 627400b6bdcf 2013-06-27 13:40:29 -07:00
David Katleman
f5f1e7468b Added tag jdk8-b96 for changeset 388de52dcee3 2013-06-27 13:40:26 -07:00
David Katleman
b2d8996d7f Added tag jdk8-b96 for changeset ca76027384ab 2013-06-27 13:40:25 -07:00
David Katleman
20294ba90e Added tag jdk8-b96 for changeset 14d9242a9dc9 2013-06-27 13:40:18 -07:00
David Katleman
8369f7184c Added tag jdk8-b96 for changeset f7f6b997342b 2013-06-27 13:40:14 -07:00
David Katleman
60bbc95a1b Added tag jdk8-b96 for changeset 3fe185be063a 2013-06-27 13:40:12 -07:00
Kumar Srinivasan
704f96a0d5 7080001: Need to bump version numbers in build.properties for 8
Reviewed-by: jjg
2013-06-27 12:42:47 -07:00
Joe Darcy
21d2b03764 8019308: Add descriptions of Java SE 7 and 8 language changes to SourceVersion
Reviewed-by: jjg
2013-06-27 11:46:23 -07:00
Vladimir Kozlov
579c7ac5ab Merge 2013-06-27 11:12:19 -07:00
Jan Valenta
97f7bab3c7 8015720: since tag isn't copied while generating JavaFX documentation
Reviewed-by: jjg
2013-06-27 17:47:18 +02:00
Vicente Romero
a87b5d942d 7008643: inlined finally clauses confuse debuggers
Reviewed-by: jjg
2013-06-27 16:06:56 +01:00
Vicente Romero
4e49cb5fc5 8016099: Some @SuppressWarnings annotations ignored ( unchecked, rawtypes )
Reviewed-by: jjg
2013-06-27 16:04:05 +01:00
Petr Pchelko
13f301694b 8019236: [macosx] Add javadoc to the handleWindowFocusEvent in CEmbeddedFrame
Reviewed-by: serb, ant
2013-06-27 13:56:16 +04:00
Erik Helin
62be1fc827 Merge 2013-06-27 10:56:10 +02:00
Vicente Romero
9e35962ebf 8017609: javac, ClassFile.read(Path) should be ClassFile.read(Path, Attribute.Factory)
Reviewed-by: jjg
2013-06-27 09:54:50 +01:00
Vicente Romero
94991de3c3 7066788: javah again accepts -old option (ineffectively) which was removed in 1.5
Reviewed-by: jjg
2013-06-27 09:51:59 +01:00
Erik Joelsson
7cdf8d8a08 8014513: Sjavac doesn't detect 32-bit jvm properly
Reviewed-by: jjg
2013-06-27 10:35:36 +02:00
Athijegannathan Sundararajan
1e5b5c1269 Merge 2013-06-27 13:47:20 +05:30
Bengt Rutisson
d3dfbb3cf2 8017483: G1 tests fail with native OOME on Solaris x86 after HeapBaseMinAddress has been increased
Set HeapBaseMinAddress as default rather than ergo

Reviewed-by: stefank, jmasa, kvn
2013-06-27 09:59:59 +02:00
Athijegannathan Sundararajan
a089899deb 8019226: line number not generated for first statement if it is on the same function declaration line
Reviewed-by: jlaskey, hannesw
2013-06-27 13:24:50 +05:30
Erik Joelsson
19689fb2ab 8017047: Can't use --with-java-devtools and --with-devkit at the same time
Reviewed-by: tbell
2013-06-27 09:27:06 +02:00
Eric McCorkle
a2c99b7e5c 8014230: Compilation incorrectly succeeds with inner class constructor with 254 parameters
The compiler does not account fr extra parameters due to inner this parameters

Reviewed-by: jjg
2013-06-27 00:37:13 -04:00
Bhavesh Patel
b2c41f305e 8013738: Two javadoc tests have bug 0000000
Reviewed-by: jjg
2013-06-26 20:45:47 -07:00
Bhavesh Patel
9a773a649c 8014017: extra space in javadoc class heading
Reviewed-by: jjg
2013-06-26 20:42:43 -07:00
Bhavesh Patel
561009c4ac 8007338: Method grouping tab line-folding
Reviewed-by: jjg
2013-06-26 20:38:21 -07:00
Matherey Nunez
eedcd5d290 8014137: Update test/tools/javac/literals/UnderscoreLiterals to add testcases with min/max values
Reviewed-by: jjg, darcy
2013-06-26 18:03:58 -07:00
David Katleman
ed14278b82 8016684: JDK8 b94 source with GPL header errors
Reviewed-by: tbell, darcy
2013-06-26 11:26:33 -07:00
David Katleman
a744eb3dcb 8016684: JDK8 b94 source with GPL header errors
Reviewed-by: tbell, darcy
2013-06-26 11:26:18 -07:00
David Katleman
dcb3a24cfc 8017323: JDK8 b95 source with GPL header errors
Reviewed-by: tbell, darcy
2013-06-26 11:25:42 -07:00
Staffan Larsen
7b09b9e85a 8019155: Update makefiles with correct jfr packages
Reviewed-by: mgronlun, erikj
2013-06-26 19:15:34 +02:00
Kumar Srinivasan
3ab53b61f0 8016908: TEST_BUG: removing non-ascii characters causes tests to fail
Reviewed-by: jjg, vromero
2013-06-26 09:54:46 -07:00
James Laskey
1e7b1f36e4 8019175: Simplify ScriptObject.modifyOwnProperty
Reviewed-by: hannesw
2013-06-26 12:38:35 -03:00
Erik Gahlin
bb7b31d9ff 8016331: Minor issues in event tracing metadata
Reviewed-by: stefank, brutisso, mgronlun
2013-06-26 17:02:04 +02:00
Erik Helin
604a75ff30 8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin
2013-06-26 16:58:37 +02:00
Athijegannathan Sundararajan
ee8b3bd823 8014781: support Error.captureStackTrace
Reviewed-by: jlaskey, hannesw
2013-06-26 19:42:17 +05:30
Hannes Wallnöfer
70383eb20a 8019157: Avoid calling ScriptObject.setProto() if possible
Reviewed-by: jlaskey, sundar
2013-06-26 15:40:52 +02:00
James Laskey
e628bb4979 8008458: Strict functions dont share property map
Reviewed-by: sundar, hannesw
2013-06-26 08:36:53 -03:00
Athijegannathan Sundararajan
f4695eca85 8017950: error.stack should be a string rather than an array
Reviewed-by: hannesw, jlaskey
2013-06-26 16:36:13 +05:30
Vadim Pakhnushev
84a34cfcf1 8016254: several sun/java2d/OpenGL tests failed with SIGFPE
Reviewed-by: prr, bae
2013-06-26 13:49:16 +04:00
Jon Masamitsu
ca3a1be3fe 8014851: UseAdaptiveGCBoundary is broken
Reviewed-by: tschatzl, brutisso
2013-06-25 15:17:11 -07:00
David Katleman
20afdff460 Merge 2013-06-25 13:49:41 -07:00
David Katleman
c51efcec4c Merge 2013-06-25 13:47:00 -07:00
Alejandro Murillo
2289eb801f Merge 2013-06-25 12:46:21 -07:00
Jon Masamitsu
a154f7c01e 8014546: MetaspaceAux print_metaspace_change() should print "used" after GC not capacity
Reviewed-by: johnc, tschatzl
2013-06-25 09:58:26 -07:00
Alexander Zuev
fd80bae5c5 8006973: jtreg test fails: test/tools/javac/warnings/AuxiliaryClass/SelfClassWithAux.java
Reviewed-by: ksrini
2013-06-25 20:08:52 +04:00
Vicente Romero
d7fff903e8 8017104: javac should have a class for primitive types that inherits from Type
Reviewed-by: jjg
2013-06-25 16:12:53 +01:00
Staffan Larsen
7b2e1c47f4 8017561: Build errors caused by missing .PHONY
Reviewed-by: stefank, brutisso
2013-06-25 14:11:57 +02:00
Athijegannathan Sundararajan
249d0ae5b4 8015969: Needs to enforce and document that global "context" and "engine" can't be modified when running via jsr223
Reviewed-by: hannesw, jlaskey
2013-06-25 17:31:19 +05:30
Erik Joelsson
10f98044f8 8012564: The SOURCE value in release file of JDK 8 doesn't contain valid changesets for some OS since b74
Reviewed-by: alanb, tbell
2013-06-25 09:37:46 +02:00
Erik Joelsson
ce1f93f183 8017480: Move copying of jfr files to closed makefile
Reviewed-by: sla, tbell
2013-06-25 09:25:16 +02:00
Eric McCorkle
17f5808828 8012722: Single comma in array initializer should parse
Annotations of the form @Foo({,}) should parse

Reviewed-by: jjg
2013-06-24 22:03:57 -04:00
Coleen Phillimore
39a1c1d6c2 8016325: JVM hangs verifying system dictionary
Minimize redundant verifications of Klasses.

Reviewed-by: hseigel, jmasa
2013-06-24 18:55:46 -04:00
Lana Steuck
7d6cc74108 Merge 2013-06-24 14:28:20 -07:00
Lana Steuck
1159b21b3f Merge 2013-06-24 14:27:32 -07:00
Lana Steuck
aabc46c357 Merge 2013-06-24 14:27:26 -07:00
Lana Steuck
68a84342d4 Merge 2013-06-24 14:27:24 -07:00
Lana Steuck
7afa2387bd Merge 2013-06-24 14:27:05 -07:00
Lana Steuck
df38a9372d Merge 2013-06-24 14:26:58 -07:00
Lana Steuck
637d0ec23d Merge 2013-06-24 14:26:54 -07:00
Lana Steuck
8a5e6086b5 Merge 2013-06-24 14:26:47 -07:00
Goetz Lindenmaier
1f6c4015a7 8017531: 8010460 changes broke bytecodeInterpreter.cpp
Replace _indy by _jsr292 and also fix VERIFY_OOP macros.

Reviewed-by: kvn
2013-06-24 16:11:47 +02:00
Niclas Adlertz
2b66900257 8017510: Add a regression test for 8005956
Regression test for 8005956

Reviewed-by: kvn, twisti
2013-06-26 00:40:13 +02:00
Niclas Adlertz
19d56715fa 8017243: 8001345 is incomplete
Replaces unused decodeN at MemBarAcquire with its corresponding loadN if loadN is used at more than one place.

Reviewed-by: kvn, twisti
2013-06-25 12:07:07 -07:00
Christian Thalinger
d5d79568d0 Merge 2013-06-24 18:23:45 -07:00
Christian Thalinger
de4b9daceb 8017538: Clang support broke slowdebug build for i586
Reviewed-by: kvn
2013-06-24 17:47:25 -07:00
Goetz Lindenmaier
fad60d1428 8017308: Remove unused breakpoint relocation type
Remove unused breakpoint relocation type

Reviewed-by: kvn
2013-06-24 11:53:54 -07:00
Athijegannathan Sundararajan
02e0b5c3f1 8015959: Can't call foreign constructor
Reviewed-by: jlaskey, hannesw
2013-06-24 19:06:01 +05:30
Ioi Lam
196c8abc3d 8009575: Reduce Symbol::_refcount from 4 bytes to 2 bytes
Added Atomic::inc(short*) to support this change.

Reviewed-by: coleenp, dcubed, dholmes, minqi
2013-06-23 22:08:28 -07:00
James Laskey
2aad633d9b 8017448: JDK-8010732.js.EXPECTED truncated
Reviewed-by: sundar
2013-06-22 10:12:19 -03:00
Daniel D. Daugherty
1c281a9fb3 Merge 2013-06-21 10:55:26 -07:00
James Laskey
86ff93e544 8010732: BigDecimal, BigInteger and Long handling in nashorn
Reviewed-by: sundar
2013-06-21 14:34:00 -03:00
Anton Litvinov
8b4ab0bb1e 8007642: Media Names on Java Print Do Not Match the Printer’s and Confuse Users
Reviewed-by: prr, jgodinez
2013-06-21 21:30:12 +04:00
Daniel D. Daugherty
b786264739 Merge 2013-06-21 08:18:08 -07:00
Doug Simon
42ca17cea2 8017177: more explicit code location information in hs_err crash log
Add code pc location for compiled code

Reviewed-by: kvn, coleenp
2013-06-21 10:57:00 -04:00
Coleen Phillimore
90292afbfa 8004124: Handle and/or warn about SI_KERNEL
Detect this crash in the signal handler and give a fatal error message instead of making us chase down bugs that don't reproduce

Reviewed-by: kvn, mgerdin, dholmes
2013-06-21 10:50:19 -04:00
Sergey Malenkov
10e6614da0 8016545: java.beans.XMLEncoder.writeObject output is wrong
Reviewed-by: alexsch
2013-06-21 17:13:43 +04:00
Athijegannathan Sundararajan
995f6390e8 Merge 2013-06-21 17:33:05 +05:30
Athijegannathan Sundararajan
6f8f3be8c3 8017260: adjust lookup code in objects.* classes
Reviewed-by: hannesw, jlaskey
2013-06-21 16:55:18 +05:30
Alejandro Murillo
1dc7a25eac 8017253: new hotspot build - hs25-b39
Reviewed-by: jcoomes
2013-06-21 00:59:12 -07:00
Alejandro Murillo
c623ba96a0 Added tag hs25-b38 for changeset 5fa5cb572ab6 2013-06-21 00:51:57 -07:00
Alejandro Murillo
9d238057f3 Merge 2013-06-21 00:51:56 -07:00
Vladimir Kozlov
175419c053 Merge 2013-06-20 16:08:11 -07:00
Eric McCorkle
bca53c33de 8007546: ClassCastException on JSR308 tests
8015993: jck-compiler tests are failed with java.lang.ClassCastException

Fix ClassCastExceptions arising from addition of AnnotatedType.

Reviewed-by: jjg, abuckley
2013-06-20 19:01:20 -04:00
Chris Hegarty
92d31ec9c3 8014499: MulticastSocket should enable IP_MULTICAST_ALL (lnx)
Co-authored-by: John Zavgren <john.zavgren@oracle.com>
Reviewed-by: alanb, chegar
2013-06-20 18:53:57 +01:00
David Katleman
a2ff843552 Added tag jdk8-b95 for changeset aee867cdeb80 2013-06-20 10:18:01 -07:00
David Katleman
fa27360b22 Added tag jdk8-b95 for changeset 41b9fc8961f6 2013-06-20 10:17:55 -07:00
David Katleman
d5569033f3 Added tag jdk8-b95 for changeset b537ef8da8d5 2013-06-20 10:17:29 -07:00
David Katleman
c51a318e1b Added tag jdk8-b95 for changeset fb4997d1f3bf 2013-06-20 10:17:12 -07:00
David Katleman
a982ab708a Added tag jdk8-b95 for changeset 1db35290f46d 2013-06-20 10:17:08 -07:00
David Katleman
261b0510b8 Added tag jdk8-b95 for changeset 2ee055cdda86 2013-06-20 10:16:47 -07:00
David Katleman
91ac93f3b5 Added tag jdk8-b95 for changeset 0664c494ac98 2013-06-20 10:16:30 -07:00
David Katleman
b92c0f4da7 Added tag jdk8-b95 for changeset 0229eabb2693 2013-06-20 10:16:25 -07:00
Mike Duigou
eb4f6b52dd Merge 2013-06-20 08:21:08 -07:00
Leonid Romanov
4fb1e1757a 8014264: The applet pathguy_TimeDead throws java.lang.NullPointerException in java console once click drop-down check box
Reviewed-by: art, anthony, serb
2013-06-20 18:50:55 +04:00
Xue-Lei Andrew Fan
b0246ef1ae 8017157: catch more exception in test RejectClientRenego
Reviewed-by: vinnie
2013-06-20 07:48:49 -07:00
Mike Duigou
3377e0da57 8017088: Map/HashMap.compute() incorrect with key mapping to null value
Reviewed-by: dl, dholmes, plevart
2013-06-20 07:23:51 -07:00
Goetz Lindenmaier
ef69ce852c 8016697: Use stubs to implement safefetch
Implement Safefetch as stub routines. This reduces compiler and os dependencies.

Reviewed-by: twisti, kvn
2013-06-20 15:02:05 +02:00
Athijegannathan Sundararajan
20710c0c6e Merge 2013-06-20 17:34:42 +05:30
Markus Grönlund
e7b16a5e79 8016735: Remove superfluous EnableInvokeDynamic warning from UnlockDiagnosticVMOptions check
Reviewed-by: sla, dholmes
2013-06-20 11:53:51 +02:00
Paul Sandoz
338bfbd857 8016139: PrimitiveIterator.forEachRemaining
Reviewed-by: alanb
2013-06-20 11:21:13 +02:00
Paul Sandoz
6cb8fc5c5f 8016455: Sync stream tests from lambda to tl
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou
2013-06-20 11:15:23 +02:00
Brian Goetz
ae0d33346e 8016324: filter/flatMap pipeline sinks should pass size information to downstream sink
Reviewed-by: chegar, mduigou
2013-06-20 11:02:28 +02:00
Paul Sandoz
434bea45ac 8016308: Updates to j.u.stream.Node/Nodes
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: mduigou
2013-06-20 10:45:46 +02:00
Athijegannathan Sundararajan
9e05183200 8017046: Cannot assign undefined to a function argument if the function uses arguments object
Reviewed-by: hannesw
2013-06-20 13:45:38 +05:30
Erik Helin
774e23fae7 Merge 2013-06-20 10:03:58 +02:00
Maurizio Cimadamore
1a284a49c9 8016613: javac should avoid source 8 only analysis when compiling for source 7
Reviewed-by: jjg
2013-06-20 08:45:43 +01:00
Ioi Lam
0decdc537a 8008964: NPG: Memory regression: Thread::_metadata_handles uses 1 KB per thread
Reduce default size of Thread::_metadata_handles from 300 to 30

Reviewed-by: coleenp, sspitsyn
2013-06-19 20:51:39 -07:00
Lana Steuck
5ab44a5a66 Merge 2013-06-19 18:30:21 -07:00
Lana Steuck
07c2d6611b Merge 2013-06-19 17:59:57 -07:00
Lana Steuck
8e2407bb87 Merge 2013-06-19 17:59:09 -07:00
Lana Steuck
1cfbb08fa7 Merge 2013-06-19 17:57:12 -07:00
Andreas Rieber
1f4dfcf422 7025238: HttpURLConnection does not handle URLs with an empty path component
Prepend a '/' to file when path is empty

Reviewed-by: chegar, khazra
2013-06-19 17:41:12 -07:00
Kurchi Subhra Hazra
0534c089d6 8016698: Cleanup overrides warning in sun/tools/ClassDeclaration.java
Override Object.hashCode()

Reviewed-by: alanb, chegar
2013-06-19 14:13:41 -07:00
Maurizio Cimadamore
53f06da300 8016610: javac, add new internal symbols to make operator resolution faster
Reviewed-by: jjg
2013-06-19 22:07:05 +01:00
Kurchi Subhra Hazra
ffbad7e9cb 8016576: Overrides warnings in jdi and jconsole
Implement hashCode() in classes emitting warnings

Reviewed-by: alanb, chegar
2013-06-19 14:02:38 -07:00
David Holmes
e5fa731ce9 8014326: [OSX] All libjvm symbols are exported
Add support for a MacOS X compatible form of the libjvm mapfile.

Reviewed-by: dcubed, rdurbin, coleenp
2013-06-19 13:14:03 -07:00
Dan Xu
cac8a15196 8016592: Clean-up Javac Overrides Warnings In javax/management/NotificationBroadcasterSupport.java
Add hashCode() methods to ListenerInfo and WildcardListenerInfo classes

Reviewed-by: dfuchs, alanb, sjiang, chegar
2013-06-19 13:00:53 -07:00
Chris Hegarty
410ff42dee Merge 2013-06-19 17:32:08 +01:00
Nils Loodin
d357b575b3 Merge 2013-06-19 18:13:52 +02:00
Alan Eliasen
3a76795991 4837946: Faster multiplication and exponentiation of large integers
4646474: BigInteger.pow() algorithm slow in 1.4.0

Implement Karatsuba and 3-way Toom-Cook multiplication as well as exponentiation using Karatsuba and Toom-Cook squaring.

Reviewed-by: alanb, bpb, martin
2013-06-19 08:59:39 -07:00
Athijegannathan Sundararajan
1d927dd28e 8015347: Parsing issue with decodeURIComponent
Reviewed-by: jlaskey, hannesw
2013-06-19 21:07:59 +05:30
Chris Hegarty
a66a268679 8017057: More ProblemList.txt updates (6/2013)
Reviewed-by: alanb
2013-06-19 15:58:21 +01:00
Petr Pchelko
d792da6ac6 8005661: [parfait] Possible buffer overrun in jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.c
8005695: [parfait] Format string argument mismatch in jdk/src/solaris/native/sun/xawt/XToolkit.c
8005752: [parfait] False positive function call mismatch at jdk/src/solaris/native/sun/xawt/XWindow.c

Reviewed-by: art, serb
2013-06-19 17:12:23 +04:00
Vladimir Kempik
053da424c7 8015903: Format issue with -XX:+PrintAdaptiveSizePolicy on JDK8
Missing linebreak in hotspot log.

Reviewed-by: brutisso, tschatzl
2013-06-19 06:09:46 -07:00
James Laskey
d643a2fcd7 8010697: DeletedArrayFilter seems to leak memory
Reviewed-by: hannesw, sundar
2013-06-19 09:10:49 -03:00
Chris Hegarty
adc454c0fe Merge 2013-06-19 13:03:03 +01:00
Chris Hegarty
01cde5204c Merge 2013-06-19 13:00:00 +01:00
Chris Hegarty
f0b9acadba Merge 2013-06-19 11:49:16 +01:00
Chris Hegarty
700804c6f2 8017045: anti-delta fix for 8013789
Reviewed-by: alanb
2013-06-19 11:48:05 +01:00
Chris Hegarty
c3b4a84026 8017044: anti-delta fix for 8015402
Reviewed-by: alanb
2013-06-19 11:47:14 +01:00
Sergey Malenkov
f94d68550a 8013442: No file filter selected in file type combo box when using JFileChooser
Reviewed-by: alexsch
2013-06-19 14:28:44 +04:00
Vicente Romero
88aaaa7878 8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
Reviewed-by: jjg
2013-06-19 11:09:13 +01:00
Chris Hegarty
816efc70e6 Merge 2013-06-19 11:04:39 +01:00
Chris Hegarty
748456a6d9 Merge 2013-06-19 11:02:10 +01:00
Xue-Lei Andrew Fan
1ead1fc8bc 7188658: Add possibility to disable client initiated renegotiation
Reviewed-by: weijun, wetmore
2013-06-19 02:33:07 -07:00
Michael Fang
3957195309 8016824: jdk8 l10n resource file translation update 3 - jaxp
Reviewed-by: joehw
2013-06-18 22:52:18 -07:00
Michael Fang
9dbb5efc0d 8015657: jdk8 l10n resource file translation update 3
Reviewed-by: yhuang
2013-06-18 21:08:48 -07:00
Michael Fang
a3d1e73878 8015657: jdk8 l10n resource file translation update 3
Reviewed-by: yhuang
2013-06-18 20:56:04 -07:00
Michael Fang
f184888940 8015657: jdk8 l10n resource file translation update 3
Reviewed-by: yhuang
2013-06-18 20:52:10 -07:00
Xue-Lei Andrew Fan
7384a4704e 8000456: Add programmatic deadlock detection in SSLEngineDeadlock
Reviewed-by: wetmore
2013-06-18 18:50:13 -07:00
Stuart Marks
e1dd752d54 8016780: README-builds.html misses crucial requirement on bootstrap JDK
Reviewed-by: dholmes, chegar
2013-06-18 17:18:46 -07:00
Mike Duigou
4eeb7e8bc5 8016446: Improve forEach/replaceAll for Map, HashMap, Hashtable, IdentityHashMap, WeakHashMap, TreeMap, ConcurrentMap
Co-authored-by: Remi Forax <forax@univ-mlv.fr>
Reviewed-by: forax, mduigou, psandoz
2013-06-18 16:03:10 -07:00
Niclas Adlertz
556b4925b3 8001345: VM crashes with assert(n->outcnt() != 0 || C->top() == n || n->is_Proj()) failed: No dead instructions after post-alloc
Remove unnecessary LoadN / DecodeN nodes at MemBarAcquire nodes.

Reviewed-by: kvn, roland
2013-06-19 00:41:56 +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
Mike Duigou
6c9370029a Merge 2013-06-18 14:11:45 -07:00
Bengt Rutisson
3cc79df807 8016556: G1: Use ArrayAllocator for BitMaps
Reviewed-by: tschatzl, dholmes, coleenp, johnc
2013-06-18 22:45:32 +02:00
John Cuthbertson
5382e0759e 8015237: Parallelize string table scanning during strong root processing
Parallelize the scanning of the intern string table by having each GC worker claim a given number of buckets. Changes were also reviewed by Per Liden <per.liden@oracle.com>.

Reviewed-by: tschatzl, stefank, twisti
2013-06-18 12:31:07 -07:00
Chris Hegarty
85d8fa9b97 Merge 2013-06-18 20:08:49 +01:00
Brian Burkhalter
66bcedaa7a 8015395: NumberFormatException during startup if JDK-internal property java.lang.Integer.IntegerCache.high set to bad value
Fall back to default if a bad value is passed for this property.

Reviewed-by: mduigou
2013-06-18 11:36:39 -07:00
Vicente Romero
a48b1a1a91 8016267: javac, TypeTag refactoring has provoked performance issues
Reviewed-by: jjg
2013-06-18 19:02:48 +01:00
Maurizio Cimadamore
d1a88e0b7a 8016607: javac, avoid analyzing lambdas for source 7 compilation
Reviewed-by: jjg
2013-06-18 18:57:52 +01:00
Andreas Schoesser
e97599b826 8015660: Test8009761.java "Failed: init recursive calls: 24. After deopt 25"
Windows reserves and only partially commits thread stack. For detecting more thread stack space for execution,  Windows installs one-shot page as guard page just before the current commited edge. It will trigger STACK_OVERFLOW_EXCEPTION when lands on last 4 pages of thread stack space. StackYellowPages default value is 2 on Windows (plus 1 page of StackRedPages, 3 pages guarded by hotspot) so the exception happens one page before Yellow pages. Same route executed second time will have one more page brought in, this leads same execution with different stack depth(interpreter mode). We need match Windows settings so the stack overflow exception will not happen before Yellow pages.

Reviewed-by: dholmes
2013-06-18 09:08:35 -07:00
Chris Hegarty
c7a4e7e7fa Merge 2013-06-18 16:08:46 +01:00
Chris Hegarty
5f34047057 Merge 2013-06-18 16:06:45 +01:00
Zhengyu Gu
43c33d40c3 Merge 2013-06-18 09:34:16 -04:00
Alexey Utkin
857e168f7a 8016046: (process) Strict validation of input should be security manager case only [win]
Reviewed-by: alanb, ahgross
2013-06-18 17:19:49 +04:00
Athijegannathan Sundararajan
93241c0ecb 8012698: [nashorn] tests fail to run with agentvm or samevm
Reviewed-by: hannesw, jlaskey
2013-06-18 18:43:05 +05:30
Zhengyu Gu
61a30f035b 8013651: NMT: reserve/release sequence id's in incorrect order due to race
Fixed NMT race condition for realloc, uncommit and release

Reviewed-by: coleenp, ccheung
2013-06-18 08:44:08 -04: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
Chris Hegarty
9735594f15 Merge 2013-06-18 09:39:25 +01:00
Chris Hegarty
9c098465a5 Merge 2013-06-18 09:36:46 +01:00
Chris Hegarty
ead4873302 Merge 2013-06-18 09:36:20 +01:00
Athijegannathan Sundararajan
5fc2366646 Merge 2013-06-18 13:52:37 +05:30
Athijegannathan Sundararajan
8f55a0b00b 8008915: URLReader constructor should allow specifying encoding
Reviewed-by: hannesw, lagergren
2013-06-18 13:45:03 +05:30
Athijegannathan Sundararajan
70cc4e755b Merge 2013-06-18 13:25:24 +05:30
Robert Field
8be22cce2d 8015402: Lambda metafactory should not attempt to determine bridge methods
Paired with 8013789: Compiler should emit bridges in interfaces

Reviewed-by: twisti
2013-06-17 20:31:04 -07:00
Maurizio Cimadamore
1839512a15 8013789: Compiler should emit bridges in interfaces
Paired with 8015402: Lambda metafactory should not attempt to determine bridge methods

Reviewed-by: vromero
2013-06-17 20:29:31 -07:00
Deven You
c778d84388 8014620: Signature.getAlgorithm return null in special case
Reviewed-by: wetmore
2013-06-17 17:36:20 -07:00
Aleksey Shipilev
0dcdb3b3fa 7177472: JSR292: MethodType interning penalizes scalability
Reviewed-by: twisti
2013-06-17 16:24:48 -07:00
Joe Darcy
55c85107b7 8016779: Fix doclint warnings in javax.lang.model
Reviewed-by: jjg
2013-06-17 14:46:01 -07:00
Joe Wang
f320f80d13 8016133: Regression: diff. behavior with user-defined SAXParser
Reviewed-by: chegar, dfuchs
2013-06-17 12:47:02 -07:00
Phil Race
11aa764a6f 8015334: Memory leak when kerning is used on Windows
Reviewed-by: srl, bae
2013-06-17 10:34:24 -07:00
Mike Duigou
71ae6f9b15 8016572: Pass CONCURRENCY=$(JOBS) to test/Makefile
Reviewed-by: alanb, erikj
2013-06-17 09:41:20 -07:00
David Chase
7ddef5cd69 8002160: Compilation issue with adlc using latest SunStudio compilers
Modify declaration of 'swap' overloading; dodge optimizer bug in c1_LIR.cpp

Reviewed-by: kvn, jrose
2013-06-17 12:35:53 -04:00
Staffan Larsen
055cce652b 8016304: ThreadMXBean.getDeadlockedThreads reports bogus deadlocks on JDK 8
Reviewed-by: dcubed, mgronlun
2013-06-17 18:35:44 +02:00
Sergey Malenkov
153bde4dbb 8013571: TreeModelEvent doesn't accept "null" for root as Javadoc specifies
Reviewed-by: alexsch
2013-06-17 18:30:49 +04:00
Chris Hegarty
4f4fdb4ff1 Merge 2013-06-17 14:23:01 +01:00
Chris Hegarty
a2e706f340 8016747: Replace deprecated PlatformLogger isLoggable(int) with isLoggable(Level)
Reviewed-by: darcy
2013-06-17 14:09:25 +01:00
Aleksey Shipilev
9821ebcba7 8016236: Class.getGenericInterfaces performance improvement
Cache more reflective data and lookup results.

Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Reviewed-by: alanb, plevart, psandoz, dl
2013-06-17 16:28:22 +04:00
Chris Hegarty
203f0312e1 Merge 2013-06-17 11:27:59 +01:00
Chris Hegarty
be5d596030 Merge 2013-06-17 11:27:46 +01:00
Chris Hegarty
5864e2de68 Merge 2013-06-17 11:26:16 +01:00
Chris Hegarty
6562bc8045 Merge 2013-06-17 11:18:50 +01:00
Chris Hegarty
ae4642e749 Merge 2013-06-17 11:17:49 +01:00
Chris Hegarty
ffc5bfd6a8 Merge 2013-06-17 11:11:48 +01:00
Athijegannathan Sundararajan
135319a5f0 8016550: nashorn.option.no.syntax.extensions has the wrong default
Reviewed-by: hannesw, lagergren
2013-06-17 13:56:05 +05:30
Lana Steuck
6bb945ef39 Merge 2013-06-16 22:38:17 -07:00
Lana Steuck
9edd6e01f1 Merge 2013-06-16 22:38:04 -07:00
Lana Steuck
fd982c6d3d Merge 2013-06-16 22:36:41 -07:00
Lana Steuck
8b8232c15d Merge 2013-06-16 22:33:03 -07:00
Lana Steuck
c470fbe806 Merge 2013-06-16 22:32:56 -07:00
Lana Steuck
f2fab8584e Merge 2013-06-16 22:30:22 -07:00
Rob McKenna
9dd2251abc 8016701: JAXP Build failure
Reviewed-by: darcy, wetmore, alanb, chegar
2013-06-15 09:26:42 +01:00
Vladimir Kozlov
55f6f35697 Merge 2013-06-14 16:33:34 -07:00
Lana Steuck
8d0c9d52e8 Merge 2013-06-14 11:10:00 -07:00
Lana Steuck
25b7910613 Merge 2013-06-14 10:41:45 -07:00
Vicente Romero
5d4b6cd0d0 8008023: Get rid of utf8 chars in two tests
Reviewed-by: jjg
2013-06-14 18:01:52 +01:00
Athijegannathan Sundararajan
835f3c4de0 8016618: script mirror object access should be improved
Reviewed-by: jlaskey, lagergren
2013-06-14 21:16:14 +05:30
Chris Hegarty
8322464f71 8012156: tools/javac/file/zip/T6865530.java fails for win32/64 in 7u25 nightly runs
Reviewed-by: alanb
2013-06-14 16:38:13 +01:00
Maurizio Cimadamore
44641445d7 8016569: javac, add new flag for polymorphic method signatures
Reviewed-by: jjg
2013-06-14 16:25:09 +01:00
Alejandro Murillo
a8616cb1c2 8016567: new hotspot build - hs25-b38
Reviewed-by: jcoomes
2013-06-14 07:27:22 -07:00
Alejandro Murillo
ca3d100365 Merge 2013-06-14 07:26:49 -07:00
Anton Tarasov
0e763b1f06 8014821: Regression: Focus issues with Oracle WebCenter Capture applet
Reviewed-by: leonidr
2013-06-14 16:38:18 +04:00
Marcus Lagergren
f74c3ecd82 8016235: Use in catch block that may not have been executed in try block caused illegal byte code to be generated
Reviewed-by: jlaskey, hannesw
2013-06-14 13:53:40 +02: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
Aleksej Efimov
52cfa3dc50 8015978: Incorrect transformation of XPath expression "string(-0)"
Reviewed-by: darcy, joehw
2013-06-14 15:14:56 +04:00
John Zavgren
48a8955ad6 8014307: Memory leak ... security/jgss/wrapper/GSSLibStub.c
I modified the native procedure: Java_sun_security_jgss_wrapper_GSSLibStub_initContext() so that allocated memory is freed when errors occur.

Reviewed-by: chegar, valeriep
2013-06-14 09:13:03 -04:00
Aleksej Efimov
e6d0dba36c 8015978: Incorrect transformation of XPath expression "string(-0)"
Reviewed-by: darcy, joehw
2013-06-14 15:14:49 +04: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
Bengt Rutisson
f18e968d43 8012265: VM often crashes on solaris with a lot of memory
Increase HeapBaseMinAddress for G1 from 256m to 1g on Solaris x86

Reviewed-by: mgerdin, coleenp, kvn
2013-06-14 08:02:32 +02:00
Kurchi Subhra Hazra
eb00b0e4f3 7169142: CookieHandler does not work with localhost
Add .local to derived effective hostnames without dot

Reviewed-by: chegar
2013-06-13 17:48:11 -07:00
Niclas Adlertz
9129e6dc2b 8016157: During CTW: C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block
Disable rematerialization for negD node

Reviewed-by: kvn, roland
2013-06-14 01:19:56 +02:00
Phil Race
f02741a5a8 8016485: Windows native print dialog does not reflect default printer settings
Reviewed-by: jgodinez, jchen
2013-06-13 13:02:37 -07:00
David Chase
d6402d4452 8010124: JVM_GetClassContext: use GrowableArray instead of KlassLink
Replace linked data structure with array (performance)

Co-authored-by: Christian Thalinger <christian.thalinger@oracle.com>
Reviewed-by: kvn
2013-06-13 15:39:47 -04:00
Hannes Wallnöfer
2904cada12 8016542: String.prototype.replace called with function argument should not replace $ patterns
Reviewed-by: lagergren, jlaskey
2013-06-13 20:50:24 +02:00
Kurchi Subhra Hazra
310a5ee8e5 8015421: NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE
Ensure integer overflow does not occur

Reviewed-by: chegar
2013-06-13 11:23:00 -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
Anton Litvinov
21b8cd749b 6847588: AWT test fails
Reviewed-by: anthony, serb
2013-06-13 18:46:17 +04:00
Hannes Wallnöfer
f2751c93e8 8016528: Hex code from escape() should be padded
Reviewed-by: jlaskey, lagergren
2013-06-13 15:26:49 +02: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
Hannes Wallnöfer
bd1ee81a66 8016522: Numeric literal must not be followed by IdentifierStart
Reviewed-by: lagergren, sundar
2013-06-13 14:02:43 +02:00
Ivan Gerasimov
b595458607 7181748: java/lang/ThreadGroup/Suspend.java test fails intermittently
Reviewed-by: chegar, dholmes
2013-06-13 15:15:03 +04:00
Hannes Wallnöfer
96b4d172c0 8016518: Parsing of octal string escapes is broken
Reviewed-by: sundar, lagergren
2013-06-13 12:52:09 +02:00
Athijegannathan Sundararajan
6a09a3934e 8015355: Array.prototype functions don't honour non-writable length and / or index properties
Reviewed-by: lagergren, hannesw
2013-06-13 16:08:35 +05:30
Paul Sandoz
aed188663e 8016251: Balanced spliterator for SpinedBuffer
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: mduigou
2013-06-13 11:13:30 +02:00
Petr Pchelko
d99233cab7 8013468: [macosx] Cursor does not update properly when in fullscreen mode on Mac
Reviewed-by: anthony, serb
2013-06-13 11:10:29 +04:00
Yong Jeffrey Huang
cd61a1e1a5 7040556: SimpleDateFormat.format Portuguese Month should not be capitalized
Reviewed-by: okutsu
2013-06-12 23:54:55 -07:00
Weijun Wang
1e0ca48079 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound
8015276: TEST_BUG: The 'ptool.test' can't be saved in the 'tmp' folder
8016158: Instruction is not clear on how to use keytool to create JKS store in case

Reviewed-by: mullan
2013-06-13 10:00:00 +08:00
Weijun Wang
77e684366c 8014310: JAAS/Krb5LoginModule using des encytypes failure with NPE after JDK-8012679
Reviewed-by: valeriep
2013-06-13 09:59:29 +08:00
Henry Jen
5a6e3cdfde 8016448: java/util/BitSet/BitSetStreamTest.java no longer compiles, missed by 8015895
Reviewed-by: mduigou
2013-06-12 14:07:14 -07:00
Brent Christian
e19945c794 8010325: Remove hash32() method and hash32 int field from java.lang.String
Reviewed-by: alanb, mduigou
2013-06-12 11:11:59 -07:00
Hannes Wallnöfer
0f3e8001de 8011893: JS Object builtin prototype is not thread safe
Reviewed-by: sundar, jlaskey
2013-06-12 16:41:38 +02:00
James Laskey
11462f8b0e 8016453: loadWithNewGlobal does not allow apply operation
Reviewed-by: hannesw, sundar
2013-06-12 11:22:06 -03:00
Miroslav Kos
55c80a7954 8013021: Rebase 8005432 & 8003542 against the latest jdk8/jaxws
8003542: Improve processing of MTOM attachments
8005432: Update access to JAX-WS

Reviewed-by: mullan
2013-06-12 14:47:09 +01:00
Erik Helin
2eab1610b0 8015683: object_count_after_gc should have the same timestamp for all events
Reviewed-by: mgerdin, stefank
2013-06-12 15:21:41 +02:00
Erik Helin
f9c8b8769a 8016170: GC id variable in gcTrace.cpp should use typedef GCId
Reviewed-by: johnc, jwilhelm, jmasa
2013-06-12 15:50:14 +02:00
Anton Tarasov
861f05be2f 8015454: java/awt/Focus/TypeAhead/TestFocusFreeze.java hangs with jdk8 since b56
Reviewed-by: anthony
2013-06-12 16:18:04 +04:00
Alan Bateman
d233c11556 8016369: java/lang/instrument/RetransformBigClass.sh failing again
Reviewed-by: sla, sergei
2013-06-12 09:44:34 +01: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
Rickard Bäckman
2977c8fca3 8016444: Duplicate zombie check in safe_for_sender
Reviewed-by: dholmes, sla
2013-06-12 09:49:42 +02:00
Volker Simonis
8ce6e0db3d 7060111: race condition in VMError::report_and_die()
Reviewed-by: zgu, coleenp
2013-07-01 09:13:19 +00:00
Lois Foltan
17ebe26fa0 7007040: Check of capacity paramenters in JNI_PushLocalFrame is wrong
Changed AND to OR

Reviewed-by: coleenp, hseigel
2013-06-30 09:59:08 -04:00
Daniel D. Daugherty
326b206183 Merge 2013-06-29 11:55:09 -07:00
Nils Loodin
5fe1de50f1 Merge 2013-06-28 14:05:27 +02:00
Ioi Lam
8d048d554d 8016075: Win32 crash with CDS enabled and small heap size
Fixed MetaspaceShared::is_in_shared_space

Reviewed-by: coleenp, hseigel
2013-06-27 10:03:21 -07:00
Kevin Walls
e6cc930488 Merge 2013-06-26 11:00:11 +02:00
Kevin Walls
08377de5ab 8010278: SA: provide mechanism for using an alternative SA debugger back-end
Reviewed-by: sla, dsamersoff
2013-06-26 00:01:20 +01:00
Zhengyu Gu
80e0d9a6c2 Merge 2013-06-25 14:51:46 -07:00
Zhengyu Gu
4f7010b973 8017478: Kitchensink crashed with SIGSEGV in BaselineReporter::diff_callsites
Fixed possible NULL pointer that caused SIGSEGV

Reviewed-by: coleenp, acorn, ctornqvi
2013-06-25 17:22:04 -04:00
Alan Bateman
fdab7e6338 8016370: javadoc warnings, unexpected </p> mostly
Reviewed-by: martin, jjg
2013-06-12 08:04:11 +01:00
Vladimir Kozlov
5da819f494 Merge 2013-06-11 16:40:31 -07:00
Mike Duigou
0df3d2fa1a 8016213: Convert j2se NetBeans project to use top-level make targets
Reviewed-by: chegar
2013-06-11 15:39:20 -07:00
Henry Jen
411df5ec90 8009736: Comparator API cleanup
Reviewed-by: psandoz, briangoetz, mduigou, plevart
2013-06-11 13:41:38 -07:00
Xue-Lei Andrew Fan
154d88d2bd 8019359: To comment why not use no_renegotiation to reject client initiated renegotiation
Reviewed-by: wetmore
2013-06-27 19:22:51 -07:00
Joe Darcy
0e32f67d95 8019357: Fix doclint warnings in java.lang.invoke
Reviewed-by: jrose
2013-06-27 19:02:02 -07:00
Naoto Sato
eb278c1a27 6609431: (rb) ResourceBundle.getString() returns incorrect value
Reviewed-by: okutsu, sherman
2013-06-27 14:40:21 -07:00
Joe Darcy
ff500d6201 8019320: Fix doclint issues in javax.script
Reviewed-by: lancea
2013-06-27 14:11:25 -07:00
Stuart Marks
c421a2d9b7 8019224: add exception chaining to RMI CGIHandler
Reviewed-by: darcy
2013-06-27 13:35:01 -07:00
Joe Darcy
a8bb269e47 8019315: Fix doclint issues in java.util.logging
Reviewed-by: lancea
2013-06-27 12:24:26 -07:00
Lance Andersen
f693157806 8017471: Fix JDBC -Xdoclint public errors
Reviewed-by: darcy
2013-06-27 15:07:56 -04:00
Joe Darcy
50e05b177d 8019304: Fix doclint issues in java.util.prefs
Reviewed-by: lancea
2013-06-27 11:06:46 -07:00
Chris Hegarty
ad4cd4f68c Merge 2013-06-27 10:21:22 +01:00
Bradford Wetmore
f20ec2a5b5 8019227: JDK-8010325 broke the old build
Reviewed-by: alanb, chegar
2013-06-27 10:19:59 +01:00
Joe Darcy
c9e713d562 8019228: Fix doclint issues in java.util.zip
Reviewed-by: sherman, mchung
2013-06-26 22:12:09 -07:00
Joe Darcy
5837f1387b 8019223: Fix doclint warnings in java.rmi.server
Reviewed-by: smarks
2013-06-26 19:09:18 -07:00
Joe Darcy
4d367e8fbb 7018139: Fix HTML accessibility and doclint issues in java.math
Reviewed-by: lancea, bpb
2013-06-26 13:24:13 -07:00
Naoto Sato
6dfb685340 8017322: java/util/Currency/PropertiesTest.sh should run exclusively
Reviewed-by: alanb
2013-06-26 11:21:01 -07:00
Robert Field
9151d67365 8016761: Lambda metafactory - incorrect type conversion of constructor method handle
Reviewed-by: jrose
2013-06-26 07:50:04 -07:00
Chris Hegarty
b3e5539d06 8012647: Add Arrays.parallelPrefix (prefix sum, scan, cumulative sum)
Co-authored-by: Doug Lea <dl@cs.oswego.edu>
Co-authored-by: Tristan Yan <tristan.yan@oracle.com>
Reviewed-by: chegar, alanb, psandoz
2013-06-26 15:30:39 +01:00
Xue-Lei Andrew Fan
d22a89a1ae 8017049: rename property jdk.tls.rejectClientInitializedRenego
Reviewed-by: vinnie, wetmore, mullan
2013-06-26 06:32:40 -07:00
Yong Jeffrey Huang
345f3a94c5 8013836: getFirstDayOfWeek reports wrong day for pt-BR locale
Reviewed-by: naoto
2013-06-25 21:03:08 -07:00
Jason Uh
d30f173a22 8017326: Cleanup of the javadoc <code> tag in java.security.spec
Convert javadoc <code> and <tt> tags to {@code ...}

Reviewed-by: darcy
2013-06-25 14:41:46 -07:00
Jason Uh
1b06c50919 8017325: Cleanup of the javadoc <code> tag in java.security.cert
Convert javadoc <code>...</code> and <tt>...</tt> tags to {@code ...}

Reviewed-by: darcy
2013-06-25 14:31:29 -07:00
Aleksey Shipilev
32b2aa9183 8014233: java.lang.Thread should have @Contended on TLR fields
Add the @Contended over three TLR fields.

Reviewed-by: psandoz, chegar, dholmes, dl
2013-06-25 20:06:09 +01:00
Artem Smotrakov
b158c095ac 8016051: Possible ClassCastException in KdcComm
Reviewed-by: weijun
2013-06-25 21:51:11 +08:00
Alan Eliasen
5a0793018c 4641897: Faster string conversion of large integers
Accelerate conversion to string by means of Schoenhage recursive base conversion.

Reviewed-by: bpb, alanb
2013-06-20 12:15:24 -07:00
Alan Bateman
980d06ca5f 8017570: jfr.jar should not be in compact3 (for now)
Reviewed-by: erikj
2013-06-25 13:53:23 +01:00
Joe Darcy
e751cc77ad 8017550: Fix doclint issues in java.lang and subpackages
Reviewed-by: alanb, chegar
2013-06-24 23:40:31 -07:00
Brian Burkhalter
9c0605b8e6 6469160: (fmt) general (%g) formatting of zero (0.0) with precision 0 or 1 throws ArrayOutOfBoundsException
For zero value ensure than an unpadded zero character is passed to Formatter.addZeros()

Reviewed-by: iris, darcy
2013-06-24 14:17:14 -07:00
Naoto Sato
650898839b 8017468: typo in javadoc: " ResourceBunlde "
Reviewed-by: okutsu
2013-06-24 16:21:32 -07:00
Alan Bateman
fbf2d36771 8017477: Remove TimeZone.DisplayNames, no longer used
Reviewed-by: okutsu
2013-06-24 11:26:51 +01:00
Weijun Wang
cb9be51085 8017453: ReplayCache tests fail on multiple platforms
Reviewed-by: xuelei
2013-06-24 16:25:28 +08:00
Andreas Rieber
14ddb9177d 7157360: HttpURLConnection: HTTP method DELETE doesn't support output
Reviewed-by: chegar
2013-06-22 08:20:11 +01:00
Chris Hegarty
a294d4b6a4 8017271: Crash may occur in java.net.DualStackPlainSocketImpl::initIDs due to unchecked values returned from JNI functions
Reviewed-by: alanb, khazra
2013-06-22 08:14:54 +01:00
Naoto Sato
feace4506d 6863624: java/util/Currency/PropertiesTest.sh writable check is incorrect
Reviewed-by: alanb
2013-06-21 13:42:55 -07:00
Louis Wasserman
90aebf1cf9 7131192: BigInteger.doubleValue() is depressingly slow
In doubleValue() and floatValue() replace converting to String and parsing to Double or Float with direct conversion into IEEE 754 bits.

Reviewed-by: bpb, drchase, martin
2013-06-21 11:50:45 -07:00
Dmitry Nadezhin
f52ad64ccc 7192954: Fix Float.parseFloat to round correctly and preserve monotonicity
4396272: Parsing doubles fails to follow IEEE for largest decimal that should yield 0
7039391: Use Math.ulp in FloatingDecimal

Correct rounding and monotonicity problems in floats and doubles

Co-authored-by: Louis Wasserman <lowasser@google.com>
Reviewed-by: bpb, martin
2013-06-21 11:12:18 -07:00
Weijun Wang
af996219c7 8001326: Improve Kerberos caching
Reviewed-by: valeriep
2013-06-21 18:26:13 +08:00
Alan Bateman
a7f93a5480 8014377: (dc) DatagramChannel should set IP_MULTICAST_ALL=0 (lnx)
Reviewed-by: chegar, jzavgren
2013-06-20 19:14:30 +01:00
David Chase
219121826e 8014959: assert(Compile::current()->live_nodes() < (uint)MaxNodeLimit) failed: Live Node limit exceeded limit
Insert extra checks and bailouts for too many nodes

Reviewed-by: kvn
2013-06-11 16:34:34 -04:00
Naoto Sato
2ea5ec5419 8015960: java/util/Locale/LocaleProviders.java failing again on Windows
Reviewed-by: alanb
2013-06-11 11:18:02 -07:00
Christian Thalinger
f2a70d7310 8003268: SharedRuntime::generate_native_wrapper doesn't save all registers across runtime tracing calls for JNI critical native methods
Reviewed-by: kvn
2013-06-11 11:13:09 -07:00
Hannes Wallnöfer
526f21a95e 8015379: PropertyMap.addProperty() is slow
Reviewed-by: attila, jlaskey
2013-06-11 17:50:10 +02:00
Alan Bateman
6788137f6f Merge 2013-06-11 14:09:06 +01:00
Alexander Scherbatiy
3352552f34 8009984: [parfait] Buffer overrun at jdk/src/macosx/native/com/apple/laf/AquaFileView.m
Reviewed-by: serb, art
2013-06-11 16:30:34 +04:00
Sergey Malenkov
857a99a9e7 8015336: BasicComboBoxEditor throws NullPointerException
Reviewed-by: alexsch
2013-06-11 16:02:22 +04: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
Martin Buchholz
fadbd21469 8016311: Update j.u.c. tests to avoid using Thread.stop(Throwable)
Reviewed-by: alanb
2013-06-11 11:25:59 +01:00
Alan Bateman
096a439d06 7059085: Retire Thread.stop(Throwable) so that it throws UOE
Reviewed-by: dholmes, chegar, forax, darcy, mduigou
2013-06-11 11:22:28 +01:00
Konstantin Shefov
1df3335d0d 7184908: TEST_BUG: [macosx] closed/com/sun/java/swing/plaf/gtk/4928019/bug4928019.java fails
Reviewed-by: alexsch, serb
2013-06-11 14:20:37 +04:00
Konstantin Shefov
1963dde59a 8012569: TEST_BUG: java/awt/GraphicsDevice/CheckDisplayModes.java fails
Reviewed-by: anthony, serb
2013-06-11 14:14:31 +04:00
Paul Sandoz
ee67107591 8015895: Int/LongStream.range/rangeClosed
8012986: Right-bias range spliterators for large ranges

Reviewed-by: mduigou
2013-06-11 12:13:26 +02:00
Vicente Romero
3596018eb7 8007907: javap, method com.sun.tools.javap.Main.run returns 0 even in case of class not found error
Reviewed-by: jjg
2013-06-11 09:59:34 +01:00
Vicente Romero
4836bfbcf1 8008547: javac, warning message: use of ''_'' as an identifier might not be supported in future releases, should be more especific
Reviewed-by: jjg
2013-06-11 09:35:58 +01:00
Chris Hegarty
d758772ec0 Merge 2013-06-11 09:25:57 +01:00
Athijegannathan Sundararajan
0886052a85 Merge 2013-06-11 13:12:35 +05:30
Athijegannathan Sundararajan
83aedc7fdd 8015357: a = []; a[0x7fffffff]=1; a.sort()[0] should evaluate to 1 instead of undefined
Reviewed-by: hannesw, lagergren
2013-06-11 13:09:43 +05:30
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
Joe Wang
b914f8d6be 8016153: Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized
Reviewed-by: lancea, dfuchs
2013-06-10 14:42:57 -07:00
Dan Xu
41f703dac2 8013827: File.createTempFile hangs with temp file starting with 'com1.4'
8011950: java.io.File.createTempFile enters infinite loop when passed invalid data

Reviewed-by: alanb
2013-06-10 11:06:26 -07:00
Alan Bateman
e8efa34206 8016218: Warnings building corba repo due to missing hashCode methods
Reviewed-by: chegar, coffeys, dfuchs
2013-06-10 17:15:42 +01:00
Maurizio Cimadamore
80407ef47d 8013576: Add stat support to LambdaToMethod
LambdaToMethod should emit info to help diagnose/test lambda metafactory problems

Reviewed-by: jjg, vromero
2013-06-10 15:57:32 +01:00
Zhengyu Gu
87505d60f6 8013917: Kitchensink crashed with SIGSEGV in BaselineReporter::diff_callsites
Simple fix when memory allocation site is gone, NMT should report 0 memory size, instead old memory size.

Reviewed-by: dcubed, ctornqvi
2013-06-10 10:45:19 -04:00
Markus Grönlund
08f43d4379 8016105: Add complementary RETURN_NULL allocation macros in allocation.hpp
Reviewed-by: sla, rbackman
2013-06-15 13:17:36 +02:00
Serguei Spitsyn
c6b677315f Merge 2013-06-14 22:34:08 -07:00
Daniel D. Daugherty
9545142734 Merge 2013-06-14 19:49:58 -07:00
Zhengyu Gu
b9dc514e6c Merge 2013-06-14 15:20:32 -07:00
Serguei Spitsyn
f0d506b4b5 6493116: JVMTI Doc: GetOwnedMonitorStackDepthInfo has a typo in monitor_info_ptr parameter description
A typo in the parameter spelling, a bound update missed when the parameter was renamed

Reviewed-by: sla, minqi
2013-06-14 15:17:10 -07:00
Daniel D. Daugherty
967597d82f Merge 2013-06-14 08:00:35 -07:00
Ron Durbin
be6e745755 7178026: os::close can restart ::close but that is not a restartable syscall
Removed restart macros from all os:close calls on Solaris, Linux, MacOS X platforms.

Reviewed-by: dcubed, dholmes
2013-06-14 07:46:22 -07:00
Zhengyu Gu
657439bdf4 Merge 2013-06-14 07:39:19 -07:00
Zhengyu Gu
9bad8e4125 Merge 2013-06-14 07:30:10 -07:00
Zhengyu Gu
737454c744 8011968: Kitchensink crashed with SIGSEGV in MemBaseline::baseline
Simple fix to add NULL pointer check that can cause segv

Reviewed-by: coleenp, ctornqvi
2013-06-14 09:18:42 -04:00
Christian Tornqvist
3728ac7c05 Merge 2013-06-14 13:11:58 +02:00
Calvin Cheung
53448fdbed 8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux
Co-authored-by: Jeremy Manson <jeremymanson@google.com>
Reviewed-by: dholmes, coleenp
2013-06-13 22:02:40 -07:00
Mikhailo Seledtsov
e1219b994d 8015324: Create tests for CDS feature
Wrote tests for use of CDS with ObjectAlignmentInBytes CL option

Reviewed-by: coleenp, ctornqvi, hseigel
2013-06-13 22:00:06 +02:00
Christian Tornqvist
e72f763439 8016065: Write regression test for 7167142
Regression tests written for both test cases (.hotspotrc and .hotspot_compiler). Also reviewed by mikhailo.seledtsov@oracle.com

Reviewed-by: zgu, coleenp
2013-06-13 21:57:56 +02:00
Daniel D. Daugherty
72a51a0c44 8013057: assert(_needs_gc || SafepointSynchronize::is_at_safepoint()) failed: only read at safepoint
Detect mmap() commit failures in Linux and Solaris os::commit_memory() impls and call vm_exit_out_of_memory(). Add os::commit_memory_or_exit(). Also tidy up some NMT accounting and some mmap() return value checking.

Reviewed-by: zgu, stefank, dholmes, dsamersoff
2013-06-13 11:16:38 -07:00
Athijegannathan Sundararajan
be9816a81e 8016239: loadWithNewGlobal should support user supplied arguments from the caller
Reviewed-by: lagergren, attila, jlaskey
2013-06-10 19:54:07 +05:30
Vicente Romero
7258bbbfde 7113519: test/tools/javac/VersionOpt.java passes on windows
Reviewed-by: jjg
2013-06-10 15:18:47 +01:00
Konstantin Shefov
3039fb09eb 7105030: [TEST_BUG] [macosx] The tests never finishes
Reviewed-by: alexsch, serb
2013-06-10 16:44:40 +04:00
Alan Bateman
451a0034a1 8016217: More javadoc warnings
Reviewed-by: lancea, chegar, psandoz
2013-06-10 12:58:32 +01:00
Marcus Lagergren
2d2e7fe029 8016226: backing out test without third party license approval
Reviewed-by: attila, sundar
2013-06-10 13:27:07 +02:00
Marcus Lagergren
ce8819512f 8015892: canBeUndefined too conservative for some use before declaration cases
Reviewed-by: attila, hannesw
2013-06-10 13:21:29 +02:00
Paul Sandoz
cde3ef7ba0 8015792: Rename Spliterators.spliteratorFromIterator to Spliterators.iterator
Reviewed-by: chegar
2013-06-10 12:26:20 +02:00
Paul Sandoz
350636532e 8015798: Rename IntStream.longs/doubles and LongStream.doubles to asXxxStream
Reviewed-by: alanb
2013-06-10 12:20:34 +02:00
Paul Sandoz
37d4e6871b 8015492: Remove DoubleStream.range methods
Reviewed-by: alanb
2013-06-10 11:52:32 +02: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
Chris Hegarty
65dc730a66 Merge 2013-06-10 09:53:21 +01:00
Chris Hegarty
8bb77f2674 Merge 2013-06-10 09:52:54 +01:00
Chris Hegarty
1d41a87b39 Merge 2013-06-10 09:51:09 +01:00
Kumar Srinivasan
4cc3613b7f 8016209: TEST_BUG: non-compliant jmc in the bin directory hangs testing
Reviewed-by: alanb, darcy, chegar
2013-06-08 09:05:49 -07:00
Coleen Phillimore
20641e00ab 7124706: enable RetransformBigClass.sh test when fix for 8013063 is promoted
The code for this test is fixed now and integrated to TL repo and it passes now.

Reviewed-by: alanb
2013-06-07 22:15:27 -04:00
Morris Meyer
5b2339a7a2 8008407: remove SPARC V8 support
Removed most of the SPARC V8 instructions

Reviewed-by: kvn, twisti
2013-06-07 16:46:37 -07:00
Bhavesh Patel
3f6b61d75e 8015997: Additional improvement in Javadoc framing
Reviewed-by: jjg
2013-06-07 16:12:04 -07:00
Jonathan Gibbons
a476a195ac 8016193: Fix OAC issue in langtools docs
Reviewed-by: darcy
2013-06-07 15:35:38 -07:00
Xueming Shen
de1f485bd6 8015728: (zipfs) demo/zipfs/basic.sh failing
To return the correct loc entry size from wirteLOC();

Reviewed-by: alanb
2013-06-07 13:49:37 -07:00
Vladimir Kozlov
adc8d722f0 Merge 2013-06-07 11:43:53 -07:00
Lance Andersen
ef953f52e0 8016101: Fix typo in SerialRef and missing @param in SerialStruct
Reviewed-by: darcy
2013-06-07 14:13:40 -04:00
Kurchi Subhra Hazra
7153278427 7051862: CookiePolicy spec conflicts with CookiePolicy.ACCEPT_ORIGINAL_SERVER
Return false for null arguments in ACCEPT_ORIGINAL_SERVER#shouldAccept()

Reviewed-by: chegar
2013-06-07 10:59:41 -07:00
Patrick Reinhart
75e22e5c54 8013810: PrintServiceLookup.lookupPrintServices() does not return consistent result
Reviewed-by: prr, jgodinez
2013-06-07 10:26:29 -07:00
Tao Mao
1ddf2378db 7122222: GC log is limited to 2G for 32-bit
Enable large file support for generated 32-bit ostream.o on Linux and Solaris (as only the two need this) by setting -D_FILE_OFFSET_BITS=64 in compilation

Reviewed-by: tbell, mgerdin, dcubed
2013-06-07 09:46:58 -07: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
Hannes Wallnöfer
2bc5557936 8012291: NativeArray is inconsistent in using long for length and index in some places and int for the same in other places
Reviewed-by: lagergren, jlaskey
2013-06-07 17:44:25 +02:00
Morris Meyer
690abe1b20 8015437: SPARC cbcond branch offset out of 10-bit range
Forced SPARC MacroAssembler eden_alloate to use long branch to slow case

Reviewed-by: kvn, twisti
2013-06-07 07:33:35 -07:00
Andrew Brygin
34dc5002fd 6830714: cmm test failures with OpenJDK
Reviewed-by: prr
2013-06-07 14:45:29 +04:00
Masayoshi Okutsu
b5131a87e3 7064270: java/text/Format/DateFormat/WeekDateTest.java fails on OEL5.6 hi_IN.UTF-8
Reviewed-by: peytoia
2013-06-07 17:37:23 +09:00
Masayoshi Okutsu
f1d2e9ae5a 7177315: SimpleDateFormat parses wrong 2-digit year if input contains spaces
Reviewed-by: peytoia
2013-06-07 17:07:12 +09:00
Christine Lu
f80e242127 Added tag jdk8-b93 for changeset 0fc814e0feae 2013-06-06 20:48:44 -07:00
Brian Burkhalter
5b5c7e541c 8016117: New sun.misc.FDBigInteger class as part of 7032154
Co-authored-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
Co-authored-by: Dmitry Nadezhin <dmitry.nadezhin@oracle.com>
Co-authored-by: Olivier Lagneau <olivier.lagneau@oracle.com>
Reviewed-by: martin, iris
2013-06-06 16:45:25 -07:00
Joe Wang
e89bdfbdc3 8015016: Improve JAXP 1.5 error message
Reviewed-by: lancea
2013-06-06 15:03:55 -07:00
Rob McKenna
35584bae5d 8016063: getFinalAttributes should use FindClose
Reviewed-by: alanb
2013-06-06 22:22:56 +01:00
Daniel Fuchs
45c882ac0a 8013434: Xalan and Xerces internal ObjectFactory need rework
With this changeset, DTMManager and XSLTCDTMManager will always use their own default implementation.

Reviewed-by: joehw, alanb
2013-06-06 20:47:13 +02: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
Aleksej Efimov
53ae44836c 8009579: Xpathexception does not honor initcause()
Reviewed-by: alanb, dholmes, joehw
2013-06-06 20:40:43 +04: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
Athijegannathan Sundararajan
769aac6d4a 8015346: JSON parsing issues with escaped strings, octal, decimal numbers
Reviewed-by: hannesw, jlaskey
2013-06-06 21:41:20 +05:30
Maurizio Cimadamore
dc899fbbed Merge 2013-06-06 15:38:42 +01:00
Maurizio Cimadamore
459b2cba93 8015648: Duplicate variable in lambda causes javac crash
Missing flag in synthetic lambda blog is causing duplicates symbol to go undetected

Reviewed-by: jjg, vromero
2013-06-06 15:37:23 +01:00
Maurizio Cimadamore
abaf1a5c51 8015432: javac crashes with stack overflow when method called recursively from nested generic call
Check.checkMethod should only be called after inference has completed

Reviewed-by: jjg, vromero
2013-06-06 15:35:05 +01:00
Maurizio Cimadamore
07baf8072a 8008627: Compiler mishandles three-way return-type-substitutability
Compiler should not enforce an order in how ambiguous methods should be resolved

Reviewed-by: jjg, vromero
2013-06-06 15:33:40 +01:00
Maurizio Cimadamore
4cb585609d 7139681: Enhanced for loop: local variable scope inconsistent with JLS
For-each loop variable is incorrectly visible from the for-each expression

Reviewed-by: jjg, vromero
2013-06-06 15:32:41 +01:00
Maurizio Cimadamore
884ad14bdf 6360970: javac erroneously accept ambiguous field reference
Clash between ambiguous fields in superinterface and unambiguous field in subinterface is erroneously marked as unambiguous

Reviewed-by: jjg, vromero
2013-06-06 15:30:14 +01:00
Dmitry Markov
269ea64b67 8015853: java.lang.ArrayIndexOutOfBoundsException when running SwingSet2 demo
Reviewed-by: alexp, serb
2013-06-06 17:59:37 +04:00
Konstantin Shefov
1a56f32a4a 7109977: [macosx] MixingInHwPanel.java test fails on Mac trying to click in the reserved corner
Reviewed-by: serb, anthony
2013-06-06 17:06:22 +04:00
Konstantin Shefov
a20d06c4c1 8015976: OpenJDK part of bug JDK-8015812 [TEST_BUG] Tests have conflicting test descriptions
Reviewed-by: serb, anthony
2013-06-06 17:02:05 +04:00
Daniel D. Daugherty
7771d30db3 Merge 2013-06-06 05:56:33 -07:00
Eric McCorkle
c58691dc6f 8015701: MethodParameters are not filled in for synthetic captured local variables
Synthetic parameters for captured local variables in an anonymous inner class are not added to MethodParameters attributes

Reviewed-by: mcimadamore
2013-06-06 08:48:23 -04:00
Andrew Brygin
8e6c2bb1b0 8013430: REGRESSION: closed/java/awt/color/ICC_Profile/LoadProfileTest/LoadProfileTest.java fails with java.io.StreamCorruptedException: invalid type code: EE since 8b87
Reviewed-by: prr, vadim
2013-06-06 13:57:25 +04:00
Brian Burkhalter
a1fe63768f 7032154: Performance tuning of sun.misc.FloatingDecimal/FormattedFloatingDecimal
Performance improvements for double/float -> String and decimal/hex String -> double/float conversions.

Co-authored-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
Co-authored-by: Dmitry Nadezhin <dmitry.nadezhin@oracle.com>
Co-authored-by: Olivier Lagneau <olivier.lagneau@oracle.com>
Reviewed-by: martin, iris
2013-06-05 21:01:02 -07:00
Mike Duigou
854a6b898f Merge 2013-06-06 11:39:34 -07:00
Aleksej Efimov
9e29e5f3f0 8009579: Xpathexception does not honor initcause()
Reviewed-by: alanb, dholmes, joehw
2013-06-06 20:43:05 +04:00
Eric McCorkle
47556dfb0d 8016019: Remove setProtectionDomain0 and JVM_SetProtectionDomain in JDK
SetProtectionDomain0 and JVM_SetProtectionDomain are unused since at least 1.5.  This is the JDK side of a changeset to remove it.

Reviewed-by: alanb
2013-06-06 09:51:17 -04:00
Sean Coffey
a3d61f5a75 8000450: Restrict access to com/sun/corba/se/impl package
Reviewed-by: alanb, chegar, lancea
2013-06-06 14:10:44 +01:00
Otavio Goncalves
ddabf9f30a 8015470: Remove redundant calls of toString() on String objects
Reviewed-by: dholmes, alanb
2013-06-06 05:32:26 -04:00
Henry Jen
135a464761 8015522: CharSequence.codePoints can be faster
Reviewed-by: martin, psandoz, alanb
2013-06-05 15:56:51 -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
Erik Helin
74f190f320 8015972: Refactor the sending of the object count after GC event
Reviewed-by: brutisso, pliden
2013-06-05 09:44:03 +02:00
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
Chris Hegarty
92e9e2aa1a Merge 2013-05-31 10:28:34 +01:00
Chris Hegarty
2252b22e09 Merge 2013-05-31 10:28:30 +01:00
Chris Hegarty
be37475c2b Merge 2013-05-31 10:27:50 +01:00
Chris Hegarty
a8432ef7c5 Merge 2013-05-31 10:27:12 +01:00
Chris Hegarty
9d0cc8e33d Merge 2013-05-31 10:26:20 +01: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
Chris Hegarty
f43ddba85c Merge 2013-05-23 12:50:48 +01:00
Chris Hegarty
6bfa9213b2 Merge 2013-05-23 12:50:40 +01:00
Chris Hegarty
3a444656e4 Merge 2013-05-23 12:44:51 +01:00
Chris Hegarty
988a08a49f Merge 2013-05-23 12:44:18 +01:00
Chris Hegarty
be82d6fd6f Merge 2013-05-23 12:41:23 +01: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
0431243910 8014737: java/lang/invoke/7196190/MHProxyTest.java fails after 8009424
Reviewed-by: twisti
2013-05-22 13:57:59 +01: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
Leonid Romanov
1dedaf5bf0 8014718: Netbeans IDE begins to throw a lot exceptions since 7u25 b10
Removed logging from SunToolkit

Reviewed-by: art
2013-05-20 19:07:01 +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
Andrew Brygin
5c7bbef885 8014205: Most of the Swing dialogs are blank on one win7 MUI
Reviewed-by: vadim
2013-05-17 16:14:42 +04: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
Chris Hegarty
99f427d2c5 Merge 2013-05-16 11:44:33 +01:00
Chris Hegarty
36515e8a5e Merge 2013-05-16 11:42:08 +01:00
Chris Hegarty
bde2bce54b Merge 2013-05-16 11:42:04 +01:00
Chris Hegarty
ac4d7a8adf Merge 2013-05-16 11:41:29 +01:00
Chris Hegarty
9ca63f3019 Merge 2013-05-16 11:39:58 +01: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
Mandy Chung
24edc8dc91 8010727: WLS fails to add a logger with "" in its own LogManager subclass instance
Reviewed-by: alanb, jgish
2013-05-14 08:07:08 -07:00
Andrew Brygin
9411edc759 8014427: REGRESSION: closed/javax/imageio/plugins/bmp/Write3ByteBgrTest.java fails since 7u25 b09
Reviewed-by: prr
2013-05-14 21:10:47 +04: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
Xue-Lei Andrew Fan
aa3ca48b35 8014281: Better checking of XML signature
Also reviewed by Andrew Gross and Christophe Ravel

Reviewed-by: mullan
2013-05-14 05:55:10 -07: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
Sean Mullan
79e4c9f146 8010714: XML DSig API allows a RetrievalMethod to reference another RetrievalMethod
Reviewed-by: xuelei, hawtin
2013-05-13 17:50:14 -04: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
Sean Coffey
ceb0317980 8013196: TimeZone.getDefault() throws NPE due to sun.awt.AppContext.getAppContext()
Reviewed-by: mchung, okutsu
2013-05-09 20:31:47 +01: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
Christian Thalinger
94bc7320f8 8009424: Restrict publicLookup with additional checks
Reviewed-by: vlivanov, jdn
2013-05-08 12:09:35 -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
Chris Hegarty
b22f700cdc Merge 2013-05-08 15:25:08 +01: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
Chris Hegarty
6dc03dadce Merge 2013-05-08 10:28:35 +01:00
Chris Hegarty
64ac440d46 Merge 2013-05-08 10:27:52 +01: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
Chris Hegarty
466898035e Merge 2013-05-08 10:21:48 +01:00
Chris Hegarty
6c7f93defa Merge 2013-05-08 10:10:05 +01:00
Chris Hegarty
8ad726ce23 Merge 2013-05-08 10:09:18 +01: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
Joel Borggrén-Franck
a638aed2e1 8011139: (reflect) Revise checking in getEnclosingClass
Reviewed-by: darcy, mchung, ahgross
2013-05-07 13:23:08 +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
Leonid Romanov
7e6639dea3 8012933: Test closed/java/awt/Dialog/DialogAnotherThread/JaWSTest.java fails since jdk 7u25 b07
Do not mark context as disposed until we've posted all the events

Reviewed-by: art
2013-05-06 16:12:55 +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
Bhavesh Patel
64831179a9 8012375: Improve Javadoc framing
Reviewed-by: mduigou, jlaskey
2013-05-03 08:52:33 -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
Sean Mullan
7613bea3d4 8008744: Rework part of fix for JDK-6741606
Reviewed-by: xuelei, ahgross
2013-05-02 11:42:44 -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
Daniel Fuchs
3c0606c1b8 8012243: about 30% regression on specjvm2008.serial on 7u25 comparing 7u21
Reviewed-by: alanb, skoivu, smarks, mchung
2013-05-02 10:46:09 +02: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
Chris Hegarty
7040795490 Merge 2013-05-01 14:11:01 +01: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
Sean Coffey
b342ac9ee1 8000642: Better handling of objects for transportation
Reviewed-by: alanb, mchung, skoivu
2013-04-30 11:53:51 +01:00
Alexander Scherbatiy
07098f1684 8012330: [macosx] Sometimes the applet showing the modal dialog itself loses the ability to gain focus
Reviewed-by: serb, ant
2013-04-30 13:55:48 +04: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
Andrew Brygin
1f000b9fda 8012597: Better image channel verification
Reviewed-by: vadim
2013-04-30 04:41:01 +04: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
Sean Mullan
86ae90ad59 8009217: REGRESSION: test com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java fails to compile since 7u21b03
Reviewed-by: xuelei
2013-04-29 11:47:17 -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
Chris Hegarty
11fdff9c0a Merge 2013-04-28 08:16:45 +01:00
Chris Hegarty
09a04066fd Merge 2013-04-28 08:16:41 +01:00
Chris Hegarty
d273befad4 Merge 2013-04-28 08:15:54 +01:00
Chris Hegarty
ebbd969118 Merge 2013-04-28 08:15:33 +01:00
Chris Hegarty
ebfad2cf30 Merge 2013-04-28 08:15:21 +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
Phil Race
ae06d053cb 8012617: ArrayIndexOutOfBoundsException with some fonts using LineBreakMeasurer
Reviewed-by: bae, srl
2013-04-26 15:06:51 -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
Andrew Brygin
4c3a6867ec 8012601: Better validation of image layouts
Reviewed-by: prr
2013-04-26 11:46:50 +04: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
Phil Race
7228a89038 8012421: Better positioning of PairPositioning
Reviewed-by: srl, mschoene, vadim
2013-04-25 16:49:54 -07:00
Chris Hegarty
22126efe5a Merge 2013-06-10 10:38:33 +01:00
Chris Hegarty
183dad0217 Merge 2013-05-31 10:34:25 +01:00
Chris Hegarty
a5477b8630 Merge 2013-05-23 12:58:51 +01:00
Chris Hegarty
c8b6b35f12 Merge 2013-05-16 11:47:51 +01:00
Chris Hegarty
6983122cde Merge 2013-05-08 11:22:25 +01:00
Chris Hegarty
ca95b12d35 Merge 2013-05-01 12:25:43 +01:00
Chris Hegarty
9a078f9451 Merge 2013-04-28 09:35:25 +01: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
Andrew Brygin
7a0b2b5987 8012438: Better image validation
Reviewed-by: prr
2013-04-24 21:15:54 +04: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
Chris Hegarty
a8b90cd2a1 Merge 2013-04-24 11:03:39 +01:00
Chris Hegarty
f748062d6b Merge 2013-04-24 11:03:32 +01: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
Chris Hegarty
590c01b1b8 Merge 2013-04-24 10:18:03 +01:00
Chris Hegarty
a438830cd8 Merge 2013-04-24 10:17:40 +01:00
Chris Hegarty
86664fc704 Merge 2013-04-24 10:17:15 +01: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
Chris Hegarty
5f108f0ea5 Merge 2013-04-23 11:13:38 +01: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
Sean Mullan
1fc6a72e9d 8011896: Add check for invalid offset for new AccessControlContext isAuthorized field
Reviewed-by: acorn
2013-04-22 08:33:12 -04:00
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
Mandy Chung
3a6de961eb 8011557: Improve reflection utility classes
Reviewed-by: ahgross, alanb
2013-04-17 15:04:59 -07:00
Chris Hegarty
8ab5854ca2 Merge 2013-04-22 11:29:43 +01:00
Sean Mullan
848ec37e2b 6741606: Integrate Apache Santuario
Reviewed-by: vinnie, hawtin
2013-04-22 11:23:33 +01:00
Chris Hegarty
d6465cc792 Merge 2013-04-19 14:14:18 +01:00
Anthony Petrov
48b654d67d 8009071: Improve shape handling
Reviewed-by: art, mschoene
2013-04-18 13:52:38 +01: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
Leonid Romanov
7f5fa64510 8011695: [tck-red] Application can not be run, the Security Warning dialog is gray
EventQueue shouldn't use AppContext.getAppContext() to obtain its AppContext.

Reviewed-by: art
2013-04-16 21:19:02 +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
Andrew Brygin
c0e62cff31 8012112: java/awt/image/mlib/MlibOpsTest.java fails on sparc solaris
Reviewed-by: prr, vadim
2013-04-15 14:11:32 +04: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
Andrew Brygin
36ef0217a6 8011992: java/awt/image/mlib/MlibOpsTest.java failed since jdk7u25b05
Reviewed-by: vadim
2013-04-12 14:08:21 +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
Andrew Brygin
aad93b5b31 8011243: Improve ImagingLib
Reviewed-by: prr, vadim
2013-04-10 15:55:07 +04: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
Anthony Petrov
c831a0277e 8011154: java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed since 7u25b03 on windows
Reviewed-by: art, yan
2013-04-09 12:05:27 +04:00
Chris Hegarty
93bfa98ac4 8012917: ObjectStreamClass and ObjectStreamField should be CallerSensitive aware
Reviewed-by: mchung
2013-04-22 11:08:27 +01:00
Stuart Marks
33204355fa 8008132: Better serialization support
Reviewed-by: alanb, hawtin
2013-04-22 10:55:14 +01:00
Mandy Chung
0f6c789843 8012689: CallerSensitive annotation should not have CONSTRUCTOR Target
Reviewed-by: chegar
2013-04-22 10:22:59 +01:00
Chris Hegarty
6eca517223 8012692: SerialJavaObject.java should be CallerSensitive aware
Reviewed-by: mchung
2013-04-22 10:21:22 +01:00
Joel Borggrén-Franck
a005174625 8007812: (reflect) Class.getEnclosingMethod problematic for some classes
Better checking in getEnclosing(Method|Constructor|Class)

Reviewed-by: darcy, ahgross, mchung
2013-04-19 14:40:31 +01:00
Athijegannathan Sundararajan
6f0a5a97ae 8006611: Improve scripting
Reviewed-by: mchung
2013-04-19 11:43:19 +01: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
Sean Coffey
dec7bd5d02 8001032: Restrict object access
Restrict object access; fix reviewed also by Alexander Fomin

Reviewed-by: alanb, ahgross
2013-04-08 23:12:03 +01:00
Phil Race
d6adbf8a67 8011257: Better Byte Component Rasters
Reviewed-by: bae, vadim, mschoene
2013-04-08 13:35:57 -07:00
Phil Race
988ba5e3c7 8011253: Better Short Component Rasters
Reviewed-by: bae, vadim, mschoene
2013-04-08 13:32:09 -07:00
Phil Race
6a20e4d507 8011248: Better Component Rasters
Reviewed-by: bae, vadim, mschoene
2013-04-08 13:29:19 -07:00
Vinnie Ryan
60bb493c66 8009235: Improve handling of TSA data
Reviewed-by: ahgross, mullan
2013-04-08 21:12:28 +01: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
Chris Hegarty
13d1be151e 8008593: Better URLClassLoader resource management
Reviewed-by: alanb, sherman, hawtin
2013-04-08 06:15:18 +01: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
Sean Mullan
6ebc920e1e 8001330: Improve on checking order
Reviewed-by: acorn, hawtin
2013-04-05 10:18:36 -04:00
Sean Mullan
8328f67bc7 8001330: Improve on checking order
Reviewed-by: acorn, hawtin
2013-04-05 10:17:06 -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
Leonid Romanov
2e97782d35 8003559: Update display of applet windows
Implemented applet security warning for OS X port

Reviewed-by: art, anthony, serb, skoivu
2013-03-27 16:37:00 +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
Erik Gahlin
62fb07baaa 8008611: Better handling of annotations in JMX
Reviewed-by: skoivu, dholmes, jfdenise
2013-03-21 13:56:28 +01:00
Shanliang Jiang
30245ce543 8007467: Better JMX type conversion
Reviewed-by: dfuchs, mchung, skoivu
2013-04-02 10:38:51 +02:00
Phil Race
7d8a89c6c1 8005007: Better glyph processing
Reviewed-by: srl, mschoene, bae
2013-04-01 09:55:26 -07:00
Dmitry Samersoff
f4069d1374 8008124: Better compliance testing
Better compliance testing

Reviewed-by: dfuchs, jfdenise, skoivu, alanb
2013-03-31 23:47:55 +04:00
Dmitry Samersoff
87a26efe0d 8008120: Improve JMX class checking
Improve JMX class checking

Reviewed-by: mchung, dfuchs, alanb, skoivu
2013-03-31 22:59:14 +04:00
Dmitry Samersoff
07ca78ead7 8007471: Improve MBean notifications
Improve MBean notifications

Reviewed-by: dfuchs, mchung, alanb, skoivu
2013-03-31 22:00:37 +04:00
Sergey Bylokhov
e0c7d59246 8006328: Improve robustness of sound classes
8009057: Improve MIDI event handling

Reviewed-by: amenkov, art, skoivu
2013-03-29 22:07:56 +04:00
Jia-Hong Chen
2801163256 8001038: Resourcefully handle resources
Reviewed-by: prr, bae
2013-03-29 10:01:19 -07:00
Jaroslav Bachorik
9f8bb22b73 8008982: Adjust JMX for underlying interface changes
Reviewed-by: mchung, dholmes, dfuchs, skoivu
2013-03-28 09:39:26 +01:00
Kurchi Subhra Hazra
7938121238 8001318: Socket.getLocalAddress not consistent with InetAddress.getLocalHost
Reviewed-by: alanb, chegar, hawtin
2013-03-28 14:34:18 -07:00
Lance Andersen
7fc34775d1 8009554: Improve SerialJavaObject.getFields
Reviewed-by: alanb, skoivu, mchung
2013-03-28 06:55:42 -04:00
Jia-Hong Chen
d168b09c44 8007925: Improve cmsStageAllocLabV2ToV4curves
8007926: Improve cmsPipelineDup

Reviewed-by: bae, mschoene, prr
2013-03-27 15:58:39 -07:00
Jia-Hong Chen
c5ed90b0bb 8009654: Improve stability of cmsnamed
Reviewed-by: bae, mschoene, prr
2013-03-27 11:38:46 -07:00
Jaroslav Bachorik
dc1533f6cf 8010209: Better provision of factories
Reviewed-by: dcubed, ahgross
2013-03-27 13:29:22 +01:00
Jean-Francois Denise
4a77df1972 8008128: Better API coherence for JMX
Permission for getting classloader

Reviewed-by: alanb, dfuchs, skoivu
2013-03-27 09:59:17 +01:00
Shanliang Jiang
62573eeab1 8008615: Improve robustness of JMX internal APIs
Reviewed-by: dfuchs, skoivu, dholmes
2013-03-26 08:32:16 +01:00
Jean-Francois Denise
fb31c370c7 8009004: Better implementation of RMI connections
Better class handling.

Reviewed-by: alanb, dfuchs, skoivu, jbachorik
2013-03-26 09:12:18 +01:00
Alexander Scherbatiy
d089002460 8007146: [macosx] Setting a display mode crashes JDK under VNC
Reviewed-by: serb
2013-03-21 16:50:35 +04:00
Vinnie Ryan
ea20eb7d97 8009067: Improve storing keys in KeyStore
Reviewed-by: mullan, skoivu
2013-03-21 12:14:59 +00: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
Jaroslav Bachorik
bf2d40f6db 8008623: Better handling of MBeanServers
Reviewed-by: dfuchs, dholmes, skoivu
2013-03-21 09:26:55 +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
Leonid Romanov
d76b61b2e8 8004584: Augment applet contextualization
Do not create the main AppContext for applets

Reviewed-by: art, ahgross
2013-03-21 02:13:49 +04: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
Kurchi Subhra Hazra
fcd5e6c404 8010213: Some api/javax_net/SocketFactory tests fail in 7u25 nightly build
Eliminate fall-through while setting socket options on Windows

Reviewed-by: alanb, chegar
2013-03-20 11:50:11 -07:00
Jia-Hong Chen
e97bdfa854 8007929: Improve CurvesAlloc
Reviewed-by: bae, mschoene, prr
2013-03-20 10:12:37 -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
ed9fe2bcb3 8001309: Better handling of annotation interfaces
Reviewed-by: ahgross, smarks, alanb
2013-03-19 14:59:33 -07:00
Jia-Hong Chen
33af6236b8 8009013: Better handling of T2K glyphs
Reviewed-by: bae, mschoene, prr
2013-03-19 14:29:34 -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
Staffan Larsen
0244671a23 8003703: Update RMI connection dialog box
Reviewed-by: skoivu, ahgross, mchung, jbachorik
2013-03-19 13:26:42 +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
Daniel Fuchs
77302c24fb 8001043: Clarify definition restrictions
Reviewed-by: alanb, skoivu, smarks
2013-03-18 11:55:16 +01:00
Jaroslav Bachorik
09f414379d 8009996: tests javax/management/mxbean/MiscTest.java and javax/management/mxbean/StandardMBeanOverrideTest.java fail
Reviewed-by: dfuchs, dholmes
2013-03-18 11:17:06 +01: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
Jia-Hong Chen
2774999b75 8007927: Improve cmsAllocProfileSequenceDescription
Reviewed-by: bae, mschoene, prr
2013-03-15 12:31:57 -07: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
Darryl Mocek
3cf0ad20be 8001033: Refactor network address handling in virtual machine identifiers
Reviewed-by: smarks, hawtin, mchung
2013-03-13 17:24:34 -07:00
Kurchi Subhra Hazra
ebbaaa0f18 7170730: Improve Windows network stack support
Enable exclusive binding of ports on Windows

Reviewed-by: alanb, chegar, ahgross
2013-03-14 13:46:15 -07:00
Jaroslav Bachorik
fe1f600d80 8008607: Better input checking in JMX
Reviewed-by: dfuchs, mchung, skoivu, sjiang
2013-03-14 14:45:55 +01:00
Jaroslav Bachorik
69718bb834 8008585: Better JMX data handling
Reviewed-by: alanb, dfuchs, jfdenise, skoivu, sjiang
2013-03-14 14:42:12 +01: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
Jaroslav Bachorik
9e0c698e00 8009034: Improve resulting notifications in JMX
Disallowing access to mutable shared arrays

Reviewed-by: dfuchs, mchung, skoivu
2013-03-12 11:09:37 +01:00
Jaroslav Bachorik
c5d1f48f54 8009038: Improve JMX notification support
Disallowing access to mutable shared arrays

Reviewed-by: dfuchs, mchung, skoivu
2013-03-12 09:34:26 +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
Harold Seigel
455fd39d49 7158805: Better rewriting of nested subroutine calls
Reviewed-by: mschoene, coleenp
2013-03-07 11:49:38 -05: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
Jaroslav Bachorik
f1924473cb 8008603: Improve provision of JMX providers
Reviewed-by: alanb, dfuchs, jfdenise, skoivu
2013-03-07 14:05:05 +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
Darryl Mocek
4a3efff02b 8000638: Improve deserialization
Reviewed-by: smarks, hawtin, mchung
2013-03-04 14:34:15 -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
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
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
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
Hannes Wallnöfer
bd2109d3fa 8009240: RegExpScanner code is inefficient and too complex
Reviewed-by: jlaskey, lagergren
2013-02-28 22:59:31 +01: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
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
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
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
Coleen Phillimore
fd02968ebe Merge 2013-02-27 07:35:32 -05:00
Alan Bateman
013fa331c6 8004288: (fs) Files.probeContentType problems
Reviewed-by: ahgross, sherman
2013-02-27 11:44:41 +00: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
Andrew Brygin
14d39ee359 8001034: Memory management improvements
Reviewed-by: mschoene, prr, jgodinez
2013-02-27 12:10:59 +04: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
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
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
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
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
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
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
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
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
Marcus Lagergren
90b971a60d 8008554: load was broken for URLs
Reviewed-by: attila, sundar
2013-02-22 08:57:22 +01: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
James Laskey
fc7f562588 8008447: Tweaks to make all NEWBUILD=false round 3
Reviewed-by: jjh, sundar
2013-02-21 15:24:31 -04: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
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
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
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
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
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
Vicente Romero
68a3295c8b 8006212: javac, convert jtreg tests from shell script to java
Reviewed-by: jjg
2013-02-19 17:53:16 +00:00
Eric McCorkle
78fe727c6d 8008312: Re-enable MethodParameter tests in JDK
Reviewed-by: darcy
2013-02-19 17:09:25 +00: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
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
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
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
Jonathan Gibbons
971f247b1b 8008339: Test TargetAnnoCombo.java is broken
Reviewed-by: jjh
2013-02-18 14:29:40 -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
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
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
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
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
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
Jonathan Gibbons
ff25ecbcbb 8008313: 8007052 breaks test/tools/javap/MethodParameters.java
Reviewed-by: darcy
2013-02-15 11:26:11 -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
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
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
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
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
James Laskey
f95919ab1e 8008231: Fix build system to accommodate integration of dynalink
Reviewed-by: jlaskey
2013-02-14 11:32:49 -04: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
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
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
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
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
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
Hannes Wallnöfer
b8d10c0a0e 8008096: TokenStream buffer should grow exponentially
Reviewed-by: attila, lagergren, sundar
2013-02-13 13:30:21 +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
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
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
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
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
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
James Laskey
32d71c7cb9 8006222: Move slot from SpillProperty to Property
Reviewed-by: hannesw, lagergren
2013-02-08 09:19:38 -04: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
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
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
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
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
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
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
Athijegannathan Sundararajan
ac9ca521ad 8007522: IllegalStateException thrown from String.prototype.search function
Reviewed-by: jlaskey
2013-02-05 21:00:04 +05:30
Edvard Wendelin
11036fb4d5 Merge 2013-02-05 15:35:35 +01: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
Athijegannathan Sundararajan
31aa060b11 8007452: add scripting programmers doc changes for nashorn
Reviewed-by: jlaskey, hannesw
2013-02-05 09:11:03 +05:30
James Laskey
233a9042cf 8006191: cmd -> exec("cmd") in script mode
Reviewed-by: sundar, lagergren, hannesw
2013-02-04 14:48:35 -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
James Laskey
58f1fb6ecd 8007455: Extraneous $(ECHO) in make/Makefile
Reviewed-by: sundar
2013-02-04 08:13:05 -04:00
Edvard Wendelin
3562a0b06d Merge 2013-02-03 22:43:57 +01: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
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
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
Athijegannathan Sundararajan
bdcffc23f7 8007286: Add JavaAdapter and importPackage to compatibility script
Reviewed-by: lagergren, jlaskey
2013-01-31 20:07:40 +05:30
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
James Laskey
b342e3c536 8007094: Apply version to nashorn.jar manifest
Reviewed-by: sundar
2013-01-29 14:25:39 -04: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
James Laskey
0b9014a9d6 8006676: Integrate Nashorn into new build system
Reviewed-by: jlaskey
2013-01-28 16:22:03 -04: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
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
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
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
Athijegannathan Sundararajan
5231fef61c 8006857: ClassCastException when interface implementing function uses arguments object
Reviewed-by: jlaskey, lagergren
2013-01-24 22:38:58 +05:30
James Laskey
c2bdb49b75 8006852: Move tests from JIRA for prepopulated map failures
Reviewed-by: sundar
2013-01-24 12:15:29 -04:00
Hannes Wallnöfer
d9ecc2ea0c 8006408: Clean up and specialize NativeString
Reviewed-by: jlaskey, lagergren
2013-01-24 14:55:57 +01: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
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
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
Athijegannathan Sundararajan
7014b0cced 8006678: Avoid too many Context.getGlobal() calls
Reviewed-by: lagergren, jlaskey
2013-01-22 22:07:12 +05:30
Stefan Karlsson
15d98b74e9 7140852: Add test for 7022100
Reviewed-by: sspitsyn, coleenp
2013-01-22 15:25:37 +01: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
Athijegannathan Sundararajan
017fe2d002 8006635: Reduce access levels as much as possible
Reviewed-by: jlaskey, lagergren, attila
2013-01-21 21:17:38 +05:30
Attila Szegedi
acaee2a2f4 8006525: Give StaticClass objects their own linker
Reviewed-by: hannesw, lagergren
2013-01-21 11:03:56 +01:00
Athijegannathan Sundararajan
993b92c985 8006557: JDK8/Lambda build clashes on Map.replace()
Reviewed-by: jlaskey
2013-01-19 22:35:43 +05:30
Athijegannathan Sundararajan
7784f11d28 8006584: improve variable handling in NashornScriptEngine
Reviewed-by: jlaskey, hannesw
2013-01-19 09:14:43 +05:30
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
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
James Laskey
e1e509319e 8006517: PropertyHashMap.Element.equals() compares to Property
Reviewed-by: sundar
2013-01-17 10:33:39 -04: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
Athijegannathan Sundararajan
d35ae9ab05 8006412: Improve toString method of ScriptObjectMirror class
Reviewed-by: jlaskey, lagergren
2013-01-16 17:58:51 +05:30
James Laskey
c6c424f27a 8006304: Remove pre-population of maps for constructor produced maps
Reviewed-by: sundar
2013-01-16 07:06:40 -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
Attila Szegedi
0c53c5de50 8006293: Reduce ScriptObject.findCallMethodMethod
Reviewed-by: lagergren, jlaskey
2013-01-15 13:10:20 +01: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
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
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
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
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
Marcus Lagergren
3d269485fc 8005971: runsunspider.js should check results of benchmarks
Reviewed-by: attila, hannesw
2013-01-10 10:28:57 +01: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
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
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
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
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
Athijegannathan Sundararajan
b501e8fdc4 8005782: get rid of javadoc errors, warnings in nashorn build
Reviewed-by: lagergren
2013-01-08 08:51:00 +05:30
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
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
James Laskey
dca6998949 8005440: Improve .hgignore filtering for Nashorn repo
Reviewed-by: sundar
2012-12-22 08:49:58 -04: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 Coomes
958099576a 8005364: initial hg tags for nashorn repo
Reviewed-by: amurillo
2012-12-20 14:16:21 -08: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
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
Joe Wang
d1398dfca7 8001235: Improve JAXP HTTP handling
Reviewed-by: lancea, skoivu
2012-12-12 15:19:19 -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
Jaroslav Bachorik
07d6fc6bd1 8000537: Contextualize RequiredModelMBean class
Contextualize RequiredModelMBean class

Reviewed-by: asaha
2012-12-07 22:49:08 +04: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
Denis Fokin
eb67f3f1da 7201064: Better dialogue checking
Reviewed-by: serb, skoivu
2012-11-30 15:51:44 +04: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
Denis Fokin
6ddbe35ee2 7186952: Improve clipboard access
Reviewed-by: serb, ahgross
2012-11-26 20:49:54 +04:00
Andrew Brygin
b9b5963522 8002325: Improve management of images
Reviewed-by: prr, ahgross
2012-11-20 11:46:42 +04:00
Darryl Mocek
103aa32912 8001242: Improve RMI HTTP conformance
Reviewed-by: ahgross, mchung, smarks
2012-11-19 15:38:56 -08:00
Darryl Mocek
52caa8646b 6563318: RMI data sanitization
Reviewed-by: ahgross, hawtin, mchung, smarks
2012-11-19 13:54:12 -08:00
Andrew Brygin
7749e896e7 8001972: Improve image processing
Reviewed-by: prr, ahgross
2012-11-16 11:05:43 +04:00
Oleg Pekhovskiy
1d3d850ee0 7192977: Issue in toolkit thread
Reviewed-by: skoivu, rupashka, art
2012-11-15 23:03:31 +04: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
Stuart Marks
39edc8d2b5 7201070: Serialization to conform to protocol
Reviewed-by: dmocek, ahgross, skoivu
2012-11-08 15:41:01 -08: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
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
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
10330 changed files with 762051 additions and 190238 deletions

20
.hgtags
View File

@@ -201,3 +201,23 @@ 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
49fe9c8049132647ad38837a877dd473e6c9b0e5 jdk8-b95
ea73f01b9053e7165e7ba80f242bafecbc6af712 jdk8-b96
0a85476a0b9cb876d5666d45097dac68bef3fce1 jdk8-b97
711eb4aa87de68de78250e0549980936bab53d54 jdk8-b98
2d3875b0d18b3ad1c2bebf385a697e309e4005a4 jdk8-b99

View File

@@ -201,3 +201,23 @@ b43aa5bd8ca5c8121336495382d35ecfa7a71536 jdk8-b74
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
785d07fe38901ecc1b7e0145e53e1c3da9361fee jdk8-b95
c156084add486f941c12d886a0b1b2854795d557 jdk8-b96
a1c1e8bf71f354f3aec0214cf13d6668811e021d jdk8-b97
0d0c983a817bbe8518a5ff201306334a8de267f2 jdk8-b98
59dc9da813794c924a0383c2a6241af94defdfed jdk8-b99

View File

@@ -90,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
@@ -174,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
@@ -336,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

@@ -68,12 +68,15 @@ else
# 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)) | \
all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \
$(MAKE) -p -q -f common/makefiles/Main.gmk SPEC=$(firstword $(SPEC)) | \
grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
$(all_phony_targets):
@$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) $@) &&) true
$(all_phony_targets):
$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \
$(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
.PHONY: $(all_phony_targets)
endif
endif

View File

@@ -355,12 +355,24 @@
</li>
<li>
Install a
<a name="bootjdk">Bootstrap JDK</a>
<br>
<a name="bootjdk">Bootstrap JDK</a>.
All OpenJDK builds require access to a previously released
JDK, this is often called a bootstrap JDK.
Currently, for this JDK release we require
JDK 7 Update 7 or newer.
JDK called the <i>bootstrap JDK</i> or <i>boot JDK.</i>
The general rule is that the bootstrap JDK
must be an instance of the previous major
release of the JDK. In addition, there may be
a requirement to use a release at or beyond a
particular update level.
<br>&nbsp;<br>
<b><i>Building JDK 8 requires use of a version
of JDK 7 that is at Update 7 or newer. JDK 8
developers should not use JDK 8 as the boot
JDK, to ensure that JDK 8 dependencies are
not introduced into the parts of the system
that are built with JDK 7.</i></b>
<br>&nbsp;<br>
The JDK 7 binaries can be downloaded from Oracle's
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
target="_blank">JDK 7 download site</a>.

View File

@@ -43,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
@@ -58,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

@@ -23,17 +23,36 @@
# 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
])
# Appends a string to a path variable, only adding the : when needed.
AC_DEFUN([BASIC_APPEND_TO_PATH],
[
if test "x[$]$1" = x; then
$1="$2"
else
$1="[$]$1:$2"
fi
])
# This will make sure the given variable points to a full and proper
# path. This means:
# 1) There will be no spaces in the path. On posix platforms,
@@ -51,16 +70,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
])
@@ -157,10 +179,10 @@ AC_DEFUN([BASIC_REMOVE_SYMBOLIC_LINKS],
COUNTER=0
sym_link_dir=`$DIRNAME [$]$1`
sym_link_file=`$BASENAME [$]$1`
# Use the system pwd and not the shell builtin to resolve directory symlinks
cd $sym_link_dir
cd `$THEPWDCMD`
sym_link_dir=`$THEPWDCMD`
# 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/'`
@@ -171,7 +193,7 @@ AC_DEFUN([BASIC_REMOVE_SYMBOLIC_LINKS],
# 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
@@ -252,7 +274,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)
@@ -285,6 +306,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)
@@ -297,13 +322,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="`$THEPWDCMD`"
SRC_ROOT="`$THEPWDCMD -L`"
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
PATH_SEP=";"
@@ -337,7 +361,9 @@ fi
AC_SUBST(SYS_ROOT)
AC_ARG_WITH([tools-dir], [AS_HELP_STRING([--with-tools-dir],
[search this directory for compilers and tools (for cross-compiling)])], [TOOLS_DIR=$with_tools_dir])
[search this directory for compilers and tools (for cross-compiling)])],
[TOOLS_DIR=$with_tools_dir]
)
AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
[use this directory as base for tools-dir and sys-root (for cross-compiling)])],
@@ -345,13 +371,14 @@ AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
if test "x$with_sys_root" != x; then
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-sys-root at the same time])
fi
if test "x$with_tools_dir" != x; then
AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time])
BASIC_FIXUP_PATH([with_devkit])
BASIC_APPEND_TO_PATH([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
TOOLS_DIR=$with_devkit/bin
SYS_ROOT=$with_devkit/$host_alias/libc
])
])
AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
@@ -362,13 +389,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.
# To enable comparison of directories, CURDIR needs to be symlink free
# just like SRC_ROOT already is
NOSYM_CURDIR="$CURDIR"
BASIC_REMOVE_SYMBOLIC_LINKS(NOSYM_CURDIR)
if test "x$NOSYM_CURDIR" = "x$SRC_ROOT" || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common" \
|| test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/autoconf" \
|| test "x$NOSYM_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
@@ -598,10 +621,36 @@ AC_PATH_PROGS(READELF, [readelf greadelf])
AC_PATH_PROG(HG, hg)
AC_PATH_PROG(STAT, stat)
AC_PATH_PROG(TIME, time)
# Check if it's GNU time
IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
if test "x$IS_GNU_TIME" != x; then
IS_GNU_TIME=yes
else
IS_GNU_TIME=no
fi
AC_SUBST(IS_GNU_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,

View File

@@ -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,9 +29,16 @@
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)))
$(error Bootcycle builds are not possible if --with-sjavac-server-java is specified)
# 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
@@ -39,5 +46,8 @@ endif
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

@@ -145,6 +145,9 @@ AC_DEFUN_ONCE([BPERF_SETUP_BUILD_JOBS],
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
@@ -159,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])
@@ -278,60 +286,37 @@ 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
ADD_JVM_ARG_IF_OK([-Xms400M -Xmx1100M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
else
MAX_HEAP_MEM=512
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)
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])
fi
if test "$JVM_ARG_OK" = false; then
ADD_JVM_ARG_IF_OK([-Xms256M -Xmx512M],SJAVAC_SERVER_JAVA,[$SJAVAC_SERVER_JAVA])
fi
AC_MSG_CHECKING([whether to use sjavac])
AC_ARG_ENABLE([sjavac], [AS_HELP_STRING([--enable-sjavac],

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2012, 2013 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
@@ -49,7 +49,7 @@ JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
LDD="@LDD@"
MKDIR="@MKDIR@"
NAWK="@NAWK@"
NM="@NM@"
NM="@GNM@"
OBJDUMP="@OBJDUMP@"
OTOOL="@OTOOL@"
PRINTF="@PRINTF@"

View File

@@ -166,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
@@ -194,6 +195,7 @@ BASIC_COMPILE_FIXPATH
###############################################################################
JDKOPT_SETUP_BUILD_TWEAKS
JDKOPT_DETECT_INTREE_EC
###############################################################################
#

File diff suppressed because it is too large Load Diff

View File

@@ -75,6 +75,19 @@ 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)

View File

@@ -121,6 +121,15 @@ 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
@@ -342,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
CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
fi
AC_SUBST(CACERTS_FILE)
@@ -364,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
@@ -394,6 +418,14 @@ 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
@@ -500,10 +532,10 @@ AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS])
#
# ZIP_DEBUGINFO_FILES
#
AC_ARG_ENABLE([zip-debug-info],
[AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])])
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@:>@])],
[enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"])
AC_MSG_RESULT([${enable_zip_debug_info}])
if test "x${enable_zip_debug_info}" = "xno"; then

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
@@ -153,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
@@ -182,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>
])
@@ -359,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
@@ -499,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)
###############################################################################
@@ -662,7 +692,7 @@ if test "x$OPENJDK_TARGET_OS" = xlinux; then
AC_MSG_CHECKING([how to link with libstdc++])
# 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; then
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"
@@ -676,6 +706,59 @@ if test "x$OPENJDK_TARGET_OS" = xlinux; then
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)
])
@@ -233,7 +235,18 @@ if test "x$with_override_hotspot" != x; then
fi
AC_MSG_CHECKING([if hotspot should be overridden])
AC_MSG_RESULT([yes with $HOTSPOT_TOPDIR])
fi
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

@@ -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
@@ -224,12 +225,14 @@ 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
@@ -238,6 +241,7 @@ 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@
@@ -271,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@
@@ -285,6 +291,10 @@ 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@
@@ -292,6 +302,9 @@ MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
# 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@
@@ -369,6 +382,7 @@ AR:=@FIXPATH@ @AR@
ARFLAGS:=@ARFLAGS@
NM:=@NM@
GNM:=@GNM@
STRIP:=@STRIP@
MCS:=@MCS@
@@ -466,6 +480,7 @@ 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@
@@ -495,6 +510,7 @@ TAR:=@TAR@
TAIL:=@TAIL@
TEE:=@TEE@
TIME:=@TIME@
IS_GNU_TIME:=@IS_GNU_TIME@
TR:=@TR@
TOUCH:=@TOUCH@
UNIQ:=@UNIQ@
@@ -515,6 +531,9 @@ FILE:=@FILE@
HG:=@HG@
OBJCOPY:=@OBJCOPY@
SETFILE:=@SETFILE@
XATTR:=@XATTR@
JT_HOME:=@JT_HOME@
JTREGEXE:=@JTREGEXE@
FIXPATH:=@FIXPATH@
@@ -532,6 +551,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@
@@ -626,6 +646,8 @@ 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@
@@ -635,16 +657,17 @@ JDK_IMAGE_SUBDIR:=j2sdk-image
JRE_IMAGE_SUBDIR:=j2re-image
JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
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)
# 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)
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

@@ -36,7 +36,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION],
$ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
if test $? -ne 0; then
GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler.])
AC_MSG_NOTICE([The result from running with -V was: "$COMPILER_VERSION_TEST" and with --version: "$GCC_VERSION_TEST"])
AC_MSG_ERROR([Sun Studio compiler is required. Try setting --with-tools-dir.])
@@ -47,7 +47,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION],
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
# First line typically looks something like:
# Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1`
COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \(@<:@1-9@:>@@<:@0-9.@:>@*\) .*/\1/p"`
COMPILER_VENDOR="Microsoft CL.EXE"
COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
@@ -69,7 +69,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_COMPILER_VERSION],
AC_MSG_NOTICE([The result from running with --version was: "$COMPILER_VERSION_TEST"])
AC_MSG_ERROR([GCC compiler is required. Try setting --with-tools-dir.])
fi
# First line typically looks something like:
# gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \(@<:@1-9@:>@@<:@0-9.@:>@*\)/\1/p"`
@@ -142,7 +142,7 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
BASIC_REMOVE_SYMBOLIC_LINKS(TEST_COMPILER)
AC_MSG_RESULT([$TEST_COMPILER])
AC_MSG_CHECKING([if $1 is disguised ccache])
COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
if test "x$COMPILER_BASENAME" = "xccache"; then
AC_MSG_RESULT([yes, trying to find proper $COMPILER_NAME compiler])
@@ -176,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)
@@ -225,15 +226,6 @@ BDEPS_CHECK_MODULE(DEVKIT, devkit, xxx,
],
[])
if test "x$SYS_ROOT" != "x/" ; then
CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
fi
# Store the CFLAGS etal passed to the configure script.
ORG_CFLAGS="$CFLAGS"
ORG_CXXFLAGS="$CXXFLAGS"
@@ -248,30 +240,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
@@ -321,7 +321,7 @@ AC_SUBST(HOTSPOT_LD)
COMPILER_NAME=gcc
COMPILER_TYPE=CC
AS_IF([test "x$OPENJDK_TARGET_OS" = xwindows], [
# For now, assume that we are always compiling using cl.exe.
# For now, assume that we are always compiling using cl.exe.
CC_OUT_OPTION=-Fo
EXE_OUT_OPTION=-out:
LD_OUT_OPTION=-out:
@@ -369,17 +369,20 @@ AS_IF([test "x$OPENJDK_TARGET_OS" = xwindows], [
AS_IF([test "x$VARIANT" = xOPT], [
RC_FLAGS="$RC_FLAGS -d NDEBUG"
])
JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
AS_IF([test "x$JDK_UPDATE_VERSION" = x], [
JDK_UPDATE_VERSION_NOTNULL=0
])
RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
# The version variables used to create RC_FLAGS may be overridden
# in a custom configure script, or possibly the command line.
# Let those variables be expanded at make time in spec.gmk.
# The \$ are escaped to the shell, and the $(...) variables
# are evaluated by make.
RC_FLAGS="$RC_FLAGS \
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
-d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
-d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
-d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
-d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
# lib.exe is used to create static libraries.
AC_CHECK_PROG([WINAR], [lib],[lib],,,)
@@ -432,8 +435,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)
@@ -441,6 +446,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
@@ -466,6 +473,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"
])
@@ -476,7 +485,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_LIBS],
###############################################################################
#
# How to compile shared libraries.
# How to compile shared libraries.
#
if test "x$GCC" = xyes; then
@@ -510,7 +519,7 @@ if test "x$GCC" = xyes; then
SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
SHARED_LIBRARY_SUFFIX='.dylib'
EXE_SUFFIX=''
SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/[$]1'
SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/[$]1'
SET_SHARED_LIBRARY_MAPFILE=''
SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
@@ -560,6 +569,7 @@ else
fi
fi
AC_SUBST(COMPILER_NAME)
AC_SUBST(OBJ_SUFFIX)
AC_SUBST(SHARED_LIBRARY)
AC_SUBST(STATIC_LIBRARY)
@@ -613,7 +623,6 @@ CXX_FLAG_DEPS="-MMD -MF"
case $COMPILER_TYPE in
CC )
D_FLAG="-g"
case $COMPILER_NAME in
gcc )
case $OPENJDK_TARGET_OS in
@@ -628,17 +637,17 @@ case $COMPILER_TYPE in
C_O_FLAG_HI="-O3"
C_O_FLAG_NORM="-O2"
C_O_FLAG_NONE="-O0"
CFLAGS_DEBUG_SYMBOLS="-g"
CXXFLAGS_DEBUG_SYMBOLS="-g"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
CFLAGS_DEBUG_SYMBOLS="-g1"
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"
CFLAGS_DEBUG_SYMBOLS="-g"
CXXFLAGS_DEBUG_SYMBOLS="-g"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
CFLAGS_DEBUG_SYMBOLS="-g1"
CXXFLAGS_DEBUG_SYMBOLS="-g1"
fi
;;
ossc )
#
@@ -660,7 +669,7 @@ case $COMPILER_TYPE in
# Use single precision floating point with 'float'
CC_HIGHEST="$CC_HIGHEST -fsingle"
# Assume memory references via basic pointer types do not alias
# (Source with excessing pointer casting and data access with mixed
# (Source with excessing pointer casting and data access with mixed
# pointer types are not recommended)
CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
# Use intrinsic or inline versions for math/std functions
@@ -719,7 +728,6 @@ case $COMPILER_TYPE in
esac
;;
CL )
D_FLAG=
C_O_FLAG_HIGHEST="-O2"
C_O_FLAG_HI="-O1"
C_O_FLAG_NORM="-O1"
@@ -845,6 +853,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?
@@ -876,7 +906,7 @@ 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
# 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
@@ -924,12 +954,12 @@ CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
# Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
# is identical for client and server? Yes. Which is picked at runtime (client or server)?
# Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
# libraries will link to whatever is in memory. Yuck.
# libraries will link to whatever is in memory. Yuck.
#
# Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
if test "x$COMPILER_NAME" = xcl; then
LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
if test "x$OPENJDK_TARGET_CPU" = xx86; then
if test "x$OPENJDK_TARGET_CPU" = xx86; then
LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
fi
# TODO: make -debug optional "--disable-full-debug-symbols"
@@ -949,7 +979,7 @@ else
if test -n "$HAS_GNU_HASH"; then
LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
fi
if test "x$OPENJDK_TARGET_OS" = xlinux; then
if test "x$OPENJDK_TARGET_OS" = xlinux; then
# And since we now know that the linker is gnu, then add -z defs, to forbid
# undefined symbols in object files.
LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"
@@ -988,23 +1018,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)
@@ -1017,3 +1030,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

@@ -91,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
@@ -102,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.
@@ -208,6 +208,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
# 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/\\\\$//'`
# Remove any paths containing # (typically F#) as that messes up make
PATH=`$ECHO "$PATH" | $SED 's/[[^:#]]*#[^:]*://g'`
VS_PATH="$PATH"
AC_SUBST(VS_INCLUDE)
AC_SUBST(VS_LIB)
@@ -248,10 +250,23 @@ 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 test -f "$SYSTEMROOT/system32/msvcr100.dll"; then
AC_MSG_NOTICE([msvcr100.dll found in $SYSTEMROOT/system32])
MSVCR_DLL="$SYSTEMROOT/system32/msvcr100.dll"
# 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
@@ -262,3 +277,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

@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2012, 2013 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

View File

@@ -30,7 +30,7 @@ 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`"
whichhg="`which hg 2> /dev/null | grep -v '^no hg in'`"
if [ "${whichhg}" = "" ] ; then
echo Cannot find hg!
@@ -51,7 +51,7 @@ if [ "#!" = "$has_hash_bang" ] ; then
bpython="`basename "$python"`"
fi
if [ "python" = "$bpython" -a -x "$python" ] ; then
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.
@@ -96,7 +96,7 @@ pull_default=""
repos=""
repos_extra=""
if [ "${command}" = "clone" -o "${command}" = "fclone" ] ; then
subrepos="corba jaxp jaxws langtools jdk hotspot"
subrepos="corba jaxp jaxws langtools jdk hotspot nashorn"
if [ -f .hg/hgrc ] ; then
pull_default=`hg paths default`
if [ "${pull_default}" = "" ] ; then

View File

@@ -70,7 +70,7 @@ define add_idl_package
$(PREFIXES) \
$4
$(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6)
$(CP) -rp $3/$$($4_TMPDIR)/* $3
$(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

View File

@@ -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))
@@ -155,7 +155,7 @@ define SetupArchive
# lines, but not here for use in make dependencies.
$1_DEPS+=$$(subst \,,$$(foreach src,$$($1_SRCS),$$(addprefix $$(src)/,$$($1_EXTRA_FILES))))
ifeq (,$$($1_SKIP_METAINF))
$1_DEPS+=$$(call CacheFind $$(wildcard $$(addsuffix /META-INF,$$($1_SRCS))))
$1_DEPS+=$$(call CacheFind,$$(wildcard $$(addsuffix /META-INF,$$($1_SRCS))))
endif
endif
@@ -255,12 +255,21 @@ define SetupZipArchive
$(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))
# To avoid running find over too large sets of files, which causes make to crash
# on some configurations (cygwin), use INCLUDES and INCLUDE_FILES to build a set
# of directories to run find in, if available.
ifneq ($$($1_INCLUDES)$$($1_INCLUDE_FILES),)
$1_FIND_LIST := $$(wildcard $$(foreach i,$$($1_SRC),\
$$(addprefix $$i/,$$($1_INCLUDES) $$($1_INCLUDE_FILES))))
else
$1_FIND_LIST := $$($1_SRC)
endif
# Find all files in the source tree.
$1_ALL_SRCS := $$(call not-containing,_the.,\
$$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind $$($1_SRC))))
$$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind,$$($1_FIND_LIST))))
ifneq ($$($1_INCLUDES),)
$1_SRC_INCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_INCLUDES))))
ifneq ($$($1_SUFFIXES),)
$1_ZIP_INCLUDES := $$(foreach s,$$($1_SUFFIXES),\
$$(addprefix -i$(SPACE)$(DQUOTE),$$(addsuffix /*$$s$(DQUOTE),$$($1_INCLUDES))))
@@ -269,12 +278,8 @@ define SetupZipArchive
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),)
$1_SRC_EXCLUDES := $$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$(addsuffix /%,$$($1_EXCLUDES))))
$1_ZIP_EXCLUDES := $$(addprefix -x$(SPACE)$(DQUOTE),$$(addsuffix /*$(DQUOTE),$$($1_EXCLUDES)))
@@ -505,7 +510,7 @@ define SetupJavaCompilation
--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) \

View File

@@ -64,6 +64,10 @@ HOTSPOT_AVAILABLE := $(if $(wildcard $(root_dir)/hotspot),true,false)
# 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)
@@ -99,6 +103,9 @@ 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
@@ -120,9 +127,21 @@ else
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

View File

@@ -120,6 +120,12 @@ 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)
@@ -128,7 +134,7 @@ demos-only: start-make
# Note: This double-colon rule is intentional, to support
# custom make file integration.
images:: source-tips demos images-only
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)
@@ -169,15 +175,15 @@ sign-jars-only: start-make
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
@$(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)
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) -j1 -k MAKEFLAGS= 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 MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
@$(call TargetExit)
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
@@ -186,11 +192,11 @@ source-tips: $(OUTPUT_ROOT)/source_tips
$(OUTPUT_ROOT)/source_tips: FRC
@$(MKDIR) -p $(@D)
@$(RM) $@
@$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
@$(call GetSourceTips)
# 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-docs
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.
@@ -220,6 +226,8 @@ clean-hotspot:
$(call CleanComponent,hotspot)
clean-jdk:
$(call CleanComponent,jdk)
clean-nashorn:
$(call CleanComponent,nashorn)
clean-images:
$(call CleanComponent,images)
clean-overlay-images:
@@ -229,11 +237,13 @@ clean-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,28 +328,30 @@ $(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)
# but with a limit of 20 on <ALL NEWER PREREQUISITES>, to avoid cluttering logs too much (and causing a crash on Cygwin).
OLD_SHELL:=$$(SHELL)
WRAPPER_SHELL:=$$(OLD_SHELL) $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(TIME),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log $$(OLD_SHELL)
# but with a limit of 20 on <ALL NEWER PREREQUISITES>, to avoid cluttering logs too much
# (and causing a crash on Cygwin).
# Default shell seems to always be /bin/sh. Must override with bash to get this to work on Solaris.
# Only use time if it's GNU time which supports format and output file.
WRAPPER_SHELL:=/bin/bash $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(findstring yes,$$(IS_GNU_TIME)),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log /bin/bash
SHELL=$$(warning $$(if $$@,Building $$@,Running shell command) $$(if $$<, (from $$<))$$(if $$?, ($$(wordlist 1, 20, $$?) $$(if $$(wordlist 21, 22, $$?), ... [in total $$(words $$?) files]) newer)))$$(WRAPPER_SHELL)
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 +363,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 +376,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

View File

@@ -184,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

@@ -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)
@@ -303,11 +325,17 @@ define SetupNativeCompilation
ifneq (,$$($1_DEBUG_SYMBOLS))
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
# Programs don't get the debug symbols added in the old build. It's not clear if
# this is intentional.
ifeq ($$($1_PROGRAM),)
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),)
$1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
$1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
endif
endif
endif
endif
@@ -393,6 +421,8 @@ 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), true)
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

@@ -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

@@ -142,6 +142,7 @@ CORE_PKGS = \
java.util.prefs \
java.util.regex \
java.util.spi \
java.util.stream \
java.util.zip \
javax.accessibility \
javax.activation \

View File

@@ -390,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)) ; \

View File

@@ -80,7 +80,8 @@ JCONSOLE_PKGS = com.sun.tools.jconsole
TREEAPI_PKGS = com.sun.source.doctree \
com.sun.source.tree \
com.sun.source.util
com.sun.source.util \
jdk
SMARTCARDIO_PKGS = javax.smartcardio
@@ -93,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) \
@@ -103,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

@@ -201,3 +201,23 @@ d4e68ce17795601017ac2f952baad7272942c36e jdk8-b75
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
2cf36f43df36137980d9828cec27003ec10daeee jdk8-b95
3357c2776431d51a8de326a85e0f41420e40774f jdk8-b96
469995a8e97424f450c880606d689bf345277b19 jdk8-b97
3370fb6146e47a6cc05a213fc213e12fc0a38d07 jdk8-b98
3f67804ab61303782df57e54989ef5e0e4629beb jdk8-b99

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 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
@@ -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 \
@@ -43,21 +39,12 @@ com_sun_corba_se_impl_orbutil_java = \
com/sun/corba/se/impl/orbutil/ObjectStreamClassUtil_1_3.java \
com/sun/corba/se/impl/orbutil/ORBConstants.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

@@ -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, 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
@@ -81,7 +81,6 @@ import com.sun.corba.se.impl.logging.ActivationSystemException ;
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
import com.sun.corba.se.impl.orbutil.ORBConstants;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.impl.util.Utility;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2004, 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
@@ -33,6 +33,8 @@ package com.sun.corba.se.impl.corba;
import java.io.Serializable;
import java.math.BigDecimal;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.List ;
import java.util.ArrayList ;
@@ -504,7 +506,13 @@ public class AnyImpl extends Any
public org.omg.CORBA.portable.OutputStream create_output_stream()
{
//debug.log ("create_output_stream");
return new AnyOutputStream(orb);
final ORB finalorb = this.orb;
return AccessController.doPrivileged(new PrivilegedAction<AnyOutputStream>() {
@Override
public AnyOutputStream run() {
return new AnyOutputStream(finalorb);
}
});
}
/**
@@ -1218,7 +1226,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 +1259,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

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 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
@@ -600,7 +600,8 @@ public final class TypeCodeImpl extends TypeCode
}
public static CDROutputStream newOutputStream(ORB orb) {
TypeCodeOutputStream tcos = new TypeCodeOutputStream((ORB)orb);
TypeCodeOutputStream tcos =
sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb);
//if (debug) System.out.println("Created TypeCodeOutputStream " + tcos +
// " with no parent");
return tcos;
@@ -2189,10 +2190,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,10 +564,7 @@ public class CDRInputStream_1_0 extends CDRInputStreamBase
checkForNegativeLength(len);
if (orb != null && ORBUtility.isLegacyORB((ORB)orb))
return legacyReadString(len);
else
return internalReadString(len);
return internalReadString(len);
}
private final String internalReadString(int 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,18 +189,8 @@ 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();
}
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) 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 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
@@ -66,7 +66,7 @@ import org.omg.CORBA.CompletionStatus;
*
* @author Ram Jeyaraman
*/
public class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
final class IDLJavaSerializationOutputStream extends CDROutputStreamBase {
private ORB orb;
private byte encodingVersion;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@@ -196,7 +196,8 @@ public final class TypeCodeOutputStream extends EncapsOutputStream
}
public TypeCodeOutputStream createEncapsulation(org.omg.CORBA.ORB _orb) {
TypeCodeOutputStream encap = new TypeCodeOutputStream((ORB)_orb, isLittleEndian());
TypeCodeOutputStream encap =
sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)_orb, isLittleEndian());
encap.setEnclosingOutputStream(this);
encap.makeEncapsulation();
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + encap + " with parent " + this);
@@ -211,7 +212,8 @@ public final class TypeCodeOutputStream extends EncapsOutputStream
public static TypeCodeOutputStream wrapOutputStream(OutputStream os) {
boolean littleEndian = ((os instanceof CDROutputStream) ? ((CDROutputStream)os).isLittleEndian() : false);
TypeCodeOutputStream tos = new TypeCodeOutputStream((ORB)os.orb(), littleEndian);
TypeCodeOutputStream tos =
sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)os.orb(), littleEndian);
tos.setEnclosingOutputStream(os);
//if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + tos + " with parent " + os);
return tos;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -155,7 +155,8 @@ public final class CDREncapsCodec
// be versioned. This can be handled once this work is complete.
// Create output stream with default endianness.
EncapsOutputStream cdrOut = new EncapsOutputStream(
EncapsOutputStream cdrOut =
sun.corba.OutputStreamFactory.newEncapsOutputStream(
(com.sun.corba.se.spi.orb.ORB)orb, giopVersion );
// This is an encapsulation, so put out the endian:

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@@ -77,7 +77,6 @@ import com.sun.corba.se.impl.logging.InterceptorsSystemException;
import com.sun.corba.se.impl.logging.ORBUtilSystemException;
import com.sun.corba.se.impl.logging.OMGSystemException;
import com.sun.corba.se.impl.corba.RequestImpl;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.impl.orbutil.ORBConstants;
import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.impl.orbutil.StackImpl;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -86,13 +86,14 @@ import com.sun.corba.se.impl.encoding.CDRInputStream_1_0;
import com.sun.corba.se.impl.encoding.EncapsOutputStream;
import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.impl.util.RepositoryId;
import com.sun.corba.se.impl.logging.InterceptorsSystemException;
import com.sun.corba.se.impl.logging.OMGSystemException;
import sun.corba.SharedSecrets;
/**
* Implementation of the RequestInfo interface as specified in
* orbos/99-12-02 section 5.4.1.
@@ -452,7 +453,8 @@ public abstract class RequestInfoImpl
// Find the read method on the helper class:
String helperClassName = className + "Helper";
Class helperClass = ORBClassLoader.loadClass( helperClassName );
Class<?> helperClass =
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
Class[] readParams = new Class[1];
readParams[0] = org.omg.CORBA.portable.InputStream.class;
Method readMethod = helperClass.getMethod( "read", readParams );
@@ -512,7 +514,8 @@ public abstract class RequestInfoImpl
Class exceptionClass = userException.getClass();
String className = exceptionClass.getName();
String helperClassName = className + "Helper";
Class helperClass = ORBClassLoader.loadClass( helperClassName );
Class<?> helperClass =
SharedSecrets.getJavaCorbaAccess().loadClass( helperClassName );
// Find insert( Any, class ) method
Class[] insertMethodParams = new Class[2];
@@ -656,7 +659,8 @@ public abstract class RequestInfoImpl
// Convert the "core" service context to an
// "IOP" ServiceContext by writing it to a
// CDROutputStream and reading it back.
EncapsOutputStream out = new EncapsOutputStream(myORB);
EncapsOutputStream out =
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
context.write( out, GIOPVersion.V1_2 );
InputStream inputStream = out.create_input_stream();
@@ -692,8 +696,8 @@ public abstract class RequestInfoImpl
{
int id = 0 ;
// Convert IOP.service_context to core.ServiceContext:
EncapsOutputStream outputStream = new EncapsOutputStream(
myORB );
EncapsOutputStream outputStream =
sun.corba.OutputStreamFactory.newEncapsOutputStream(myORB);
InputStream inputStream = null;
UnknownServiceContext coreServiceContext = null;
ServiceContextHelper.write( outputStream, service_context );

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

@@ -300,11 +300,11 @@ public class IIOPInputStream
resetStream();
}
public final void setOrbStream(org.omg.CORBA_2_3.portable.InputStream os) {
final void setOrbStream(org.omg.CORBA_2_3.portable.InputStream os) {
orbStream = os;
}
public final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
final org.omg.CORBA_2_3.portable.InputStream getOrbStream() {
return orbStream;
}
@@ -327,11 +327,11 @@ public class IIOPInputStream
return (javax.rmi.CORBA.ValueHandler) vhandler;
}
public final void increaseRecursionDepth(){
final void increaseRecursionDepth(){
recursionDepth++;
}
public final int decreaseRecursionDepth(){
final int decreaseRecursionDepth(){
return --recursionDepth;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 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
@@ -124,19 +124,19 @@ public class IIOPOutputStream
}
}
public final void setOrbStream(org.omg.CORBA_2_3.portable.OutputStream os) {
final void setOrbStream(org.omg.CORBA_2_3.portable.OutputStream os) {
orbStream = os;
}
public final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
final org.omg.CORBA_2_3.portable.OutputStream getOrbStream() {
return orbStream;
}
public final void increaseRecursionDepth(){
final void increaseRecursionDepth(){
recursionDepth++;
}
public final int decreaseRecursionDepth(){
final int decreaseRecursionDepth(){
return --recursionDepth;
}

View File

@@ -251,7 +251,7 @@ public abstract class InputStreamHook extends ObjectInputStream
}
protected abstract byte getStreamFormatVersion();
protected abstract org.omg.CORBA_2_3.portable.InputStream getOrbStream();
abstract org.omg.CORBA_2_3.portable.InputStream getOrbStream();
// Description of possible actions
protected static class ReadObjectState {

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

@@ -179,7 +179,7 @@ public abstract class OutputStreamHook extends ObjectOutputStream
putFields.write(this);
}
public abstract org.omg.CORBA_2_3.portable.OutputStream getOrbStream();
abstract org.omg.CORBA_2_3.portable.OutputStream getOrbStream();
protected abstract void beginOptionalCustomData();

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, 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
@@ -93,6 +93,22 @@ public class ValueUtility {
null, // tk_abstract_interface 32
};
static {
sun.corba.SharedSecrets.setJavaCorbaAccess(new sun.corba.JavaCorbaAccess() {
public ValueHandlerImpl newValueHandlerImpl() {
return ValueHandlerImpl.getInstance();
}
public Class<?> loadClass(String className) throws ClassNotFoundException {
if (Thread.currentThread().getContextClassLoader() != null) {
return Thread.currentThread().getContextClassLoader().
loadClass(className);
} else {
return ClassLoader.getSystemClassLoader().loadClass(className);
}
}
});
}
public static String getSignature(ValueMember member)
throws ClassNotFoundException {

View File

@@ -128,7 +128,8 @@ public class EncapsulationUtility
static public void writeEncapsulation( WriteContents obj,
OutputStream os )
{
EncapsOutputStream out = new EncapsOutputStream( (ORB)os.orb() ) ;
EncapsOutputStream out =
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)os.orb());
out.putEndian() ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -95,7 +95,8 @@ public class GenericTaggedProfile extends GenericIdentifiable implements TaggedP
public org.omg.IOP.TaggedProfile getIOPProfile()
{
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
EncapsOutputStream os =
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
write( os ) ;
InputStream is = (InputStream)(os.create_input_stream()) ;
return org.omg.IOP.TaggedProfileHelper.read( is ) ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -213,7 +213,8 @@ public class IORImpl extends IdentifiableContainerBase implements IOR
{
StringWriter bs;
MarshalOutputStream s = new EncapsOutputStream(factory);
MarshalOutputStream s =
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
s.putEndian();
write( (OutputStream)s );
bs = new StringWriter();
@@ -237,7 +238,8 @@ public class IORImpl extends IdentifiableContainerBase implements IOR
}
public org.omg.IOP.IOR getIOPIOR() {
EncapsOutputStream os = new EncapsOutputStream(factory);
EncapsOutputStream os =
sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
write(os);
InputStream is = (InputStream) (os.create_input_stream());
return org.omg.IOP.IORHelper.read(is);

View File

@@ -87,7 +87,8 @@ public class ObjectKeyImpl implements ObjectKey
public byte[] getBytes( org.omg.CORBA.ORB orb )
{
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
EncapsOutputStream os =
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
write( os ) ;
return os.toByteArray() ;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -61,7 +61,8 @@ public class TaggedComponentFactoryFinderImpl extends
public TaggedComponent create( org.omg.CORBA.ORB orb,
org.omg.IOP.TaggedComponent comp )
{
EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
EncapsOutputStream os =
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)orb);
org.omg.IOP.TaggedComponentHelper.write( os, comp ) ;
InputStream is = (InputStream)(os.create_input_stream() ) ;
// Skip the component ID: we just wrote it out above

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -247,7 +247,8 @@ public class IIOPProfileImpl extends IdentifiableBase implements IIOPProfile
public org.omg.IOP.TaggedProfile getIOPProfile()
{
EncapsOutputStream os = new EncapsOutputStream( orb ) ;
EncapsOutputStream os =
sun.corba.OutputStreamFactory.newEncapsOutputStream(orb);
os.write_long( getId() ) ;
write( os ) ;
InputStream is = (InputStream)(os.create_input_stream()) ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -132,8 +132,9 @@ public class IIOPProfileTemplateImpl extends TaggedProfileTemplateBase
// Note that this cannot be accomplished with a codec!
// Use the byte order of the given stream
OutputStream encapsulatedOS = new EncapsOutputStream( (ORB)os.orb(),
((CDROutputStream)os).isLittleEndian() ) ;
OutputStream encapsulatedOS =
sun.corba.OutputStreamFactory.newEncapsOutputStream(
(ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ;
okeyTemplate.write( id, encapsulatedOS ) ;
EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ;

View File

@@ -147,6 +147,14 @@ public class StubDelegateImpl implements javax.rmi.CORBA.StubDelegate
return ior.equals( other.ior ) ;
}
public int hashCode() {
if (ior == null) {
return 0;
} else {
return ior.hashCode();
}
}
/**
* Returns a string representation of this stub. Returns the same string
* for all stubs that represent the same remote object.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2012, 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
@@ -109,9 +109,9 @@ import com.sun.corba.se.impl.logging.OMGSystemException;
import com.sun.corba.se.impl.util.Utility;
import com.sun.corba.se.impl.util.IdentityHashtable;
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;
/**
* Provides utility methods that can be used by stubs and ties to
@@ -125,7 +125,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);
@@ -259,7 +260,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
return new MarshalException(message,inner);
} else if (ex instanceof ACTIVITY_REQUIRED) {
try {
Class cl = ORBClassLoader.loadClass(
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
"javax.activity.ActivityRequiredException");
Class[] params = new Class[2];
params[0] = java.lang.String.class;
@@ -275,7 +276,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
}
} else if (ex instanceof ACTIVITY_COMPLETED) {
try {
Class cl = ORBClassLoader.loadClass(
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
"javax.activity.ActivityCompletedException");
Class[] params = new Class[2];
params[0] = java.lang.String.class;
@@ -291,7 +292,7 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
}
} else if (ex instanceof INVALID_ACTIVITY) {
try {
Class cl = ORBClassLoader.loadClass(
Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
"javax.activity.InvalidActivityException");
Class[] params = new Class[2];
params[0] = java.lang.String.class;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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,6 @@ import com.sun.corba.se.spi.transport.ReadTimeouts;
import com.sun.corba.se.impl.encoding.CodeSetComponentInfo ;
import com.sun.corba.se.impl.legacy.connection.USLPort;
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
import com.sun.corba.se.impl.orbutil.ORBConstants ;
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@@ -152,7 +152,6 @@ import com.sun.corba.se.impl.oa.toa.TOAFactory;
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler;
import com.sun.corba.se.impl.oa.poa.DelegateImpl;
import com.sun.corba.se.impl.oa.poa.POAFactory;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.impl.orbutil.ORBConstants;
import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.impl.orbutil.StackImpl;
@@ -551,7 +550,7 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
public synchronized org.omg.CORBA.portable.OutputStream create_output_stream()
{
checkShutdownState();
return new EncapsOutputStream(this);
return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
}
/**
@@ -840,7 +839,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,5 +1,5 @@
/*
* Copyright (c) 1997, 2009, 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
@@ -149,7 +149,7 @@ public class ORBSingleton extends ORB
}
public OutputStream create_output_stream() {
return new EncapsOutputStream(this);
return sun.corba.OutputStreamFactory.newEncapsOutputStream(this);
}
public TypeCode create_struct_tc(String id,

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@@ -78,7 +78,6 @@ import com.sun.corba.se.impl.encoding.OSFCodeSetRegistry ;
import com.sun.corba.se.impl.legacy.connection.USLPort ;
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
import com.sun.corba.se.impl.oa.poa.BadServerIdHandler ;
import com.sun.corba.se.impl.orbutil.ORBClassLoader ;
import com.sun.corba.se.impl.orbutil.ORBConstants ;
import com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr ;
import com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr ;
@@ -86,6 +85,8 @@ import com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr ;
import com.sun.corba.se.impl.transport.DefaultIORToSocketInfoImpl;
import com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl;
import sun.corba.SharedSecrets;
/** Initialize the parser data for the standard ORB parser. This is used both
* to implement ORBDataParserImpl and to provide the basic testing framework
* for ORBDataParserImpl.
@@ -455,6 +456,10 @@ public class ParserTable {
return other instanceof TestBadServerIdHandler ;
}
public int hashCode() {
return 1;
}
public void handle( ObjectKey objectKey )
{
}
@@ -518,6 +523,10 @@ public class ParserTable {
return other instanceof TestLegacyORBSocketFactory ;
}
public int hashCode() {
return 1;
}
public ServerSocket createServerSocket( String type, int port )
{
return null ;
@@ -543,6 +552,10 @@ public class ParserTable {
return other instanceof TestORBSocketFactory ;
}
public int hashCode() {
return 1;
}
public void setORB(ORB orb)
{
}
@@ -572,6 +585,10 @@ public class ParserTable {
return other instanceof TestIORToSocketInfo;
}
public int hashCode() {
return 1;
}
public List getSocketInfo(IOR ior)
{
return null;
@@ -608,6 +625,10 @@ public class ParserTable {
return other instanceof TestContactInfoListFactory;
}
public int hashCode() {
return 1;
}
public void setORB(ORB orb) { }
public CorbaContactInfoList create( IOR ior ) { return null; }
@@ -640,8 +661,8 @@ public class ParserTable {
String param = (String)value ;
try {
Class legacySocketFactoryClass =
ORBClassLoader.loadClass(param);
Class<?> legacySocketFactoryClass =
SharedSecrets.getJavaCorbaAccess().loadClass(param);
// For security reasons avoid creating an instance if
// this socket factory class is not one that would fail
// the class cast anyway.
@@ -670,7 +691,8 @@ public class ParserTable {
String param = (String)value ;
try {
Class socketFactoryClass = ORBClassLoader.loadClass(param);
Class<?> socketFactoryClass =
SharedSecrets.getJavaCorbaAccess().loadClass(param);
// For security reasons avoid creating an instance if
// this socket factory class is not one that would fail
// the class cast anyway.
@@ -699,7 +721,8 @@ public class ParserTable {
String param = (String)value ;
try {
Class iorToSocketInfoClass = ORBClassLoader.loadClass(param);
Class<?> iorToSocketInfoClass =
SharedSecrets.getJavaCorbaAccess().loadClass(param);
// For security reasons avoid creating an instance if
// this socket factory class is not one that would fail
// the class cast anyway.
@@ -728,7 +751,8 @@ public class ParserTable {
String param = (String)value ;
try {
Class iiopPrimaryToContactInfoClass = ORBClassLoader.loadClass(param);
Class<?> iiopPrimaryToContactInfoClass =
SharedSecrets.getJavaCorbaAccess().loadClass(param);
// For security reasons avoid creating an instance if
// this socket factory class is not one that would fail
// the class cast anyway.
@@ -757,8 +781,8 @@ public class ParserTable {
String param = (String)value ;
try {
Class contactInfoListFactoryClass =
ORBClassLoader.loadClass(param);
Class<?> contactInfoListFactoryClass =
SharedSecrets.getJavaCorbaAccess().loadClass(param);
// For security reasons avoid creating an instance if
// this socket factory class is not one that would fail
// the class cast anyway.
@@ -865,6 +889,10 @@ public class ParserTable {
return other instanceof TestORBInitializer1 ;
}
public int hashCode() {
return 1;
}
public void pre_init( ORBInitInfo info )
{
}
@@ -882,6 +910,10 @@ public class ParserTable {
return other instanceof TestORBInitializer2 ;
}
public int hashCode() {
return 1;
}
public void pre_init( ORBInitInfo info )
{
}
@@ -950,6 +982,8 @@ public class ParserTable {
{
return other instanceof TestAcceptor1 ;
}
public int hashCode() { return 1; }
public boolean initialize() { return true; }
public boolean initialized() { return true; }
public String getConnectionCacheType() { return "FOO"; }
@@ -981,6 +1015,7 @@ public class ParserTable {
{
return other instanceof TestAcceptor2 ;
}
public int hashCode() { return 1; }
public boolean initialize() { return true; }
public boolean initialized() { return true; }
public String getConnectionCacheType() { return "FOO"; }

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,47 +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;
/**
* Based on feedback from bug report 4452016, all class loading
* in the ORB is isolated here. It is acceptable to use
* Class.forName only when one is certain that the desired class
* should come from the core JDK.
*/
public class ORBClassLoader
{
public static Class loadClass(String className)
throws ClassNotFoundException
{
return ORBClassLoader.getClassLoader().loadClass(className);
}
public static ClassLoader getClassLoader() {
if (Thread.currentThread().getContextClassLoader() != null)
return Thread.currentThread().getContextClassLoader();
else
return ClassLoader.getSystemClassLoader();
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -90,6 +90,8 @@ import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
import com.sun.corba.se.impl.logging.OMGSystemException ;
import com.sun.corba.se.impl.ior.iiop.JavaSerializationComponent;
import sun.corba.SharedSecrets;
/**
* Handy class full of static functions that don't belong in util.Utility for pure ORB reasons.
*/
@@ -160,44 +162,12 @@ 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)
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();
public static ValueHandler createValueHandler() {
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;
}
}
/**
* Returns true if it was accurately determined that the remote ORB is
* a foreign (non-JavaSoft) ORB. Note: If passed the ORBSingleton, this
@@ -294,8 +264,8 @@ public final class ORBUtility {
{
try {
String name = classNameOf(strm.read_string());
SystemException ex
= (SystemException)ORBClassLoader.loadClass(name).newInstance();
SystemException ex = (SystemException)SharedSecrets.
getJavaCorbaAccess().loadClass(name).newInstance();
ex.minor = strm.read_long();
ex.completed = CompletionStatus.from_int(strm.read_long());
return ex;

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

@@ -151,7 +151,9 @@ public final class RepIdDelegator
}
// Constructor used for factory/utility cases
public RepIdDelegator() {}
public RepIdDelegator() {
this(null);
}
// Constructor used by getIdFromString. All non-static
// RepositoryId methods will use the provided delegate.
@@ -159,7 +161,7 @@ public final class RepIdDelegator
this.delegate = _delegate;
}
private RepositoryId delegate;
private final RepositoryId delegate;
public String toString() {
if (delegate != null)
@@ -174,4 +176,12 @@ public final class RepIdDelegator
else
return super.equals(obj);
}
public int hashCode() {
if (delegate != null) {
return delegate.hashCode();
} else {
return super.hashCode();
}
}
}

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
@@ -26,7 +26,7 @@
orbd.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -port ORBD\uAC00 \uC2DC\uC791\uB418\uC5B4\uC57C \uD558\uB294 \uD65C\uC131 \uD3EC\uD2B8\uB85C, \uAE30\uBCF8\uAC12\uC740 1049\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -defaultdb ORBD \uD30C\uC77C\uC758 \uB514\uB809\uD1A0\uB9AC\uB85C, \uAE30\uBCF8\uAC12\uC740 "./orb.db"\uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -serverid ORBD\uC758 \uC11C\uBC84 ID\uB85C, \uAE30\uBCF8\uAC12\uC740 1 \uC785\uB2C8\uB2E4(\uC120\uD0DD \uC0AC\uD56D).\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
servertool.usage=\uC0AC\uC6A9\uBC95: {0} <options> \n\n\uC5EC\uAE30\uC11C <options>\uB294 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4.\n -ORBInitialPort \uCD08\uAE30 \uD3EC\uD2B8\uC785\uB2C8\uB2E4(\uD544\uC218).\n -ORBInitialHost \uCD08\uAE30 HostName\uC785\uB2C8\uB2E4(\uD544\uC218).\n
servertool.banner=\n\nJava IDL \uC11C\uBC84 \uD234 \uC2DC\uC791 \n\uD504\uB86C\uD504\uD2B8\uC5D0 \uBA85\uB839\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624.\n
servertool.banner=\n\nJava IDL \uC11C\uBC84 \uD234 \uC2DC\uC791 \n\uD504\uB86C\uD504\uD2B8\uC5D0 \uBA85\uB839\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624. \n
servertool.shorthelp=\n\n\t\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uBA85\uB839: \n\t------------------- \n
servertool.baddef=\uC798\uBABB\uB41C \uC11C\uBC84 \uC815\uC758: {0}
servertool.nosuchserver=\t\uD574\uB2F9 \uC11C\uBC84\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.

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) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 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
@@ -1794,8 +1794,7 @@ public class CorbaMessageMediatorImpl
if (msg.getGIOPVersion().lessThan(GIOPVersion.V1_2)) {
// locate msgs 1.0 & 1.1 :=> grow,
// REVISIT - build from factory
outputObject = new CDROutputObject(
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
(ORB) messageMediator.getBroker(),
this,
GIOPVersion.V1_0,
@@ -1804,8 +1803,7 @@ public class CorbaMessageMediatorImpl
ORBConstants.STREAM_FORMAT_VERSION_1);
} else {
// 1.2 :=> stream
// REVISIT - build from factory
outputObject = new CDROutputObject(
outputObject = sun.corba.OutputStreamFactory.newCDROutputObject(
(ORB) messageMediator.getBroker(),
messageMediator,
reply,
@@ -1959,7 +1957,8 @@ public class CorbaMessageMediatorImpl
ReplyMessage.NEEDS_ADDRESSING_MODE,
null, null);
// REVISIT: via acceptor factory.
CDROutputObject outputObject = new CDROutputObject(
CDROutputObject outputObject =
sun.corba.OutputStreamFactory.newCDROutputObject(
(ORB)messageMediator.getBroker(),
this,
messageMediator.getGIOPVersion(),
@@ -2126,7 +2125,7 @@ public class CorbaMessageMediatorImpl
ex.printStackTrace(pw);
pw.flush(); // NOTE: you must flush or baos will be empty.
EncapsOutputStream encapsOutputStream =
new EncapsOutputStream((ORB)mediator.getBroker());
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)mediator.getBroker());
encapsOutputStream.putEndian();
encapsOutputStream.write_wstring(baos.toString());
UnknownServiceContext serviceContext =
@@ -2203,12 +2202,11 @@ public class CorbaMessageMediatorImpl
// REVISIT = do not use null.
//
if (messageMediator.getConnection() == null) {
// REVISIT - needs factory
replyOutputObject =
new CDROutputObject(orb, messageMediator,
messageMediator.getReplyHeader(),
messageMediator.getStreamFormatVersion(),
BufferManagerFactory.GROW);
sun.corba.OutputStreamFactory.newCDROutputObject(orb,
messageMediator, messageMediator.getReplyHeader(),
messageMediator.getStreamFormatVersion(),
BufferManagerFactory.GROW);
} else {
replyOutputObject = messageMediator.getConnection().getAcceptor()
.createOutputObject(messageMediator.getBroker(), messageMediator);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 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
@@ -41,7 +41,6 @@ import com.sun.corba.se.impl.encoding.CDROutputStream;
import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.impl.orbutil.ORBConstants;
import com.sun.corba.se.impl.orbutil.ORBClassLoader;
import com.sun.corba.se.spi.logging.CORBALogDomains ;
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;

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