annotate src/java.base/share/native/libjava/BootLoader.c @ 17286:65464a307408

Added tag jdk-9+181 for changeset bd66ea2fdde3
author prr
date Thu, 03 Aug 2017 18:56:59 +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