@ -2,7 +2,6 @@ package lip6.jikesrvm.bench;
import java.util.Random ;
import lip6.jikesrvm.bench.Cell ;
import lip6.microbenchs.PapiHighLevel ;
public class Main
{
@ -10,11 +9,6 @@ public class Main
private static Random randomInt ; / / random int to put into the cells
private static Cell head ;
static
{
System . loadLibrary ( "papihighlevel" ) ;
}
public static void main ( String args [ ] )
{
randomInt = new Random ( 424242424242L ) ;
@ -36,20 +30,10 @@ public class Main
newCell . setNext ( head ) ;
head . setPrev ( newCell ) ;
}
if ( PapiHighLevel . initialize_papi ( ) ! = 0 )
{
System . err . println ( "Error while inizializing PAPI" ) ;
java . lang . System . exit ( 1 ) ;
return ;
}
bubbleSort ( ) ;
/* Only the 6 store in the if of the bubbleSort call the write barrier */
if ( PapiHighLevel . print_results ( 6 , NB_ELEM ) ! = 0 )
{
System . err . println ( "Error while getting results" ) ;
java . lang . System . exit ( 2 ) ;
return ;
}
System . out . println ( "Number of loop: " + NB_ELEM ) ;
System . out . println ( "Number of writes per loop: 6" ) ;
}
private static void bubbleSort ( )