src/share/vm/gc_implementation/parNew/parCardTableModRefBS.cpp

changeset 1280
df6caf649ff7
parent 435
a61af66fc99e
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/parNew/parCardTableModRefBS.cpp	Fri Jul 10 16:01:20 2009 -0700
     1.2 +++ b/src/share/vm/gc_implementation/parNew/parCardTableModRefBS.cpp	Tue Jul 14 15:40:39 2009 -0700
     1.3 @@ -31,9 +31,10 @@
     1.4                                                          bool clear,
     1.5                                                          int n_threads) {
     1.6    if (n_threads > 0) {
     1.7 -    assert(n_threads == (int)ParallelGCThreads, "# worker threads != # requested!");
     1.8 -
     1.9 -      // Make sure the LNC array is valid for the space.
    1.10 +    assert((n_threads == 1 && ParallelGCThreads == 0) ||
    1.11 +           n_threads <= (int)ParallelGCThreads,
    1.12 +           "# worker threads != # requested!");
    1.13 +    // Make sure the LNC array is valid for the space.
    1.14      jbyte**   lowest_non_clean;
    1.15      uintptr_t lowest_non_clean_base_chunk_index;
    1.16      size_t    lowest_non_clean_chunk_size;

mercurial