hotspot/src/share/vm/code/relocInfo.hpp
changeset 22838 82c7497fbad4
parent 22827 07d991d45a51
parent 19696 bd5a0131bde1
child 29180 50369728b00e
equal deleted inserted replaced
22837:feba5d4126b8 22838:82c7497fbad4
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   676   static RelocationHolder newHolder() {
   676   static RelocationHolder newHolder() {
   677     return RelocationHolder();
   677     return RelocationHolder();
   678   }
   678   }
   679 
   679 
   680  public:
   680  public:
   681   void* operator new(size_t size, const RelocationHolder& holder) {
   681   void* operator new(size_t size, const RelocationHolder& holder) throw() {
   682     if (size > sizeof(holder._relocbuf)) guarantee_size();
   682     if (size > sizeof(holder._relocbuf)) guarantee_size();
   683     assert((void* const *)holder.reloc() == &holder._relocbuf[0], "ptrs must agree");
   683     assert((void* const *)holder.reloc() == &holder._relocbuf[0], "ptrs must agree");
   684     return holder.reloc();
   684     return holder.reloc();
   685   }
   685   }
   686 
   686