equal
deleted
inserted
replaced
125 _chunks.add(c); |
125 _chunks.add(c); |
126 |
126 |
127 log_debug(metaspace)("SpaceManager %s: allocated new chunk " METACHUNK_FORMAT " for requested word size " SIZE_FORMAT ".", |
127 log_debug(metaspace)("SpaceManager %s: allocated new chunk " METACHUNK_FORMAT " for requested word size " SIZE_FORMAT ".", |
128 _name, METACHUNK_FORMAT_ARGS(c), requested_word_size); |
128 _name, METACHUNK_FORMAT_ARGS(c), requested_word_size); |
129 |
129 |
|
130 // Workaround for JDK-8233019: never return space allocated at a 32bit aligned address |
|
131 if (Settings::do_not_return_32bit_aligned_addresses() && |
|
132 (((intptr_t)c->base()) & 0xFFFFFFFF) == 0) |
|
133 { |
|
134 bool ignored; |
|
135 c->allocate(1, &ignored); |
|
136 } |
|
137 |
130 return c; |
138 return c; |
131 |
139 |
132 } |
140 } |
133 |
141 |
134 void SpaceManager::create_block_freelist() { |
142 void SpaceManager::create_block_freelist() { |