annotate src/java.base/share/native/libjava/BootLoader.c @ 13901:b2a69d66dc65

8142968: Module System implementation Summary: Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282 Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, chris.hegarty@oracle.com, alexandr.scherbatiy@oracle.com, amy.lu@oracle.com, calvin.cheung@oracle.com, daniel.fuchs@oracle.com, erik.joelsson@oracle.com, harold.seigel@oracle.com, jaroslav.bachorik@oracle.com, jean-francois.denise@oracle.com, jan.lahoda@oracle.com, james.laskey@oracle.com, lois.foltan@oracle.com, miroslav.kos@oracle.com, huaming.li@oracle.com, sean.mullan@oracle.com, naoto.sato@oracle.com, masayoshi.okutsu@oracle.com, peter.levart@gmail.com, philip.race@oracle.com, claes.redestad@oracle.com, sergey.bylokhov@oracle.com, alexandre.iline@oracle.com, volker.simonis@gmail.com, staffan.larsen@oracle.com, stuart.marks@oracle.com, semyon.sadetsky@oracle.com, serguei.spitsyn@oracle.com, sundararajan.athijegannathan@oracle.com, valerie.peng@oracle.com, vincent.x.ryan@oracle.com, weijun.wang@oracle.com, yuri.nesterenko@oracle.com, yekaterina.kantserova@oracle.com, alexander.kulyakhtin@oracle.com, felix.yang@oracle.com, andrei.eremeev@oracle.com, frank.yuan@oracle.com, sergei.pikalev@oracle.com, sibabrata.sahoo@oracle.com, tiantian.du@oracle.com, sha.jiang@oracle.com
author alanb
date Thu, 17 Mar 2016 19:04:16 +0000
parents
children
rev   line source
alanb@13901 1 /*
alanb@13901 2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
alanb@13901 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
alanb@13901 4 *
alanb@13901 5 * This code is free software; you can redistribute it and/or modify it
alanb@13901 6 * under the terms of the GNU General Public License version 2 only, as
alanb@13901 7 * published by the Free Software Foundation. Oracle designates this
alanb@13901 8 * particular file as subject to the "Classpath" exception as provided
alanb@13901 9 * by Oracle in the LICENSE file that accompanied this code.
alanb@13901 10 *
alanb@13901 11 * This code is distributed in the hope that it will be useful, but WITHOUT
alanb@13901 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
alanb@13901 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
alanb@13901 14 * version 2 for more details (a copy is included in the LICENSE file that
alanb@13901 15 * accompanied this code).
alanb@13901 16 *
alanb@13901 17 * You should have received a copy of the GNU General Public License version
alanb@13901 18 * 2 along with this work; if not, write to the Free Software Foundation,
alanb@13901 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
alanb@13901 20 *
alanb@13901 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
alanb@13901 22 * or visit www.oracle.com if you need additional information or have any
alanb@13901 23 * questions.
alanb@13901 24 */
alanb@13901 25
alanb@13901 26 #include <stdlib.h>
alanb@13901 27 #include "jvm.h"
alanb@13901 28 #include "jni_util.h"
alanb@13901 29 #include "jdk_internal_loader_BootLoader.h"
alanb@13901 30
alanb@13901 31 JNIEXPORT jstring JNICALL
alanb@13901 32 Java_jdk_internal_loader_BootLoader_getSystemPackageLocation(JNIEnv *env, jclass cls, jstring str)
alanb@13901 33 {
alanb@13901 34 return JVM_GetSystemPackage(env, str);
alanb@13901 35 }
alanb@13901 36
alanb@13901 37 JNIEXPORT jobject JNICALL
alanb@13901 38 Java_jdk_internal_loader_BootLoader_getSystemPackageNames(JNIEnv *env, jclass cls)
alanb@13901 39 {
alanb@13901 40 return JVM_GetSystemPackages(env);
alanb@13901 41 }
alanb@13901 42
alanb@13901 43 JNIEXPORT void JNICALL
alanb@13901 44 Java_jdk_internal_loader_BootLoader_setBootLoaderUnnamedModule0(JNIEnv *env, jclass cls, jobject module)
alanb@13901 45 {
alanb@13901 46 JVM_SetBootLoaderUnnamedModule(env, module);
alanb@13901 47 }
alanb@13901 48