- Timestamp:
- 08/06/13 05:18:20 (9 years ago)
- Location:
- Tests/JAVA/test
- Files:
-
- 2 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Tests/JAVA/test/pom.xml
r566 r579 79 79 80 80 <dependencies> 81 <dependency> 82 <groupId>org.openjdk.jmh</groupId> 83 <artifactId>jmh-core</artifactId> 84 <version>1.0-SNAPSHOT</version> 85 </dependency> 81 86 <!-- testing support --> 82 87 <dependency> … … 298 303 <groupId>org.apache.maven.plugins</groupId> 299 304 <artifactId>maven-compiler-plugin</artifactId> 300 <version> 2.0.2</version>305 <version>3.1</version> 301 306 <configuration> 302 307 <source>1.6</source> … … 306 311 </plugin> 307 312 <plugin> 313 <groupId>org.apache.maven.plugins</groupId> 314 <artifactId>maven-shade-plugin</artifactId> 315 <executions> 316 <execution> 317 <phase>package</phase> 318 <goals> 319 <goal>shade</goal> 320 </goals> 321 <configuration> 322 <finalName>microbenchmarks</finalName> 323 <transformers> 324 <transformer 325 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 326 <mainClass>org.openjdk.jmh.Main</mainClass> 327 </transformer> 328 </transformers> 329 </configuration> 330 </execution> 331 </executions> 332 </plugin> 333 <!--<plugin> 308 334 <groupId>org.apache.maven.plugins</groupId> 309 335 <artifactId>maven-shade-plugin</artifactId> … … 344 370 </execution> 345 371 </executions> 346 </plugin> 372 </plugin>--> 347 373 </plugins> 348 374 </build> -
Tests/JAVA/test/src/main/java/test/threads/UnsafeAtomicIntegerFieldUpdater.java
r563 r579 26 26 final String fieldName ) { 27 27 final Field field; 28 final Class caller;28 // final Class caller; 29 29 final int modifiers; 30 30 try { 31 31 field = targetClass.getDeclaredField( fieldName ); 32 caller = sun.reflect.Reflection.getCallerClass( 3 );32 // caller = sun.reflect.Reflection.getCallerClass( 3 ); 33 33 modifiers = field.getModifiers(); 34 sun.reflect.misc.ReflectUtil.ensureMemberAccess(35 caller,36 targetClass,37 null,38 modifiers39 );40 sun.reflect.misc.ReflectUtil.checkPackageAccess( targetClass );34 // sun.reflect.misc.ReflectUtil.ensureMemberAccess( 35 // caller, 36 // targetClass, 37 // null, 38 // modifiers 39 // ); 40 // sun.reflect.misc.ReflectUtil.checkPackageAccess( targetClass ); 41 41 } catch( Exception ex ) { 42 42 throw new RuntimeException( ex ); -
Tests/JAVA/test/src/main/java/test/threads/UnsafeAtomicLongFieldUpdater.java
r563 r579 26 26 final String fieldName ) { 27 27 final Field field; 28 final Class caller;28 // final Class caller; 29 29 final int modifiers; 30 30 try { 31 31 field = targetClass.getDeclaredField( fieldName ); 32 caller = sun.reflect.Reflection.getCallerClass( 3 );32 // caller = sun.reflect.Reflection.getCallerClass( 3 ); 33 33 modifiers = field.getModifiers(); 34 sun.reflect.misc.ReflectUtil.ensureMemberAccess(35 caller,36 targetClass,37 null,38 modifiers39 );40 sun.reflect.misc.ReflectUtil.checkPackageAccess( targetClass );34 // sun.reflect.misc.ReflectUtil.ensureMemberAccess( 35 // caller, 36 // targetClass, 37 // null, 38 // modifiers 39 // ); 40 // sun.reflect.misc.ReflectUtil.checkPackageAccess( targetClass ); 41 41 } catch( Exception ex ) { 42 42 throw new RuntimeException( ex ); -
Tests/JAVA/test/src/main/java/test/threads/experiment2/Main.java
r578 r579 23 23 private static final int TURNS = Integer.getInteger( "turns", 1 << 20 ); 24 24 25 private static final int DATA_SIZE_EXP = Integer.getInteger( "data-size-exp", 1 2);25 private static final int DATA_SIZE_EXP = Integer.getInteger( "data-size-exp", 14 ); 26 26 private static final int DATA_SIZE = 1 << DATA_SIZE_EXP; 27 27 28 28 29 29 private static final int OPS_PER_MESSAGE = 128; 30 private static final int OPS_ARRAY_STEP = 8;30 private static final int OPS_ARRAY_STEP = 127; 31 31 32 32 private static final ThreadAffinityService AFFINITY_SERVICE = ThreadAffinityUtils.defaultAffinityService();
Note: See TracChangeset
for help on using the changeset viewer.