jdk/src/java.instrument/share/classes/sun/instrument/InstrumentationImpl.java
changeset 45004 ea3137042a61
parent 44545 83b611b88ac8
equal deleted inserted replaced
44789:73fd39e0702e 45004:ea3137042a61
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2017, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   553                                     classBeingRedefined,
   553                                     classBeingRedefined,
   554                                     protectionDomain,
   554                                     protectionDomain,
   555                                     classfileBuffer);
   555                                     classfileBuffer);
   556         }
   556         }
   557     }
   557     }
       
   558 
       
   559 
       
   560     /**
       
   561      * Invoked by the java launcher to load a java agent that is packaged with
       
   562      * the main application in an executable JAR file.
       
   563      */
       
   564     public static void loadAgent(String path) {
       
   565         loadAgent0(path);
       
   566     }
       
   567 
       
   568     private static native void loadAgent0(String path);
   558 }
   569 }