Ignore:
Timestamp:
Oct 2, 2020, 11:30:19 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0d72d45
Parents:
dd53f75
Message:

Fized argument passing for benchmarks which don't produce an ELF executable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/JavaThread.java

    rdd53f75 r2c3562d  
    4040        }
    4141        public static void main(String[] args) throws InterruptedException {
    42                 if ( args.length > 2 ) System.exit( 1 );
    43                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     42                if ( args.length > 1 ) System.exit( 1 );
     43                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    4444
    4545                for (int i = Integer.parseInt("5"); --i >= 0 ; ) {
Note: See TracChangeset for help on using the changeset viewer.