mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8260471: Change SystemDictionary::X_klass calls to vmClasses::X_klass
Reviewed-by: lfoltan, hseigel, dholmes, stuefe
This commit is contained in:
parent
9af333923b
commit
ffbcf1b0a7
191 changed files with 739 additions and 712 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -37,6 +37,7 @@
|
|||
#include "classfile/stringTable.hpp"
|
||||
#include "classfile/symbolTable.hpp"
|
||||
#include "classfile/systemDictionary.hpp"
|
||||
#include "classfile/vmClasses.hpp"
|
||||
#include "classfile/vmSymbols.hpp"
|
||||
#include "logging/log.hpp"
|
||||
#include "logging/logStream.hpp"
|
||||
|
@ -168,7 +169,7 @@ static void define_javabase_module(Handle module_handle, jstring version, jstrin
|
|||
for (int x = 0; x < num_packages; x++) {
|
||||
oop pkg_str = pkgs->obj_at(x);
|
||||
|
||||
if (pkg_str == NULL || pkg_str->klass() != SystemDictionary::String_klass()) {
|
||||
if (pkg_str == NULL || pkg_str->klass() != vmClasses::String_klass()) {
|
||||
THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
|
||||
err_msg("Bad package name"));
|
||||
}
|
||||
|
@ -325,7 +326,7 @@ void Modules::define_module(jobject module, jboolean is_open, jstring version,
|
|||
GrowableArray<Symbol*>* pkg_list = new GrowableArray<Symbol*>(num_packages);
|
||||
for (int x = 0; x < num_packages; x++) {
|
||||
oop pkg_str = packages_h->obj_at(x);
|
||||
if (pkg_str == NULL || pkg_str->klass() != SystemDictionary::String_klass()) {
|
||||
if (pkg_str == NULL || pkg_str->klass() != vmClasses::String_klass()) {
|
||||
THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
|
||||
err_msg("Bad package name"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue