mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
Merge
This commit is contained in:
commit
39b4f0d53e
108 changed files with 541 additions and 137 deletions
|
@ -3245,6 +3245,15 @@ void java_lang_invoke_MemberName::set_vmindex(oop mname, intptr_t index) {
|
||||||
mname->address_field_put(_vmindex_offset, (address) index);
|
mname->address_field_put(_vmindex_offset, (address) index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool java_lang_invoke_MemberName::equals(oop mn1, oop mn2) {
|
||||||
|
if (mn1 == mn2) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return (vmtarget(mn1) == vmtarget(mn2) && flags(mn1) == flags(mn2) &&
|
||||||
|
vmindex(mn1) == vmindex(mn2) &&
|
||||||
|
clazz(mn1) == clazz(mn2));
|
||||||
|
}
|
||||||
|
|
||||||
oop java_lang_invoke_LambdaForm::vmentry(oop lform) {
|
oop java_lang_invoke_LambdaForm::vmentry(oop lform) {
|
||||||
assert(is_instance(lform), "wrong type");
|
assert(is_instance(lform), "wrong type");
|
||||||
return lform->obj_field(_vmentry_offset);
|
return lform->obj_field(_vmentry_offset);
|
||||||
|
|
|
@ -1114,6 +1114,8 @@ class java_lang_invoke_MemberName: AllStatic {
|
||||||
static int flags_offset_in_bytes() { return _flags_offset; }
|
static int flags_offset_in_bytes() { return _flags_offset; }
|
||||||
static int vmtarget_offset_in_bytes() { return _vmtarget_offset; }
|
static int vmtarget_offset_in_bytes() { return _vmtarget_offset; }
|
||||||
static int vmindex_offset_in_bytes() { return _vmindex_offset; }
|
static int vmindex_offset_in_bytes() { return _vmindex_offset; }
|
||||||
|
|
||||||
|
static bool equals(oop mt1, oop mt2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ ModuleEntryTable::~ModuleEntryTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModuleEntryTable::create_unnamed_module(ClassLoaderData* loader_data) {
|
void ModuleEntryTable::create_unnamed_module(ClassLoaderData* loader_data) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
|
|
||||||
// Each ModuleEntryTable has exactly one unnamed module
|
// Each ModuleEntryTable has exactly one unnamed module
|
||||||
if (loader_data->is_the_null_class_loader_data()) {
|
if (loader_data->is_the_null_class_loader_data()) {
|
||||||
|
@ -227,7 +227,7 @@ void ModuleEntryTable::create_unnamed_module(ClassLoaderData* loader_data) {
|
||||||
ModuleEntry* ModuleEntryTable::new_entry(unsigned int hash, Handle module_handle, Symbol* name,
|
ModuleEntry* ModuleEntryTable::new_entry(unsigned int hash, Handle module_handle, Symbol* name,
|
||||||
Symbol* version, Symbol* location,
|
Symbol* version, Symbol* location,
|
||||||
ClassLoaderData* loader_data) {
|
ClassLoaderData* loader_data) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
ModuleEntry* entry = (ModuleEntry*) NEW_C_HEAP_ARRAY(char, entry_size(), mtModule);
|
ModuleEntry* entry = (ModuleEntry*) NEW_C_HEAP_ARRAY(char, entry_size(), mtModule);
|
||||||
|
|
||||||
// Initialize everything BasicHashtable would
|
// Initialize everything BasicHashtable would
|
||||||
|
@ -258,7 +258,7 @@ ModuleEntry* ModuleEntryTable::new_entry(unsigned int hash, Handle module_handle
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModuleEntryTable::add_entry(int index, ModuleEntry* new_entry) {
|
void ModuleEntryTable::add_entry(int index, ModuleEntry* new_entry) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
Hashtable<Symbol*, mtModule>::add_entry(index, (HashtableEntry<Symbol*, mtModule>*)new_entry);
|
Hashtable<Symbol*, mtModule>::add_entry(index, (HashtableEntry<Symbol*, mtModule>*)new_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ ModuleEntry* ModuleEntryTable::locked_create_entry_or_null(Handle module_handle,
|
||||||
Symbol* module_location,
|
Symbol* module_location,
|
||||||
ClassLoaderData* loader_data) {
|
ClassLoaderData* loader_data) {
|
||||||
assert(module_name != NULL, "ModuleEntryTable locked_create_entry_or_null should never be called for unnamed module.");
|
assert(module_name != NULL, "ModuleEntryTable locked_create_entry_or_null should never be called for unnamed module.");
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
// Check if module already exists.
|
// Check if module already exists.
|
||||||
if (lookup_only(module_name) != NULL) {
|
if (lookup_only(module_name) != NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -309,7 +309,7 @@ void ModuleEntryTable::purge_all_module_reads() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModuleEntryTable::finalize_javabase(Handle module_handle, Symbol* version, Symbol* location) {
|
void ModuleEntryTable::finalize_javabase(Handle module_handle, Symbol* version, Symbol* location) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
ClassLoaderData* boot_loader_data = ClassLoaderData::the_null_class_loader_data();
|
ClassLoaderData* boot_loader_data = ClassLoaderData::the_null_class_loader_data();
|
||||||
ModuleEntryTable* module_table = boot_loader_data->modules();
|
ModuleEntryTable* module_table = boot_loader_data->modules();
|
||||||
|
|
||||||
|
|
|
@ -568,8 +568,8 @@ void Modules::add_module_exports(jobject from_module, jstring package, jobject t
|
||||||
to_module_entry->is_named() ?
|
to_module_entry->is_named() ?
|
||||||
to_module_entry->name()->as_C_string() : UNNAMED_MODULE);
|
to_module_entry->name()->as_C_string() : UNNAMED_MODULE);
|
||||||
|
|
||||||
// Do nothing if modules are the same or if package is already exported unqualifiedly.
|
// Do nothing if modules are the same.
|
||||||
if (from_module_entry != to_module_entry && !package_entry->is_unqual_exported()) {
|
if (from_module_entry != to_module_entry) {
|
||||||
package_entry->set_exported(to_module_entry);
|
package_entry->set_exported(to_module_entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ bool PackageEntry::is_qexported_to(ModuleEntry* m) const {
|
||||||
|
|
||||||
// Add a module to the package's qualified export list.
|
// Add a module to the package's qualified export list.
|
||||||
void PackageEntry::add_qexport(ModuleEntry* m) {
|
void PackageEntry::add_qexport(ModuleEntry* m) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
if (!has_qual_exports_list()) {
|
if (!has_qual_exports_list()) {
|
||||||
// Lazily create a package's qualified exports list.
|
// Lazily create a package's qualified exports list.
|
||||||
// Initial size is small, do not anticipate export lists to be large.
|
// Initial size is small, do not anticipate export lists to be large.
|
||||||
|
@ -157,7 +157,7 @@ PackageEntryTable::~PackageEntryTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
PackageEntry* PackageEntryTable::new_entry(unsigned int hash, Symbol* name, ModuleEntry* module) {
|
PackageEntry* PackageEntryTable::new_entry(unsigned int hash, Symbol* name, ModuleEntry* module) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
PackageEntry* entry = (PackageEntry*) NEW_C_HEAP_ARRAY(char, entry_size(), mtModule);
|
PackageEntry* entry = (PackageEntry*) NEW_C_HEAP_ARRAY(char, entry_size(), mtModule);
|
||||||
|
|
||||||
// Initialize everything BasicHashtable would
|
// Initialize everything BasicHashtable would
|
||||||
|
@ -180,14 +180,14 @@ PackageEntry* PackageEntryTable::new_entry(unsigned int hash, Symbol* name, Modu
|
||||||
}
|
}
|
||||||
|
|
||||||
void PackageEntryTable::add_entry(int index, PackageEntry* new_entry) {
|
void PackageEntryTable::add_entry(int index, PackageEntry* new_entry) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
Hashtable<Symbol*, mtModule>::add_entry(index, (HashtableEntry<Symbol*, mtModule>*)new_entry);
|
Hashtable<Symbol*, mtModule>::add_entry(index, (HashtableEntry<Symbol*, mtModule>*)new_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create package in loader's package entry table and return the entry.
|
// Create package in loader's package entry table and return the entry.
|
||||||
// If entry already exists, return null. Assume Module lock was taken by caller.
|
// If entry already exists, return null. Assume Module lock was taken by caller.
|
||||||
PackageEntry* PackageEntryTable::locked_create_entry_or_null(Symbol* name, ModuleEntry* module) {
|
PackageEntry* PackageEntryTable::locked_create_entry_or_null(Symbol* name, ModuleEntry* module) {
|
||||||
assert_locked_or_safepoint(Module_lock);
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
// Check if package already exists. Return NULL if it does.
|
// Check if package already exists. Return NULL if it does.
|
||||||
if (lookup_only(name) != NULL) {
|
if (lookup_only(name) != NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -40,11 +40,7 @@
|
||||||
// package is exported to.
|
// package is exported to.
|
||||||
//
|
//
|
||||||
// Packages can be exported in the following 3 ways:
|
// Packages can be exported in the following 3 ways:
|
||||||
// - not exported: the package has not been explicitly qualified to a
|
// - not exported: the package does not have qualified or unqualified exports.
|
||||||
// particular module nor has it been specified to be
|
|
||||||
// unqualifiedly exported to all modules. If all states
|
|
||||||
// of exportedness are false, the package is considered
|
|
||||||
// not exported.
|
|
||||||
// - qualified exports: the package has been explicitly qualified to at least
|
// - qualified exports: the package has been explicitly qualified to at least
|
||||||
// one particular module or has been qualifiedly exported
|
// one particular module or has been qualifiedly exported
|
||||||
// to all unnamed modules.
|
// to all unnamed modules.
|
||||||
|
@ -125,6 +121,7 @@ public:
|
||||||
return _is_exported_unqualified;
|
return _is_exported_unqualified;
|
||||||
}
|
}
|
||||||
void set_unqual_exported() {
|
void set_unqual_exported() {
|
||||||
|
assert(Module_lock->owned_by_self(), "should have the Module_lock");
|
||||||
_is_exported_unqualified = true;
|
_is_exported_unqualified = true;
|
||||||
_is_exported_allUnnamed = false;
|
_is_exported_allUnnamed = false;
|
||||||
_qualified_exports = NULL;
|
_qualified_exports = NULL;
|
||||||
|
|
|
@ -80,7 +80,7 @@ void G1StringDedupStat::print_summary(const G1StringDedupStat& last_stat, const
|
||||||
log_info(gc, stringdedup)(
|
log_info(gc, stringdedup)(
|
||||||
"Concurrent String Deduplication "
|
"Concurrent String Deduplication "
|
||||||
G1_STRDEDUP_BYTES_FORMAT_NS "->" G1_STRDEDUP_BYTES_FORMAT_NS "(" G1_STRDEDUP_BYTES_FORMAT_NS "), avg "
|
G1_STRDEDUP_BYTES_FORMAT_NS "->" G1_STRDEDUP_BYTES_FORMAT_NS "(" G1_STRDEDUP_BYTES_FORMAT_NS "), avg "
|
||||||
G1_STRDEDUP_PERCENT_FORMAT_NS ", " G1_STRDEDUP_TIME_FORMAT "]",
|
G1_STRDEDUP_PERCENT_FORMAT_NS ", " G1_STRDEDUP_TIME_FORMAT,
|
||||||
G1_STRDEDUP_BYTES_PARAM(last_stat._new_bytes),
|
G1_STRDEDUP_BYTES_PARAM(last_stat._new_bytes),
|
||||||
G1_STRDEDUP_BYTES_PARAM(last_stat._new_bytes - last_stat._deduped_bytes),
|
G1_STRDEDUP_BYTES_PARAM(last_stat._new_bytes - last_stat._deduped_bytes),
|
||||||
G1_STRDEDUP_BYTES_PARAM(last_stat._deduped_bytes),
|
G1_STRDEDUP_BYTES_PARAM(last_stat._deduped_bytes),
|
||||||
|
|
|
@ -484,13 +484,13 @@ void LogConfiguration::print_command_line_help(FILE* out) {
|
||||||
" -Xlog:gc::uptime,tid\n"
|
" -Xlog:gc::uptime,tid\n"
|
||||||
"\t Log messages tagged with 'gc' tag using 'info' level to output 'stdout', using 'uptime' and 'tid' decorations.\n\n"
|
"\t Log messages tagged with 'gc' tag using 'info' level to output 'stdout', using 'uptime' and 'tid' decorations.\n\n"
|
||||||
|
|
||||||
" -Xlog:gc*=info,rt*=off\n"
|
" -Xlog:gc*=info,safepoint*=off\n"
|
||||||
"\t Log messages tagged with at least 'gc' using 'info' level, but turn off logging of messages tagged with 'rt'.\n"
|
"\t Log messages tagged with at least 'gc' using 'info' level, but turn off logging of messages tagged with 'safepoint'.\n"
|
||||||
"\t (Messages tagged with both 'gc' and 'rt' will not be logged.)\n\n"
|
"\t (Messages tagged with both 'gc' and 'safepoint' will not be logged.)\n\n"
|
||||||
|
|
||||||
" -Xlog:disable -Xlog:rt=trace:rttrace.txt\n"
|
" -Xlog:disable -Xlog:safepoint=trace:safepointtrace.txt\n"
|
||||||
"\t Turn off all logging, including warnings and errors,\n"
|
"\t Turn off all logging, including warnings and errors,\n"
|
||||||
"\t and then enable messages tagged with 'rt' using 'trace' level to file 'rttrace.txt'.\n");
|
"\t and then enable messages tagged with 'safepoint' using 'trace' level to file 'safepointtrace.txt'.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogConfiguration::rotate_all_outputs() {
|
void LogConfiguration::rotate_all_outputs() {
|
||||||
|
|
|
@ -2693,7 +2693,7 @@ nmethod* InstanceKlass::lookup_osr_nmethod(const Method* m, int bci, int comp_le
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InstanceKlass::add_member_name(Handle mem_name) {
|
oop InstanceKlass::add_member_name(Handle mem_name, bool intern) {
|
||||||
jweak mem_name_wref = JNIHandles::make_weak_global(mem_name);
|
jweak mem_name_wref = JNIHandles::make_weak_global(mem_name);
|
||||||
MutexLocker ml(MemberNameTable_lock);
|
MutexLocker ml(MemberNameTable_lock);
|
||||||
DEBUG_ONLY(NoSafepointVerifier nsv);
|
DEBUG_ONLY(NoSafepointVerifier nsv);
|
||||||
|
@ -2703,7 +2703,7 @@ bool InstanceKlass::add_member_name(Handle mem_name) {
|
||||||
// is called!
|
// is called!
|
||||||
Method* method = (Method*)java_lang_invoke_MemberName::vmtarget(mem_name());
|
Method* method = (Method*)java_lang_invoke_MemberName::vmtarget(mem_name());
|
||||||
if (method->is_obsolete()) {
|
if (method->is_obsolete()) {
|
||||||
return false;
|
return NULL;
|
||||||
} else if (method->is_old()) {
|
} else if (method->is_old()) {
|
||||||
// Replace method with redefined version
|
// Replace method with redefined version
|
||||||
java_lang_invoke_MemberName::set_vmtarget(mem_name(), method_with_idnum(method->method_idnum()));
|
java_lang_invoke_MemberName::set_vmtarget(mem_name(), method_with_idnum(method->method_idnum()));
|
||||||
|
@ -2712,8 +2712,11 @@ bool InstanceKlass::add_member_name(Handle mem_name) {
|
||||||
if (_member_names == NULL) {
|
if (_member_names == NULL) {
|
||||||
_member_names = new (ResourceObj::C_HEAP, mtClass) MemberNameTable(idnum_allocated_count());
|
_member_names = new (ResourceObj::C_HEAP, mtClass) MemberNameTable(idnum_allocated_count());
|
||||||
}
|
}
|
||||||
_member_names->add_member_name(mem_name_wref);
|
if (intern) {
|
||||||
return true;
|
return _member_names->find_or_add_member_name(mem_name_wref);
|
||||||
|
} else {
|
||||||
|
return _member_names->add_member_name(mem_name_wref);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -1298,7 +1298,7 @@ public:
|
||||||
// JSR-292 support
|
// JSR-292 support
|
||||||
MemberNameTable* member_names() { return _member_names; }
|
MemberNameTable* member_names() { return _member_names; }
|
||||||
void set_member_names(MemberNameTable* member_names) { _member_names = member_names; }
|
void set_member_names(MemberNameTable* member_names) { _member_names = member_names; }
|
||||||
bool add_member_name(Handle member_name);
|
oop add_member_name(Handle member_name, bool intern);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// JVMTI support
|
// JVMTI support
|
||||||
|
|
|
@ -695,7 +695,7 @@ JVM_ENTRY(jobject, JVM_Clone(JNIEnv* env, jobject handle))
|
||||||
// This can safepoint and redefine method, so need both new_obj and method
|
// This can safepoint and redefine method, so need both new_obj and method
|
||||||
// in a handle, for two different reasons. new_obj can move, method can be
|
// in a handle, for two different reasons. new_obj can move, method can be
|
||||||
// deleted if nothing is using it on the stack.
|
// deleted if nothing is using it on the stack.
|
||||||
m->method_holder()->add_member_name(new_obj());
|
m->method_holder()->add_member_name(new_obj(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ oop MethodHandles::init_MemberName(Handle mname, Handle target) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
oop MethodHandles::init_method_MemberName(Handle mname, CallInfo& info) {
|
oop MethodHandles::init_method_MemberName(Handle mname, CallInfo& info, bool intern) {
|
||||||
assert(info.resolved_appendix().is_null(), "only normal methods here");
|
assert(info.resolved_appendix().is_null(), "only normal methods here");
|
||||||
methodHandle m = info.resolved_method();
|
methodHandle m = info.resolved_method();
|
||||||
assert(m.not_null(), "null method handle");
|
assert(m.not_null(), "null method handle");
|
||||||
|
@ -279,13 +279,7 @@ oop MethodHandles::init_method_MemberName(Handle mname, CallInfo& info) {
|
||||||
// If relevant, the vtable or itable value is stored as vmindex.
|
// If relevant, the vtable or itable value is stored as vmindex.
|
||||||
// This is done eagerly, since it is readily available without
|
// This is done eagerly, since it is readily available without
|
||||||
// constructing any new objects.
|
// constructing any new objects.
|
||||||
// TO DO: maybe intern mname_oop
|
return m->method_holder()->add_member_name(mname, intern);
|
||||||
if (m->method_holder()->add_member_name(mname)) {
|
|
||||||
return mname();
|
|
||||||
} else {
|
|
||||||
// Redefinition caused this to fail. Return NULL (and an exception?)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
oop MethodHandles::init_field_MemberName(Handle mname, fieldDescriptor& fd, bool is_setter) {
|
oop MethodHandles::init_field_MemberName(Handle mname, fieldDescriptor& fd, bool is_setter) {
|
||||||
|
@ -975,7 +969,9 @@ int MethodHandles::find_MemberNames(KlassHandle k,
|
||||||
if (!java_lang_invoke_MemberName::is_instance(result()))
|
if (!java_lang_invoke_MemberName::is_instance(result()))
|
||||||
return -99; // caller bug!
|
return -99; // caller bug!
|
||||||
CallInfo info(m);
|
CallInfo info(m);
|
||||||
oop saved = MethodHandles::init_method_MemberName(result, info);
|
// Since this is going through the methods to create MemberNames, don't search
|
||||||
|
// for matching methods already in the table
|
||||||
|
oop saved = MethodHandles::init_method_MemberName(result, info, /*intern*/false);
|
||||||
if (saved != result())
|
if (saved != result())
|
||||||
results->obj_at_put(rfill-1, saved); // show saved instance to user
|
results->obj_at_put(rfill-1, saved); // show saved instance to user
|
||||||
} else if (++overflow >= overflow_limit) {
|
} else if (++overflow >= overflow_limit) {
|
||||||
|
@ -1056,9 +1052,34 @@ MemberNameTable::~MemberNameTable() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemberNameTable::add_member_name(jweak mem_name_wref) {
|
oop MemberNameTable::add_member_name(jweak mem_name_wref) {
|
||||||
assert_locked_or_safepoint(MemberNameTable_lock);
|
assert_locked_or_safepoint(MemberNameTable_lock);
|
||||||
this->push(mem_name_wref);
|
this->push(mem_name_wref);
|
||||||
|
return JNIHandles::resolve(mem_name_wref);
|
||||||
|
}
|
||||||
|
|
||||||
|
oop MemberNameTable::find_or_add_member_name(jweak mem_name_wref) {
|
||||||
|
assert_locked_or_safepoint(MemberNameTable_lock);
|
||||||
|
oop new_mem_name = JNIHandles::resolve(mem_name_wref);
|
||||||
|
|
||||||
|
// Find matching member name in the list.
|
||||||
|
// This is linear because these because these are short lists.
|
||||||
|
int len = this->length();
|
||||||
|
int new_index = len;
|
||||||
|
for (int idx = 0; idx < len; idx++) {
|
||||||
|
oop mname = JNIHandles::resolve(this->at(idx));
|
||||||
|
if (mname == NULL) {
|
||||||
|
new_index = idx;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (java_lang_invoke_MemberName::equals(new_mem_name, mname)) {
|
||||||
|
JNIHandles::destroy_weak_global(mem_name_wref);
|
||||||
|
return mname;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Not found, push the new one, or reuse empty slot
|
||||||
|
this->at_put_grow(new_index, mem_name_wref);
|
||||||
|
return new_mem_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if INCLUDE_JVMTI
|
#if INCLUDE_JVMTI
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -66,7 +66,7 @@ class MethodHandles: AllStatic {
|
||||||
static Handle new_MemberName(TRAPS); // must be followed by init_MemberName
|
static Handle new_MemberName(TRAPS); // must be followed by init_MemberName
|
||||||
static oop init_MemberName(Handle mname_h, Handle target_h); // compute vmtarget/vmindex from target
|
static oop init_MemberName(Handle mname_h, Handle target_h); // compute vmtarget/vmindex from target
|
||||||
static oop init_field_MemberName(Handle mname_h, fieldDescriptor& fd, bool is_setter = false);
|
static oop init_field_MemberName(Handle mname_h, fieldDescriptor& fd, bool is_setter = false);
|
||||||
static oop init_method_MemberName(Handle mname_h, CallInfo& info);
|
static oop init_method_MemberName(Handle mname_h, CallInfo& info, bool intern = true);
|
||||||
static int method_ref_kind(Method* m, bool do_dispatch_if_possible = true);
|
static int method_ref_kind(Method* m, bool do_dispatch_if_possible = true);
|
||||||
static int find_MemberNames(KlassHandle k, Symbol* name, Symbol* sig,
|
static int find_MemberNames(KlassHandle k, Symbol* name, Symbol* sig,
|
||||||
int mflags, KlassHandle caller,
|
int mflags, KlassHandle caller,
|
||||||
|
@ -253,7 +253,8 @@ class MemberNameTable : public GrowableArray<jweak> {
|
||||||
public:
|
public:
|
||||||
MemberNameTable(int methods_cnt);
|
MemberNameTable(int methods_cnt);
|
||||||
~MemberNameTable();
|
~MemberNameTable();
|
||||||
void add_member_name(jweak mem_name_ref);
|
oop add_member_name(jweak mem_name_ref);
|
||||||
|
oop find_or_add_member_name(jweak mem_name_ref);
|
||||||
|
|
||||||
#if INCLUDE_JVMTI
|
#if INCLUDE_JVMTI
|
||||||
// RedefineClasses() API support:
|
// RedefineClasses() API support:
|
||||||
|
|
|
@ -3403,6 +3403,8 @@ static void call_initPhase1(TRAPS) {
|
||||||
//
|
//
|
||||||
// After phase 2, The VM will begin search classes from -Xbootclasspath/a.
|
// After phase 2, The VM will begin search classes from -Xbootclasspath/a.
|
||||||
static void call_initPhase2(TRAPS) {
|
static void call_initPhase2(TRAPS) {
|
||||||
|
TraceTime timer("Phase2 initialization", TRACETIME_LOG(Info, modules, startuptime));
|
||||||
|
|
||||||
Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_System(), true, CHECK);
|
Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_System(), true, CHECK);
|
||||||
instanceKlassHandle klass (THREAD, k);
|
instanceKlassHandle klass (THREAD, k);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
# or visit www.oracle.com if you need additional information or have any
|
# or visit www.oracle.com if you need additional information or have any
|
||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -31,10 +31,10 @@ keys=cte_test jcmd nmt regression gc stress
|
||||||
|
|
||||||
groups=TEST.groups [closed/TEST.groups]
|
groups=TEST.groups [closed/TEST.groups]
|
||||||
|
|
||||||
# Source files for classes that will be used at the beginning of each test suite run,
|
# Source files for classes that will be used at the beginning of each test suite run,
|
||||||
# to determine additional characteristics of the system for use with the @requires tag.
|
# to determine additional characteristics of the system for use with the @requires tag.
|
||||||
requires.extraPropDefns = ../../test/jtreg-ext/requires/VMProps.java
|
requires.extraPropDefns = ../../test/jtreg-ext/requires/VMProps.java
|
||||||
requires.properties=sun.arch.data.model
|
requires.properties=sun.arch.data.model vm.simpleArch vm.flightRecorder
|
||||||
|
|
||||||
# Tests using jtreg 4.2 b02 features
|
# Tests using jtreg 4.2 b02 features
|
||||||
requiredVersion=4.2 b02
|
requiredVersion=4.2 b02
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test TestSSE4Disabled
|
* @test TestSSE4Disabled
|
||||||
* @bug 8158214
|
* @bug 8158214
|
||||||
* @requires (os.simpleArch == "x64")
|
* @requires (vm.simpleArch == "x64")
|
||||||
* @summary Test correct execution without SSE 4.
|
* @summary Test correct execution without SSE 4.
|
||||||
* @run main/othervm -Xcomp -XX:UseSSE=3 TestSSE4Disabled
|
* @run main/othervm -Xcomp -XX:UseSSE=3 TestSSE4Disabled
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /
|
* @library /testlibrary /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.runtime
|
* @modules jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library common/patches
|
* @library common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib/
|
* @library / /testlibrary /test/lib/
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.util.Map;
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @ignore 8139383
|
* @ignore 8139383
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib/
|
* @library / /testlibrary /test/lib/
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib/
|
* @library / /testlibrary /test/lib/
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @ignore 8158860
|
* @ignore 8158860
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary
|
* @library / /testlibrary
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /
|
* @library /testlibrary /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @summary Testing compiler.jvmci.CompilerToVM.lookupKlassInPool method
|
* @summary Testing compiler.jvmci.CompilerToVM.lookupKlassInPool method
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary
|
* @library / /testlibrary
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib
|
* @library / /testlibrary /test/lib
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8138708
|
* @bug 8138708
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @summary Testing compiler.jvmci.CompilerToVM.resolveTypeInPool method
|
* @summary Testing compiler.jvmci.CompilerToVM.resolveTypeInPool method
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary /test/lib/
|
* @library / /testlibrary /test/lib/
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.code
|
* jdk.vm.ci/jdk.vm.ci.code
|
||||||
* jdk.vm.ci/jdk.vm.ci.code.site
|
* jdk.vm.ci/jdk.vm.ci.code.site
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.code
|
* jdk.vm.ci/jdk.vm.ci.code
|
||||||
* jdk.vm.ci/jdk.vm.ci.code.site
|
* jdk.vm.ci/jdk.vm.ci.code.site
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.code
|
* jdk.vm.ci/jdk.vm.ci.code
|
||||||
* jdk.vm.ci/jdk.vm.ci.code.site
|
* jdk.vm.ci/jdk.vm.ci.code.site
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8156034
|
* @bug 8156034
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary
|
* @library / /testlibrary
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library / /testlibrary
|
* @library / /testlibrary
|
||||||
* @library ../common/patches
|
* @library ../common/patches
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8136421
|
* @bug 8136421
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /
|
* @library /testlibrary /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
|
||||||
* @library /
|
* @library /
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.code
|
* jdk.vm.ci/jdk.vm.ci.code
|
||||||
* jdk.vm.ci/jdk.vm.ci.code.site
|
* jdk.vm.ci/jdk.vm.ci.code.site
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
|
||||||
* @library /
|
* @library /
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
|
||||||
* @library /
|
* @library /
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9") & os.arch != "aarch64"
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9") & os.arch != "aarch64"
|
||||||
* @library /
|
* @library /
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test jdk.vm.ci.hotspot.test.HotSpotConstantReflectionProviderTest
|
* @test jdk.vm.ci.hotspot.test.HotSpotConstantReflectionProviderTest
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.runtime
|
* @modules jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.hotspot
|
* jdk.vm.ci/jdk.vm.ci.hotspot
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8152341
|
* @bug 8152341
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /compiler/jvmci/jdk.vm.ci.hotspot.test/src
|
* @library /testlibrary /test/lib /compiler/jvmci/jdk.vm.ci.hotspot.test/src
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.common
|
* jdk.vm.ci/jdk.vm.ci.common
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8152343
|
* @bug 8152343
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /compiler/jvmci/jdk.vm.ci.hotspot.test/src
|
* @library /testlibrary /test/lib /compiler/jvmci/jdk.vm.ci.hotspot.test/src
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.ResolvedJavaTypeResolveConcreteMethodTest
|
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.ResolvedJavaTypeResolveConcreteMethodTest
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.ResolvedJavaTypeResolveMethodTest
|
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.ResolvedJavaTypeResolveMethodTest
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
* @modules jdk.vm.ci/jdk.vm.ci.meta
|
||||||
* jdk.vm.ci/jdk.vm.ci.runtime
|
* jdk.vm.ci/jdk.vm.ci.runtime
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library ../../../../../
|
* @library ../../../../../
|
||||||
* @modules java.base/jdk.internal.reflect
|
* @modules java.base/jdk.internal.reflect
|
||||||
* jdk.vm.ci/jdk.vm.ci.meta
|
* jdk.vm.ci/jdk.vm.ci.meta
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8151664
|
* @bug 8151664
|
||||||
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
|
* @requires (vm.simpleArch == "x64" | vm.simpleArch == "sparcv9" | vm.simpleArch == "aarch64")
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules java.base/jdk.internal.vm.annotation
|
* @modules java.base/jdk.internal.vm.annotation
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
* @test TestIHOPErgo
|
* @test TestIHOPErgo
|
||||||
* @bug 8148397
|
* @bug 8148397
|
||||||
* @summary Test checks that behavior of Adaptive and Static IHOP at concurrent cycle initiation
|
* @summary Test checks that behavior of Adaptive and Static IHOP at concurrent cycle initiation
|
||||||
* @requires vm.gc=="G1" | vm.gc=="null"
|
* @requires vm.gc == "G1" | vm.gc == "null"
|
||||||
* @requires vm.opt.FlightRecorder != true
|
* @requires !vm.flightRecorder
|
||||||
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
|
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
|
||||||
* @requires vm.opt.MaxGCPauseMillis == "null"
|
* @requires vm.opt.MaxGCPauseMillis == "null"
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
* @test TestIHOPStatic
|
* @test TestIHOPStatic
|
||||||
* @bug 8148397
|
* @bug 8148397
|
||||||
* @summary Test checks concurrent cycle initiation which depends on IHOP value.
|
* @summary Test checks concurrent cycle initiation which depends on IHOP value.
|
||||||
* @requires vm.gc=="G1" | vm.gc=="null"
|
* @requires vm.gc == "G1" | vm.gc == "null"
|
||||||
* @requires vm.opt.FlightRecorder != true
|
* @requires !vm.flightRecorder
|
||||||
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
|
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
|
||||||
* @library /testlibrary /
|
* @library /testlibrary /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
* @test TestPLABPromotion
|
* @test TestPLABPromotion
|
||||||
* @bug 8141278 8141141
|
* @bug 8141278 8141141
|
||||||
* @summary Test PLAB promotion
|
* @summary Test PLAB promotion
|
||||||
* @requires vm.gc=="G1" | vm.gc=="null"
|
* @requires vm.gc == "G1" | vm.gc == "null"
|
||||||
* @requires vm.opt.FlightRecorder != true
|
* @requires !vm.flightRecorder
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules java.management
|
* @modules java.management
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
* @test TestPLABResize
|
* @test TestPLABResize
|
||||||
* @bug 8141278 8141141
|
* @bug 8141278 8141141
|
||||||
* @summary Test for PLAB resizing
|
* @summary Test for PLAB resizing
|
||||||
* @requires vm.gc=="G1" | vm.gc=="null"
|
* @requires vm.gc == "G1" | vm.gc == "null"
|
||||||
* @requires vm.opt.FlightRecorder != true
|
* @requires !vm.flightRecorder
|
||||||
* @library /testlibrary /test/lib /
|
* @library /testlibrary /test/lib /
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @modules java.management
|
* @modules java.management
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
* @key gc
|
* @key gc
|
||||||
* @key stress
|
* @key stress
|
||||||
* @summary Stress G1 by humongous allocations in situation near OOM
|
* @summary Stress G1 by humongous allocations in situation near OOM
|
||||||
* @requires vm.gc=="G1" | vm.gc=="null"
|
* @requires vm.gc == "G1" | vm.gc == "null"
|
||||||
|
* @requires !vm.flightRecorder
|
||||||
* @run main/othervm/timeout=200 -Xlog:gc=debug -Xmx1g -XX:+UseG1GC -XX:G1HeapRegionSize=4m
|
* @run main/othervm/timeout=200 -Xlog:gc=debug -Xmx1g -XX:+UseG1GC -XX:G1HeapRegionSize=4m
|
||||||
* -Dtimeout=120 -Dthreads=3 -Dhumongoussize=1.1 -Dregionsize=4 TestStressG1Humongous
|
* -Dtimeout=120 -Dthreads=3 -Dhumongoussize=1.1 -Dregionsize=4 TestStressG1Humongous
|
||||||
* @run main/othervm/timeout=200 -Xlog:gc=debug -Xmx1g -XX:+UseG1GC -XX:G1HeapRegionSize=16m
|
* @run main/othervm/timeout=200 -Xlog:gc=debug -Xmx1g -XX:+UseG1GC -XX:G1HeapRegionSize=16m
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -48,8 +48,9 @@ public class ProblematicFrameTest {
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||||
"-Xmx64m", "-XX:-TransmitErrorReport", "-XX:-CreateCoredumpOnCrash", Crasher.class.getName());
|
"-Xmx64m", "-XX:-TransmitErrorReport", "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED", "-XX:-CreateCoredumpOnCrash", Crasher.class.getName());
|
||||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
|
output.shouldNotContain("Exception in thread");
|
||||||
output.shouldNotMatch("error occurred during error reporting \\(printing problematic frame\\)");
|
output.shouldNotMatch("error occurred during error reporting \\(printing problematic frame\\)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ import jdk.test.lib.Asserts;
|
||||||
* @key cte_test
|
* @key cte_test
|
||||||
* @bug 4345157
|
* @bug 4345157
|
||||||
* @summary JDK 1.3.0 alters thread signal mask
|
* @summary JDK 1.3.0 alters thread signal mask
|
||||||
* @requires (os.simpleArch == "sparcv9")
|
* @requires (vm.simpleArch == "sparcv9")
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* @library /testlibrary
|
* @library /testlibrary
|
||||||
* @compile Prog.java
|
* @compile Prog.java
|
||||||
|
|
|
@ -50,6 +50,18 @@ public class StartupTimeTest {
|
||||||
output.shouldHaveExitValue(0);
|
output.shouldHaveExitValue(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void analyzeModulesOutputOn(ProcessBuilder pb) throws Exception {
|
||||||
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
|
output.shouldMatch("(Phase2 initialization, [0-9]+.[0-9]+ secs)");
|
||||||
|
output.shouldHaveExitValue(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void analyzeModulesOutputOff(ProcessBuilder pb) throws Exception {
|
||||||
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
|
output.shouldNotContain("[modules,startuptime]");
|
||||||
|
output.shouldHaveExitValue(0);
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime",
|
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime",
|
||||||
InnerClass.class.getName());
|
InnerClass.class.getName());
|
||||||
|
@ -58,6 +70,14 @@ public class StartupTimeTest {
|
||||||
pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime=off",
|
pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime=off",
|
||||||
InnerClass.class.getName());
|
InnerClass.class.getName());
|
||||||
analyzeOutputOff(pb);
|
analyzeOutputOff(pb);
|
||||||
|
|
||||||
|
pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime+modules",
|
||||||
|
InnerClass.class.getName());
|
||||||
|
analyzeModulesOutputOn(pb);
|
||||||
|
|
||||||
|
pb = ProcessTools.createJavaProcessBuilder("-Xlog:startuptime+modules=off",
|
||||||
|
InnerClass.class.getName());
|
||||||
|
analyzeModulesOutputOff(pb);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class InnerClass {
|
public static class InnerClass {
|
||||||
|
|
79
hotspot/test/runtime/modules/CompilerUtils.java
Normal file
79
hotspot/test/runtime/modules/CompilerUtils.java
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2016, 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
|
||||||
|
* under the terms of the GNU General Public License version 2 only, as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import javax.tools.JavaCompiler;
|
||||||
|
import javax.tools.StandardJavaFileManager;
|
||||||
|
import javax.tools.StandardLocation;
|
||||||
|
import javax.tools.ToolProvider;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class consists exclusively of static utility methods for invoking the
|
||||||
|
* java compiler.
|
||||||
|
*
|
||||||
|
* This class will eventually move to jdk.testlibrary.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public final class CompilerUtils {
|
||||||
|
private CompilerUtils() { }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compile all the java sources in {@code <source>/**} to
|
||||||
|
* {@code <destination>/**}. The destination directory will be created if
|
||||||
|
* it doesn't exist.
|
||||||
|
*
|
||||||
|
* All warnings/errors emitted by the compiler are output to System.out/err.
|
||||||
|
*
|
||||||
|
* @return true if the compilation is successful
|
||||||
|
*
|
||||||
|
* @throws IOException if there is an I/O error scanning the source tree or
|
||||||
|
* creating the destination directory
|
||||||
|
*/
|
||||||
|
public static boolean compile(Path source, Path destination, String ... options)
|
||||||
|
throws IOException
|
||||||
|
{
|
||||||
|
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
||||||
|
StandardJavaFileManager jfm = compiler.getStandardFileManager(null, null, null);
|
||||||
|
|
||||||
|
List<Path> sources
|
||||||
|
= Files.find(source, Integer.MAX_VALUE,
|
||||||
|
(file, attrs) -> (file.toString().endsWith(".java")))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
Files.createDirectories(destination);
|
||||||
|
jfm.setLocationFromPaths(StandardLocation.CLASS_OUTPUT,
|
||||||
|
Arrays.asList(destination));
|
||||||
|
|
||||||
|
List<String> opts = Arrays.asList(options);
|
||||||
|
JavaCompiler.CompilationTask task
|
||||||
|
= compiler.getTask(null, jfm, null, opts, null,
|
||||||
|
jfm.getJavaFileObjectsFromPaths(sources));
|
||||||
|
|
||||||
|
return task.call();
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue