src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp

changeset 5166
7c5a1b62f53d
parent 5163
28e53b8db94f
child 5369
71180a6e5080
     1.1 --- a/src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp	Tue May 21 11:30:14 2013 +0200
     1.2 +++ b/src/share/vm/gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.cpp	Wed May 22 08:04:58 2013 +0200
     1.3 @@ -153,8 +153,6 @@
     1.4        _indexedFreeListParLocks[i] = new Mutex(Mutex::leaf - 1, // == ExpandHeap_lock - 1
     1.5                                                "a freelist par lock",
     1.6                                                true);
     1.7 -      if (_indexedFreeListParLocks[i] == NULL)
     1.8 -        vm_exit_during_initialization("Could not allocate a par lock");
     1.9        DEBUG_ONLY(
    1.10          _indexedFreeList[i].set_protecting_lock(_indexedFreeListParLocks[i]);
    1.11        )
    1.12 @@ -1763,7 +1761,7 @@
    1.13    }
    1.14    ec->set_size(size);
    1.15    debug_only(ec->mangleFreed(size));
    1.16 -  if (size < SmallForDictionary) {
    1.17 +  if (size < SmallForDictionary && ParallelGCThreads != 0) {
    1.18      lock = _indexedFreeListParLocks[size];
    1.19    }
    1.20    MutexLockerEx x(lock, Mutex::_no_safepoint_check_flag);

mercurial