Changeset 2c3562d for benchmark/schedint


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/schedint/JavaThread.java

    rdd53f75 r2c3562d  
    7575        }
    7676        public static void main(String[] args) throws InterruptedException {
    77                 if ( args.length > 2 ) System.exit( 1 );
    78                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     77                if ( args.length > 1 ) System.exit( 1 );
     78                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    7979
    8080                for (int n = Integer.parseInt("5"); --n >= 0 ; ) {
Note: See TracChangeset for help on using the changeset viewer.