equal
deleted
inserted
replaced
91 // unchanged and false is returned. |
91 // unchanged and false is returned. |
92 bool SpaceManager::allocate_new_current_chunk(size_t requested_word_size) { |
92 bool SpaceManager::allocate_new_current_chunk(size_t requested_word_size) { |
93 |
93 |
94 assert_lock_strong(lock()); |
94 assert_lock_strong(lock()); |
95 |
95 |
96 guarantee(requested_word_size < chklvl::MAX_CHUNK_WORD_SIZE, |
96 guarantee(requested_word_size <= chklvl::MAX_CHUNK_WORD_SIZE, |
97 "Requested size too large (" SIZE_FORMAT ").", requested_word_size); |
97 "Requested size too large (" SIZE_FORMAT ") - max allowed size per allocation is " SIZE_FORMAT ".", |
|
98 requested_word_size, chklvl::MAX_CHUNK_WORD_SIZE); |
98 |
99 |
99 // If we have a current chunk, it should have been retired (almost empty) beforehand. |
100 // If we have a current chunk, it should have been retired (almost empty) beforehand. |
100 // See: retire_current_chunk(). |
101 // See: retire_current_chunk(). |
101 assert(current_chunk() == NULL || current_chunk()->free_below_committed_words() <= 10, "Must retire chunk beforehand"); |
102 assert(current_chunk() == NULL || current_chunk()->free_below_committed_words() <= 10, "Must retire chunk beforehand"); |
102 |
103 |