< prev index next >

src/hotspot/share/oops/array.hpp

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -53,10 +53,15 @@
   private:
    NONCOPYABLE(Array);
  
    inline void* operator new(size_t size, ClassLoaderData* loader_data, int length, TRAPS) throw();
  
+   inline void* operator new(size_t size, ClassLoaderData* loader_data, int length) throw();
+ 
+ // Work-around -- see JDK-8331086
+   inline void* operator new(size_t size, int length, MemTag flags) throw();
+ 
    static size_t byte_sizeof(int length, size_t elm_byte_size) {
      return sizeof(Array<T>) + MAX2(length - 1, 0) * elm_byte_size;
    }
    static size_t byte_sizeof(int length) { return byte_sizeof(length, sizeof(T)); }
  
< prev index next >