test/hotspot/gtest/metaspace/test_spacemanager.cpp
branchstuefe-new-metaspace-branch
changeset 58883 08102295011d
parent 58099 5aeb07390c74
child 59155 b537e6386306
equal deleted inserted replaced
58882:58b20be7bc04 58883:08102295011d
    93       _lock = new Mutex(Monitor::native, "gtest-SpaceManagerTestBed-lock", false, Monitor::_safepoint_check_never);
    93       _lock = new Mutex(Monitor::native, "gtest-SpaceManagerTestBed-lock", false, Monitor::_safepoint_check_never);
    94       {
    94       {
    95         // Pull lock during space creation, since this is what happens in the VM too
    95         // Pull lock during space creation, since this is what happens in the VM too
    96         // (see ClassLoaderData::metaspace_non_null(), which we mimick here).
    96         // (see ClassLoaderData::metaspace_non_null(), which we mimick here).
    97         MutexLocker ml(_lock,  Mutex::_no_safepoint_check_flag);
    97         MutexLocker ml(_lock,  Mutex::_no_safepoint_check_flag);
    98         _sm = new SpaceManager(cm, alloc_sequence, _lock, &_used_counter, "gtest-SpaceManagerTestBed-sm");
    98         _sm = new SpaceManager(cm, alloc_sequence, _lock, &_used_counter, "gtest-SpaceManagerTestBed-sm", false);
    99       }
    99       }
   100     }
   100     }
   101 
   101 
   102     ~SpaceManagerTestBed() {
   102     ~SpaceManagerTestBed() {
   103 
   103