equal
deleted
inserted
replaced
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 |