< prev index next >

src/hotspot/share/libadt/vectset.hpp

Print this page
@@ -50,10 +50,11 @@
  
    void init(Arena* arena);
  
    // Grow vector to required word capacity
    void maybe_grow(uint new_word_capacity) {
+     _nesting.check(_set_arena); // Check if a potential reallocation in the arena is safe
      if (new_word_capacity >= _size) {
        grow(new_word_capacity);
      }
    }
    void grow(uint new_word_capacity);
< prev index next >