hotspot/src/share/vm/asm/codeBuffer.cpp
changeset 29580 a67a581cfe11
parent 27880 afb974a04396
child 30764 fec48bf5a827
equal deleted inserted replaced
29477:82f545c6572b 29580:a67a581cfe11
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, 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.
   924 }
   924 }
   925 
   925 
   926 void CodeBuffer::take_over_code_from(CodeBuffer* cb) {
   926 void CodeBuffer::take_over_code_from(CodeBuffer* cb) {
   927   // Must already have disposed of the old blob somehow.
   927   // Must already have disposed of the old blob somehow.
   928   assert(blob() == NULL, "must be empty");
   928   assert(blob() == NULL, "must be empty");
   929 #ifdef ASSERT
       
   930 
       
   931 #endif
       
   932   // Take the new blob away from cb.
   929   // Take the new blob away from cb.
   933   set_blob(cb->blob());
   930   set_blob(cb->blob());
   934   // Take over all the section pointers.
   931   // Take over all the section pointers.
   935   for (int n = 0; n < (int)SECT_LIMIT; n++) {
   932   for (int n = 0; n < (int)SECT_LIMIT; n++) {
   936     CodeSection* cb_sect   = cb->code_section(n);
   933     CodeSection* cb_sect   = cb->code_section(n);