hotspot/src/share/vm/runtime/init.cpp
changeset 5050 47ecd86932ce
parent 950 6112b627bb36
child 5547 f4b087cbb361
equal deleted inserted replaced
5049:cdeb352c6bbe 5050:47ecd86932ce
     1 /*
     1 /*
     2  * Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1997-2010 Sun Microsystems, Inc.  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.
   116     return JNI_ERR;
   116     return JNI_ERR;
   117   }
   117   }
   118   javaClasses_init();  // must happen after vtable initialization
   118   javaClasses_init();  // must happen after vtable initialization
   119   stubRoutines_init2(); // note: StubRoutines need 2-phase init
   119   stubRoutines_init2(); // note: StubRoutines need 2-phase init
   120 
   120 
       
   121   // Generate MethodHandles adapters.
       
   122   MethodHandles::generate_adapters();
       
   123 
   121   // Although we'd like to, we can't easily do a heap verify
   124   // Although we'd like to, we can't easily do a heap verify
   122   // here because the main thread isn't yet a JavaThread, so
   125   // here because the main thread isn't yet a JavaThread, so
   123   // its TLAB may not be made parseable from the usual interfaces.
   126   // its TLAB may not be made parseable from the usual interfaces.
   124   if (VerifyBeforeGC && !UseTLAB &&
   127   if (VerifyBeforeGC && !UseTLAB &&
   125       Universe::heap()->total_collections() >= VerifyGCStartAt) {
   128       Universe::heap()->total_collections() >= VerifyGCStartAt) {