/hg/release/icedtea7-forest-2.5/hotspot: 82 new changesets
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Thu Apr 17 16:54:15 UTC 2014
changeset e82a6a7c1e03 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=e82a6a7c1e03
author: chrisphi
date: Wed Apr 16 16:09:05 2014 +0100
Fix accidental reversion of PR1188 for armel
changeset 5853131ba4b4 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=5853131ba4b4
author: katleman
date: Wed Mar 26 09:28:04 2014 -0700
Added tag jdk7u60-b12 for changeset cae50351dcec
changeset 6d29056049f4 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=6d29056049f4
author: katleman
date: Wed Apr 02 09:31:35 2014 -0700
Added tag jdk7u60-b13 for changeset 5853131ba4b4
changeset ee4082d91402 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ee4082d91402
author: mgronlun
date: Thu Mar 27 15:12:56 2014 +0100
8037340: Linux semaphores to use CLOCK_REALTIME
Reviewed-by: dholmes, sla
changeset b226be2040f9 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=b226be2040f9
author: lana
date: Thu Apr 03 14:07:20 2014 -0700
Merge
changeset 7e23c8cbeb8c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=7e23c8cbeb8c
author: katleman
date: Wed Apr 09 08:44:36 2014 -0700
Added tag jdk7u60-b14 for changeset b226be2040f9
changeset 8942207fe300 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=8942207fe300
author: jwilhelm
date: Mon Mar 31 13:22:14 2014 +0200
8037510: CMM Testing: Min/MaxHeapFreeRatio flags should be manageable through the API
Summary: New tests added for manageable Min/MaxHeapFreeRatio
Reviewed-by: jwilhelm, tschatzl
Contributed-by: andrey.x.zakharov at oracle.com
changeset a00a0ed34130 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=a00a0ed34130
author: coffeys
date: Thu Apr 10 09:29:32 2014 +0100
Merge
changeset e2c008218d66 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=e2c008218d66
author: asaha
date: Wed Oct 23 13:53:41 2013 -0700
8027196: Increment minor version of HSx for 7u55 and initialize the build number
Reviewed-by: jcoomes
changeset 10848efaae50 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=10848efaae50
author: asaha
date: Tue Oct 29 09:53:41 2013 -0700
Merge
changeset 291ce272b61e in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=291ce272b61e
author: aeriksso
date: Thu Oct 31 16:49:53 2013 +0100
8026887: Make issues due to failed large pages allocations easier to debug
Reviewed-by: stefank, mcastegr, poonam
changeset db1734313388 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=db1734313388
author: asaha
date: Tue Nov 05 12:03:32 2013 -0800
Merge
changeset be6a1b65ba06 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=be6a1b65ba06
author: asaha
date: Tue Nov 12 09:11:14 2013 -0800
Merge
changeset 5a869822ce57 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=5a869822ce57
author: asaha
date: Tue Nov 19 09:32:43 2013 -0800
Merge
changeset 67c54d2ad34c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=67c54d2ad34c
author: asaha
date: Wed Nov 27 11:19:05 2013 -0800
Merge
changeset fb0e151fb1c6 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=fb0e151fb1c6
author: asaha
date: Wed Dec 04 12:37:34 2013 -0800
Merge
changeset a863ae5351d9 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=a863ae5351d9
author: jrose
date: Thu Dec 05 14:38:53 2013 -0800
8029507: Enhance JVM method processing
8029533: REGRESSION: closed/java/lang/invoke/8008140/Test8008140.java fails against JPRT PIT 17891982 build
8026502: java/lang/invoke/MethodHandleConstants.java fails on all platforms
Summary: update MemberName.clazz correctly in MemberName.resolve; also pass lookupClass to MethodHandles::resolve_MemberName
Reviewed-by: acorn, vlivanov
changeset 496f7585f7d0 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=496f7585f7d0
author: asaha
date: Tue Dec 10 17:15:13 2013 -0800
Merge
changeset dd90f1ad1fe8 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=dd90f1ad1fe8
author: asaha
date: Mon Dec 16 12:12:41 2013 -0800
Added tag jdk7u55-b00 for changeset dee2a38ef6b2
changeset ac0063b4452b in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ac0063b4452b
author: asaha
date: Mon Dec 16 13:04:36 2013 -0800
Merge
changeset 2f09c332de9b in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=2f09c332de9b
author: asaha
date: Mon Dec 16 14:53:36 2013 -0800
Added tag jdk7u55-b01 for changeset ac0063b4452b
changeset ea287a90718f in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ea287a90718f
author: asaha
date: Mon Dec 16 18:49:35 2013 -0800
Merge
changeset 89b9bdf85398 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=89b9bdf85398
author: asaha
date: Fri Dec 20 11:47:26 2013 -0800
Merge
changeset f1a5b7cc078f in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=f1a5b7cc078f
author: asaha
date: Fri Dec 20 14:13:38 2013 -0800
Merge
changeset 408028d410e3 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=408028d410e3
author: asaha
date: Fri Dec 20 21:30:47 2013 -0800
Merge
changeset f80814d92860 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=f80814d92860
author: katleman
date: Tue Dec 24 14:45:55 2013 -0800
Added tag jdk7u55-b02 for changeset 408028d410e3
changeset 50fb91504dd8 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=50fb91504dd8
author: asaha
date: Thu Dec 26 15:50:54 2013 -0800
Merge
changeset ff8e01218d6c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ff8e01218d6c
author: katleman
date: Mon Jan 06 13:56:54 2014 -0800
Added tag jdk7u55-b03 for changeset 50fb91504dd8
changeset 619b904e420a in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=619b904e420a
author: katleman
date: Wed Jan 08 13:23:53 2014 -0800
Added tag jdk7u45-b35 for changeset 12ea8d416f10
changeset 208419914859 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=208419914859
author: asaha
date: Wed Jan 08 14:13:12 2014 -0800
Merge
changeset 46236fe5d1fe in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=46236fe5d1fe
author: asaha
date: Thu Jan 09 07:55:58 2014 -0800
Merge
changeset 3be3b8a032a5 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=3be3b8a032a5
author: dsimms
date: Fri Jan 10 15:38:30 2014 +0100
8029858: Enhance array copies
Summary: Just read the source element once
Reviewed-by: coleenp, ahgross
changeset fa17e3e38bb2 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=fa17e3e38bb2
author: katleman
date: Mon Jan 13 16:14:38 2014 -0800
Added tag jdk7u55-b04 for changeset 3be3b8a032a5
changeset b86119fa2748 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=b86119fa2748
author: kvn
date: Mon Nov 11 11:53:33 2013 -0800
8024830: SEGV in org.apache.lucene.codecs.compressing.CompressingTermVectorsReader.get
Summary: Exclude last input argument's stack slots from vector's spilling masks.
Reviewed-by: iveresov
changeset 260d919d52e5 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=260d919d52e5
author: katleman
date: Wed Jan 22 10:06:30 2014 -0800
Added tag jdk7u55-b05 for changeset b86119fa2748
changeset 8cf6e0a3a065 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=8cf6e0a3a065
author: katleman
date: Tue Jan 28 11:49:28 2014 -0800
Added tag jdk7u55-b06 for changeset 260d919d52e5
changeset 049fd2cef85b in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=049fd2cef85b
author: katleman
date: Tue Feb 04 13:11:50 2014 -0800
Added tag jdk7u55-b07 for changeset 8cf6e0a3a065
changeset 9047d04b307a in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=9047d04b307a
author: asaha
date: Thu Feb 06 10:14:20 2014 -0800
Merge
changeset bb5f0b751dcf in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=bb5f0b751dcf
author: katleman
date: Tue Feb 11 13:11:16 2014 -0800
Added tag jdk7u55-b08 for changeset 049fd2cef85b
changeset 6943ae02fb04 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=6943ae02fb04
author: asaha
date: Tue Feb 11 15:11:53 2014 -0800
Merge
changeset 3c2420a7014b in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=3c2420a7014b
author: asaha
date: Wed Feb 12 16:08:15 2014 -0800
Merge
changeset 9b238ab164e6 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=9b238ab164e6
author: miroslawzn
date: Thu Jan 30 10:50:11 2014 -0800
8022452: Hotspot needs to know about Windows 8.1 and Windows Server 2012 R2
Reviewed-by: coleenp, ctornqvi
changeset 573d8d080af9 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=573d8d080af9
author: katleman
date: Tue Feb 18 12:41:17 2014 -0800
Added tag jdk7u55-b09 for changeset 9b238ab164e6
changeset 36f8bd4dd467 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=36f8bd4dd467
author: katleman
date: Tue Feb 18 13:36:09 2014 -0800
Added tag jdk7u55-b09 for changeset 573d8d080af9
changeset bb7ef0de23c2 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=bb7ef0de23c2
author: asaha
date: Wed Feb 19 12:14:47 2014 -0800
Merge
changeset efa6b5e1980a in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=efa6b5e1980a
author: asaha
date: Wed Feb 19 14:36:03 2014 -0800
Merge
changeset a54bc521a3b8 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=a54bc521a3b8
author: asaha
date: Tue Feb 25 11:38:12 2014 -0800
Merge
changeset 4adb2ebfcf54 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=4adb2ebfcf54
author: katleman
date: Tue Feb 25 12:20:03 2014 -0800
Added tag jdk7u55-b10 for changeset 36f8bd4dd467
changeset e325ae91a061 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=e325ae91a061
author: asaha
date: Tue Feb 25 13:52:09 2014 -0800
Merge
changeset beeaee2df810 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=beeaee2df810
author: asaha
date: Thu Feb 27 08:30:16 2014 -0800
Merge
changeset 49f4a81eabd5 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=49f4a81eabd5
author: asaha
date: Mon Mar 03 11:56:00 2014 -0800
Merge
changeset bc52bce9e569 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=bc52bce9e569
author: asaha
date: Mon Mar 03 09:19:30 2014 -0800
8036147: Increment hsx 24.55 build to b02 for 7u55-b11
Reviewed-by: jcoomes
changeset 49cada8e39b9 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=49cada8e39b9
author: dholmes
date: Fri Feb 28 17:30:14 2014 +0000
8014460: Need to check for non-empty EXT_LIBS_PATH before using it
Reviewed-by: tbell, collins, sla, coleenp
changeset 2c47e6310e00 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=2c47e6310e00
author: katleman
date: Tue Mar 04 12:01:41 2014 -0800
Added tag jdk7u55-b11 for changeset 49cada8e39b9
changeset ae99b9328cf3 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ae99b9328cf3
author: asaha
date: Tue Mar 04 15:35:18 2014 -0800
Merge
changeset 939f46908506 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=939f46908506
author: asaha
date: Wed Mar 05 13:25:01 2014 -0800
Merge
changeset 67a853a5a05c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=67a853a5a05c
author: asaha
date: Thu Mar 06 13:40:24 2014 -0800
8036837: Increment hsx 24.55 build to b03 for 7u55-b12
Reviewed-by: jcoomes
changeset 8cc154e4a3d6 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=8cc154e4a3d6
author: poonam
date: Fri Feb 28 02:45:17 2014 -0800
8035283: Second phase of branch shortening doesn't account for loop alignment
Summary: added missing check for loop padding case.
Reviewed-by: kvn, jrose
changeset aadc864abd1c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=aadc864abd1c
author: hseigel
date: Thu Feb 20 13:51:45 2014 -0500
8034926: Attribute classes properly
Summary: Add check to prevent underflow
Reviewed-by: coleenp, ahgross
changeset b021fd817a01 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=b021fd817a01
author: katleman
date: Tue Mar 11 12:59:26 2014 -0700
Added tag jdk7u55-b12 for changeset aadc864abd1c
changeset 58499c7a5175 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=58499c7a5175
author: asaha
date: Tue Mar 11 13:58:48 2014 -0700
Merge
changeset 6a517d8dd231 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=6a517d8dd231
author: asaha
date: Wed Mar 12 14:49:04 2014 -0700
Merge
changeset d27b468d5f3b in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=d27b468d5f3b
author: katleman
date: Tue Mar 18 12:07:41 2014 -0700
Added tag jdk7u55-b13 for changeset b021fd817a01
changeset e9e1d7b07b68 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=e9e1d7b07b68
author: katleman
date: Fri Feb 14 08:59:13 2014 -0800
Added tag jdk7u51-b33 for changeset 208419914859
changeset f5a68bb4e4f6 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=f5a68bb4e4f6
author: asaha
date: Fri Feb 28 07:55:01 2014 -0800
8036027: Increment hsx 24.51 build to b04 for 7u51-b34
Reviewed-by: jcoomes
changeset f8457a75bdb5 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=f8457a75bdb5
author: poonam
date: Fri Feb 28 02:45:17 2014 -0800
8035283: Second phase of branch shortening doesn't account for loop alignment
Summary: added missing check for loop padding case.
Reviewed-by: kvn, jrose
changeset eeed79e84166 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=eeed79e84166
author: katleman
date: Fri Feb 28 17:23:01 2014 -0800
Added tag jdk7u51-b34 for changeset f8457a75bdb5
changeset 817559986488 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=817559986488
author: asaha
date: Tue Mar 18 12:31:20 2014 -0700
Merge
changeset 78a3bb888434 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=78a3bb888434
author: asaha
date: Tue Mar 18 12:57:51 2014 -0700
Merge
changeset 294deedf70e3 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=294deedf70e3
author: asaha
date: Wed Mar 19 10:19:00 2014 -0700
Merge
changeset ecb1cffb30e4 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ecb1cffb30e4
author: asaha
date: Wed Mar 26 21:25:09 2014 -0700
Merge
changeset f7eff46b1418 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=f7eff46b1418
author: katleman
date: Thu Mar 27 11:36:40 2014 -0700
Added tag jdk7u55-b31 for changeset 817559986488
changeset dff9147a7816 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=dff9147a7816
author: katleman
date: Thu Mar 27 11:23:03 2014 -0700
Added tag jdk7u55-b30 for changeset d27b468d5f3b
changeset ba9270b8fb1f in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ba9270b8fb1f
author: asaha
date: Thu Mar 27 11:55:57 2014 -0700
Merge
changeset de98b3410d60 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=de98b3410d60
author: asaha
date: Thu Mar 27 12:07:27 2014 -0700
Merge
changeset aae8da94a741 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=aae8da94a741
author: asaha
date: Wed Apr 02 09:45:54 2014 -0700
Merge
changeset 2793b550b13e in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=2793b550b13e
author: asaha
date: Wed Apr 09 09:43:02 2014 -0700
Merge
changeset 24f291386c96 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=24f291386c96
author: asaha
date: Mon Apr 14 10:53:36 2014 -0700
Merge
changeset 4e73c6403b44 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=4e73c6403b44
author: katleman
date: Tue Apr 15 11:49:52 2014 -0700
Added tag jdk7u55-b14 for changeset dff9147a7816
changeset 2871f345b7e5 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=2871f345b7e5
author: asaha
date: Tue Apr 15 12:34:03 2014 -0700
Merge
changeset ec76bacbb5b9 in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=ec76bacbb5b9
author: katleman
date: Wed Apr 16 12:26:14 2014 -0700
Added tag jdk7u60-b15 for changeset 2871f345b7e5
changeset 6dfe2b3e243c in /hg/release/icedtea7-forest-2.5/hotspot
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5/hotspot?cmd=changeset;node=6dfe2b3e243c
author: andrew
date: Thu Apr 17 17:52:25 2014 +0100
Merge jdk7u60-b15
diffstat:
.hgtags | 25 ++
make/bsd/makefiles/arm.make | 6 +-
make/linux/makefiles/arm.make | 6 +-
src/cpu/zero/vm/cppInterpreter_arm.S | 2 +-
src/os/linux/vm/os_linux.cpp | 20 +-
src/share/vm/classfile/classFileParser.cpp | 7 +-
src/share/vm/oops/objArrayKlass.cpp | 2 +-
src/share/vm/opto/output.cpp | 15 +-
test/gc/arguments/TestDynMaxHeapFreeRatio.java | 64 +++++
test/gc/arguments/TestDynMinHeapFreeRatio.java | 62 +++++
test/testlibrary/com/oracle/java/testlibrary/DynamicVMOptionChecker.java | 111 ++++++++++
test/testlibrary/com/oracle/java/testlibrary/TestDynamicVMOption.java | 95 ++++++++
12 files changed, 404 insertions(+), 11 deletions(-)
diffs (truncated from 573 to 500 lines):
diff -r f4abc2022f98 -r 6dfe2b3e243c .hgtags
--- a/.hgtags Wed Apr 02 20:04:16 2014 +0100
+++ b/.hgtags Thu Apr 17 17:52:25 2014 +0100
@@ -607,6 +607,7 @@
cc83359f5e5eb46dd9176b0a272390b1a0a51fdc hs24.60-b01
c373a733d5d5147f99eaa2b91d6b937c28214fc9 jdk7u45-b33
0bcb43482f2ac5615437541ffb8dc0f79ece3148 jdk7u45-b34
+12ea8d416f105f5971c808c89dddc1006bfc4c53 jdk7u45-b35
429884602206fcf5314c8b953c06d54d337558ca jdk7u51-b00
68f03ff066f2341b89b52a6d6e21ae09de008351 jdk7u51-b01
67910a581eca113847c5320c49436a9816c5d5c6 jdk7u51-b02
@@ -623,6 +624,26 @@
6c6a2299029ad02fa2820b8ff8c61c2bbcae799c jdk7u51-b13
a398ddc79d2310ad37b131cc3794b3cf574f088e jdk7u51-b30
cf4110c35afb10456d8264c47b7cde1c20150cab jdk7u51-b31
+208419914859dd77abdb5ec755b32c237ee6e4eb jdk7u51-b33
+f8457a75bdb5052f1d8c547027a926f9b755b808 jdk7u51-b34
+dee2a38ef6b26534c44c550ef4da2c3146c612c2 jdk7u55-b00
+ac0063b4452bc724e8648e64f4b2d495054bb308 jdk7u55-b01
+408028d410e316a99495c42df0031018890c22fe jdk7u55-b02
+50fb91504dd8cdf410eb956075442daf3aacf1db jdk7u55-b03
+3be3b8a032a5508646c1c5620cee18d3e69fc708 jdk7u55-b04
+b86119fa2748bd91ae4984ff2264da92b6626f8c jdk7u55-b05
+260d919d52e500a0b20f911fade2a7710474067a jdk7u55-b06
+8cf6e0a3a0651c4132ae034c2b68ddf4eb5c4d88 jdk7u55-b07
+049fd2cef85bf2d557dd7dd8a90a6831a8168ce4 jdk7u55-b08
+9b238ab164e6d1cf9cfb560827d88ef8a7d8c898 jdk7u55-b09
+573d8d080af9eff48aa3b8f0696d8874ce36fbb1 jdk7u55-b09
+36f8bd4dd467ae4183340842fd7158ac3309b826 jdk7u55-b10
+49cada8e39b9215b9fd8b9183743f92625587cfc jdk7u55-b11
+aadc864abd1ced3049bf59ce32786a07997ba190 jdk7u55-b12
+b021fd817a0177b31d1e3d65127a27458e85801e jdk7u55-b13
+d27b468d5f3be3329ff1ff342f3347e6b2e0303b jdk7u55-b30
+dff9147a781672f20bb0577a94233264ea4a95d1 jdk7u55-b14
+8175599864880938d68d0a515fa561043d7d5fd0 jdk7u55-b31
ae4adc1492d1c90a70bd2d139a939fc0c8329be9 jdk7u60-b00
af1fc2868a2b919727bfbb0858449bd991bbee4a jdk7u40-b60
cc83359f5e5eb46dd9176b0a272390b1a0a51fdc hs24.60-b01
@@ -647,3 +668,7 @@
6f74afd8577eb4b6a0e6f7b25cfef7d6f7d92e5f jdk7u60-b10
a2ac67a2c1cc867a8d6b525ab1df17204186e636 jdk7u60-b11
903304e152fc584b85cbf241fd293f8dcf1c6605 icedtea-2.5pre03
+cae50351dcece6e5bf215eabf958c5d669ffff1f jdk7u60-b12
+5853131ba4b448c5d89a3f0aa501fdf07f3b473c jdk7u60-b13
+b226be2040f971855626f5b88cb41a7d5299fea0 jdk7u60-b14
+2871f345b7e5585e20dc7aa91035967fe774cfba jdk7u60-b15
diff -r f4abc2022f98 -r 6dfe2b3e243c make/bsd/makefiles/arm.make
--- a/make/bsd/makefiles/arm.make Wed Apr 02 20:04:16 2014 +0100
+++ b/make/bsd/makefiles/arm.make Thu Apr 17 17:52:25 2014 +0100
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2008, 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
@@ -24,6 +24,8 @@
Obj_Files += bsd_arm.o
-LIBS += $(EXT_LIBS_PATH)/sflt_glibc.a
+ifneq ($(EXT_LIBS_PATH),)
+ LIBS += $(EXT_LIBS_PATH)/sflt_glibc.a
+endif
CFLAGS += -DVM_LITTLE_ENDIAN
diff -r f4abc2022f98 -r 6dfe2b3e243c make/linux/makefiles/arm.make
--- a/make/linux/makefiles/arm.make Wed Apr 02 20:04:16 2014 +0100
+++ b/make/linux/makefiles/arm.make Thu Apr 17 17:52:25 2014 +0100
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2008, 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
@@ -24,6 +24,8 @@
Obj_Files += linux_arm.o
-LIBS += $(EXT_LIBS_PATH)/sflt_glibc.a
+ifneq ($(EXT_LIBS_PATH),)
+ LIBS += $(EXT_LIBS_PATH)/sflt_glibc.a
+endif
CFLAGS += -DVM_LITTLE_ENDIAN
diff -r f4abc2022f98 -r 6dfe2b3e243c src/cpu/zero/vm/cppInterpreter_arm.S
--- a/src/cpu/zero/vm/cppInterpreter_arm.S Wed Apr 02 20:04:16 2014 +0100
+++ b/src/cpu/zero/vm/cppInterpreter_arm.S Thu Apr 17 17:52:25 2014 +0100
@@ -367,7 +367,7 @@
flds s1, [stack, #4]
add stack, #4
#else
- POP r0
+ POP r1
#endif
.endm
diff -r f4abc2022f98 -r 6dfe2b3e243c src/os/linux/vm/os_linux.cpp
--- a/src/os/linux/vm/os_linux.cpp Wed Apr 02 20:04:16 2014 +0100
+++ b/src/os/linux/vm/os_linux.cpp Thu Apr 17 17:52:25 2014 +0100
@@ -128,6 +128,8 @@
#define MAX_PATH (2 * K)
+#define MAX_SECS 100000000
+
// for timer info max values which include all bits
#define ALL_64_BITS CONST64(0xFFFFFFFFFFFFFFFF)
@@ -2531,7 +2533,6 @@
sem_t _semaphore;
};
-
Semaphore::Semaphore() {
sem_init(&_semaphore, 0, 0);
}
@@ -2553,8 +2554,22 @@
}
bool Semaphore::timedwait(unsigned int sec, int nsec) {
+
struct timespec ts;
- unpackTime(&ts, false, (sec * NANOSECS_PER_SEC) + nsec);
+ // Semaphore's are always associated with CLOCK_REALTIME
+ os::Linux::clock_gettime(CLOCK_REALTIME, &ts);
+ // see unpackTime for discussion on overflow checking
+ if (sec >= MAX_SECS) {
+ ts.tv_sec += MAX_SECS;
+ ts.tv_nsec = 0;
+ } else {
+ ts.tv_sec += sec;
+ ts.tv_nsec += nsec;
+ if (ts.tv_nsec >= NANOSECS_PER_SEC) {
+ ts.tv_nsec -= NANOSECS_PER_SEC;
+ ++ts.tv_sec; // note: this must be <= max_secs
+ }
+ }
while (1) {
int result = sem_timedwait(&_semaphore, &ts);
@@ -5875,7 +5890,6 @@
* is no need to track notifications.
*/
-#define MAX_SECS 100000000
/*
* This code is common to linux and solaris and will be moved to a
* common place in dolphin.
diff -r f4abc2022f98 -r 6dfe2b3e243c src/share/vm/classfile/classFileParser.cpp
--- a/src/share/vm/classfile/classFileParser.cpp Wed Apr 02 20:04:16 2014 +0100
+++ b/src/share/vm/classfile/classFileParser.cpp Thu Apr 17 17:52:25 2014 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, 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
@@ -2661,6 +2661,11 @@
"Short length on BootstrapMethods in class file %s",
CHECK);
+ guarantee_property(attribute_byte_length > sizeof(u2),
+ "Invalid BootstrapMethods attribute length %u in class file %s",
+ attribute_byte_length,
+ CHECK);
+
// The attribute contains a counted array of counted tuples of shorts,
// represending bootstrap specifiers:
// length*{bootstrap_method_index, argument_count*{argument_index}}
diff -r f4abc2022f98 -r 6dfe2b3e243c src/share/vm/oops/objArrayKlass.cpp
--- a/src/share/vm/oops/objArrayKlass.cpp Wed Apr 02 20:04:16 2014 +0100
+++ b/src/share/vm/oops/objArrayKlass.cpp Thu Apr 17 17:52:25 2014 +0100
@@ -149,7 +149,7 @@
if (element_is_null ||
Klass::cast((new_val->klass()))->is_subtype_of(bound)) {
bs->write_ref_field_pre(p, new_val);
- *p = *from;
+ *p = element;
} else {
// We must do a barrier to cover the partial copy.
const size_t pd = pointer_delta(p, dst, (size_t)heapOopSize);
diff -r f4abc2022f98 -r 6dfe2b3e243c src/share/vm/opto/output.cpp
--- a/src/share/vm/opto/output.cpp Wed Apr 02 20:04:16 2014 +0100
+++ b/src/share/vm/opto/output.cpp Thu Apr 17 17:52:25 2014 +0100
@@ -345,6 +345,11 @@
uint* jmp_offset = NEW_RESOURCE_ARRAY(uint,nblocks);
uint* jmp_size = NEW_RESOURCE_ARRAY(uint,nblocks);
int* jmp_nidx = NEW_RESOURCE_ARRAY(int ,nblocks);
+
+ // Collect worst case block paddings
+ int* block_worst_case_pad = NEW_RESOURCE_ARRAY(int, nblocks);
+ memset(block_worst_case_pad, 0, nblocks * sizeof(int));
+
DEBUG_ONLY( uint *jmp_target = NEW_RESOURCE_ARRAY(uint,nblocks); )
DEBUG_ONLY( uint *jmp_rule = NEW_RESOURCE_ARRAY(uint,nblocks); )
@@ -461,6 +466,7 @@
last_avoid_back_to_back_adr += max_loop_pad;
}
blk_size += max_loop_pad;
+ block_worst_case_pad[i + 1] = max_loop_pad;
}
}
@@ -500,9 +506,16 @@
if (bnum > i) { // adjust following block's offset
offset -= adjust_block_start;
}
+
+ // This block can be a loop header, account for the padding
+ // in the previous block.
+ int block_padding = block_worst_case_pad[i];
+ assert(i == 0 || block_padding == 0 || br_offs >= block_padding, "Should have at least a padding on top");
// In the following code a nop could be inserted before
// the branch which will increase the backward distance.
- bool needs_padding = ((uint)br_offs == last_may_be_short_branch_adr);
+ bool needs_padding = ((uint)(br_offs - block_padding) == last_may_be_short_branch_adr);
+ assert(!needs_padding || jmp_offset[i] == 0, "padding only branches at the beginning of block");
+
if (needs_padding && offset <= 0)
offset -= nop_size;
diff -r f4abc2022f98 -r 6dfe2b3e243c test/gc/arguments/TestDynMaxHeapFreeRatio.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/gc/arguments/TestDynMaxHeapFreeRatio.java Thu Apr 17 17:52:25 2014 +0100
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/**
+ * @test TestDynMaxHeapFreeRatio
+ * @bug 8028391
+ * @summary Verify that MaxHeapFreeRatio flag is manageable
+ * @library /testlibrary
+ * @run main TestDynMaxHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 TestDynMaxHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=50 -XX:-UseAdaptiveSizePolicy TestDynMaxHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=50 TestDynMaxHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=51 -XX:MaxHeapFreeRatio=52 TestDynMaxHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=75 -XX:MaxHeapFreeRatio=100 TestDynMaxHeapFreeRatio
+ */
+import com.oracle.java.testlibrary.TestDynamicVMOption;
+import com.oracle.java.testlibrary.DynamicVMOptionChecker;
+
+public class TestDynMaxHeapFreeRatio extends TestDynamicVMOption {
+
+ public static final String MinFreeRatioFlagName = "MinHeapFreeRatio";
+ public static final String MaxFreeRatioFlagName = "MaxHeapFreeRatio";
+
+ public TestDynMaxHeapFreeRatio() {
+ super(MaxFreeRatioFlagName);
+ }
+
+ public void test() {
+
+ int minHeapFreeValue = DynamicVMOptionChecker.getIntValue(MinFreeRatioFlagName);
+ System.out.println(MinFreeRatioFlagName + " = " + minHeapFreeValue);
+
+ testPercentageValues();
+
+ checkInvalidValue(Integer.toString(minHeapFreeValue - 1));
+ checkValidValue(Integer.toString(minHeapFreeValue));
+ checkValidValue("100");
+ }
+
+ public static void main(String args[]) throws Exception {
+ new TestDynMaxHeapFreeRatio().test();
+ }
+
+}
diff -r f4abc2022f98 -r 6dfe2b3e243c test/gc/arguments/TestDynMinHeapFreeRatio.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/gc/arguments/TestDynMinHeapFreeRatio.java Thu Apr 17 17:52:25 2014 +0100
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/**
+ * @test TestDynMinHeapFreeRatio
+ * @bug 8028391
+ * @summary Verify that MinHeapFreeRatio flag is manageable
+ * @library /testlibrary
+ * @run main TestDynMinHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 TestDynMinHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=50 -XX:-UseAdaptiveSizePolicy TestDynMinHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=50 TestDynMinHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=51 -XX:MaxHeapFreeRatio=52 TestDynMinHeapFreeRatio
+ * @run main/othervm -XX:MinHeapFreeRatio=75 -XX:MaxHeapFreeRatio=100 TestDynMinHeapFreeRatio
+ */
+import com.oracle.java.testlibrary.TestDynamicVMOption;
+import com.oracle.java.testlibrary.DynamicVMOptionChecker;
+
+public class TestDynMinHeapFreeRatio extends TestDynamicVMOption {
+
+ public static final String MinFreeRatioFlagName = "MinHeapFreeRatio";
+ public static final String MaxFreeRatioFlagName = "MaxHeapFreeRatio";
+
+ public TestDynMinHeapFreeRatio() {
+ super(MinFreeRatioFlagName);
+ }
+
+ public void test() {
+ int maxHeapFreeValue = DynamicVMOptionChecker.getIntValue(MaxFreeRatioFlagName);
+ System.out.println(MaxFreeRatioFlagName + " = " + maxHeapFreeValue);
+
+ testPercentageValues();
+
+ checkInvalidValue(Integer.toString(maxHeapFreeValue + 1));
+ checkValidValue(Integer.toString(maxHeapFreeValue));
+ checkValidValue("0");
+ }
+
+ public static void main(String args[]) throws Exception {
+ new TestDynMinHeapFreeRatio().test();
+ }
+}
diff -r f4abc2022f98 -r 6dfe2b3e243c test/testlibrary/com/oracle/java/testlibrary/DynamicVMOptionChecker.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/testlibrary/com/oracle/java/testlibrary/DynamicVMOptionChecker.java Thu Apr 17 17:52:25 2014 +0100
@@ -0,0 +1,111 @@
+/*
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package com.oracle.java.testlibrary;
+
+import com.sun.management.HotSpotDiagnosticMXBean;
+import com.sun.management.VMOption;
+import java.lang.management.ManagementFactory;
+
+/**
+ * Simple class to check writeability, invalid and valid values for VMOption
+ */
+public class DynamicVMOptionChecker {
+
+ /**
+ * Reads VM option from PlatformMXBean and parse it to integer value
+ *
+ * @param name of option
+ * @return parsed value
+ */
+ public static int getIntValue(String name) {
+
+ VMOption option = ManagementFactory.
+ getPlatformMXBean(HotSpotDiagnosticMXBean.class).
+ getVMOption(name);
+
+ return Integer.parseInt(option.getValue());
+ }
+
+ /**
+ * Checks that VM option is dynamically writable
+ *
+ * @param name
+ * @throws RuntimeException if option if not writable
+ * @return always true
+ */
+ public static boolean checkIsWritable(String name) {
+ VMOption option = ManagementFactory.
+ getPlatformMXBean(HotSpotDiagnosticMXBean.class).
+ getVMOption(name);
+
+ if (!option.isWriteable()) {
+ throw new RuntimeException(name + " is not writable");
+ }
+
+ return true;
+ }
+
+ /**
+ * Checks that value cannot be set
+ *
+ * @param name of flag
+ * @param value string representation of value to set
+ * @throws RuntimeException on error - when expected exception hasn't been thrown
+ */
+ public static void checkInvalidValue(String name, String value) {
+ // should throw
+ try {
+ ManagementFactory.
+ getPlatformMXBean(HotSpotDiagnosticMXBean.class).
+ setVMOption(name, value);
+
+ } catch (IllegalArgumentException e) {
+ return;
+ }
+
+ throw new RuntimeException("Expected IllegalArgumentException was not thrown, " + name + "= " + value);
+ }
+
+ /**
+ * Checks that value can be set
+ *
+ * @param name of flag to set
+ * @param value string representation of value to set
+ * @throws RuntimeException on error - when value in VM is not equal to origin
+ */
+ public static void checkValidValue(String name, String value) {
+ ManagementFactory.
+ getPlatformMXBean(HotSpotDiagnosticMXBean.class).
+ setVMOption(name, value);
+
+ VMOption option = ManagementFactory.
+ getPlatformMXBean(HotSpotDiagnosticMXBean.class).
+ getVMOption(name);
+
+ if (!option.getValue().equals(value)) {
+ throw new RuntimeException("Actual value of " + name + " \"" + option.getValue()
+ + "\" not equal origin \"" + value + "\"");
+ }
+ }
+
+}
diff -r f4abc2022f98 -r 6dfe2b3e243c test/testlibrary/com/oracle/java/testlibrary/TestDynamicVMOption.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/testlibrary/com/oracle/java/testlibrary/TestDynamicVMOption.java Thu Apr 17 17:52:25 2014 +0100
@@ -0,0 +1,95 @@
+/*
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
More information about the distro-pkg-dev
mailing list