Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Reduce diff with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-duboscq committed Oct 20, 2014
1 parent d101e10 commit e39c287
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 48 deletions.
2 changes: 2 additions & 0 deletions .jcheck/conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
project=jdk8
bugids=dup
2 changes: 1 addition & 1 deletion make/bsd/makefiles/jsig.make
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ endif
install_jsig: $(LIBJSIG)
@echo "Copying $(LIBJSIG) to $(DEST_JSIG)"
ifeq ($(OS_VENDOR), Darwin)
-$(QUIETLY) test -d $(LIBJSIG_DEBUGINFO) && \
$(QUIETLY) test ! -d $(LIBJSIG_DEBUGINFO) || \
cp -f -r $(LIBJSIG_DEBUGINFO) $(DEST_JSIG_DEBUGINFO)
else
$(QUIETLY) test -f $(LIBJSIG_DEBUGINFO) && \
Expand Down
2 changes: 1 addition & 1 deletion make/bsd/makefiles/saproc.make
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ endif
install_saproc: $(BUILDLIBSAPROC)
@echo "Copying $(LIBSAPROC) to $(DEST_SAPROC)"
ifeq ($(OS_VENDOR), Darwin)
-$(QUIETLY) test -d $(LIBSAPROC_DEBUGINFO) && \
$(QUIETLY) test ! -d $(LIBSAPROC_DEBUGINFO) || \
cp -f -r $(LIBSAPROC_DEBUGINFO) $(DEST_SAPROC_DEBUGINFO)
else
$(QUIETLY) test -f $(LIBSAPROC_DEBUGINFO) && \
Expand Down
2 changes: 1 addition & 1 deletion make/bsd/makefiles/vm.make
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ DEST_JVM_DIZ = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
install_jvm: $(LIBJVM)
@echo "Copying $(LIBJVM) to $(DEST_JVM)"
ifeq ($(OS_VENDOR), Darwin)
-$(QUIETLY) test -d $(LIBJVM_DEBUGINFO) && \
$(QUIETLY) test ! -d $(LIBJVM_DEBUGINFO) || \
cp -f -r $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
else
$(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/sparc/vm/interpreterGenerator_sparc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

address generate_normal_entry(bool synchronized);
address generate_native_entry(bool synchronized);
address generate_abstract_entry(void);
address generate_abstract_entry(void);
address generate_math_entry(AbstractInterpreter::MethodKind kind);
address generate_empty_entry(void);
address generate_accessor_entry(void);
Expand Down
1 change: 1 addition & 0 deletions src/cpu/sparc/vm/sharedRuntime_sparc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3671,6 +3671,7 @@ void SharedRuntime::generate_deopt_blob() {
__ mov(O0, O2UnrollBlock->after_save());

RegisterSaver::restore_result_registers(masm);

Label noException;
__ cmp_and_br_short(G4deopt_mode, Deoptimization::Unpack_exception, Assembler::notEqual, Assembler::pt, noException);

Expand Down
1 change: 0 additions & 1 deletion src/cpu/sparc/vm/templateInterpreter_sparc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,6 @@ address InterpreterGenerator::generate_Reference_get_entry(void) {
return generate_accessor_entry();
}


//
// Interpreter stub for calling a native method. (asm interpreter)
// This sets up a somewhat different looking stack for calling the native method
Expand Down
6 changes: 3 additions & 3 deletions src/share/tools/ProjectCreator/BuildConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ String expandFormat(String format) {
case 'f':
sb.append(flavour());
break;
case 'o':
sb.append(outputDir());
break;
case 'o':
sb.append(outputDir());
break;
default:
sb.append(ch);
sb.append(ch1);
Expand Down
28 changes: 16 additions & 12 deletions src/share/vm/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ nmethod* nmethod::new_nmethod(methodHandle method,
+ round_to(handler_table->size_in_bytes(), oopSize)
+ round_to(nul_chk_table->size_in_bytes(), oopSize)
+ round_to(debug_info->data_size() , oopSize);

nm = new (nmethod_size)
nmethod(method(), nmethod_size, compile_id, entry_bci, offsets,
orig_pc_offset, debug_info, dependencies, code_buffer, frame_size,
Expand Down Expand Up @@ -934,7 +935,7 @@ nmethod::nmethod(
#ifdef GRAAL
_graal_installed_code = installed_code();
_speculation_log = (instanceOop)speculation_log();
#endif

if (compiler->is_graal()) {
// Graal might not produce any stub sections
if (offsets->value(CodeOffsets::Exceptions) != -1) {
Expand All @@ -953,17 +954,20 @@ nmethod::nmethod(
_deoptimize_mh_offset = -1;
}
} else {
// Exception handler and deopt handler are in the stub section
assert(offsets->value(CodeOffsets::Exceptions) != -1, "must be set");
assert(offsets->value(CodeOffsets::Deopt ) != -1, "must be set");

_exception_offset = _stub_offset + offsets->value(CodeOffsets::Exceptions);
_deoptimize_offset = _stub_offset + offsets->value(CodeOffsets::Deopt);
if (offsets->value(CodeOffsets::DeoptMH) != -1) {
_deoptimize_mh_offset = _stub_offset + offsets->value(CodeOffsets::DeoptMH);
} else {
_deoptimize_mh_offset = -1;
}
#endif
// Exception handler and deopt handler are in the stub section
assert(offsets->value(CodeOffsets::Exceptions) != -1, "must be set");
assert(offsets->value(CodeOffsets::Deopt ) != -1, "must be set");

_exception_offset = _stub_offset + offsets->value(CodeOffsets::Exceptions);
_deoptimize_offset = _stub_offset + offsets->value(CodeOffsets::Deopt);
if (offsets->value(CodeOffsets::DeoptMH) != -1) {
_deoptimize_mh_offset = _stub_offset + offsets->value(CodeOffsets::DeoptMH);
} else {
_deoptimize_mh_offset = -1;
#ifdef GRAAL
}
#endif
}
if (offsets->value(CodeOffsets::UnwindHandler) != -1) {
_unwind_handler_offset = code_offset() + offsets->value(CodeOffsets::UnwindHandler);
Expand Down
1 change: 1 addition & 0 deletions src/share/vm/code/oopRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ template <class T> int ValueRecorder<T>::_hit_indexes = 0;
template <class T> int ValueRecorder<T>::_missed_indexes = 0;
#endif //ASSERT


template <class T> ValueRecorder<T>::ValueRecorder(Arena* arena) {
_handles = NULL;
_indexes = NULL;
Expand Down
1 change: 1 addition & 0 deletions src/share/vm/compiler/compileBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ void CompileBroker::compilation_init() {
_compilers[1] = new C2Compiler();
}
#endif // COMPILER2

#else // SHARK
int c1_count = 0;
int c2_count = 1;
Expand Down
1 change: 1 addition & 0 deletions src/share/vm/interpreter/interpreterRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ IRT_ENTRY(void, InterpreterRuntime::throw_IncompatibleClassChangeError(JavaThrea
THROW(vmSymbols::java_lang_IncompatibleClassChangeError());
IRT_END


//------------------------------------------------------------------------------------------------------------------------
// Fields
//
Expand Down
49 changes: 25 additions & 24 deletions src/share/vm/opto/superword.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,30 +201,6 @@ class SWNodeInfo VALUE_OBJ_CLASS_SPEC {
static const SWNodeInfo initial;
};

//------------------------------OrderedPair---------------------------
// Ordered pair of Node*.
class OrderedPair VALUE_OBJ_CLASS_SPEC {
protected:
Node* _p1;
Node* _p2;
public:
OrderedPair() : _p1(NULL), _p2(NULL) {}
OrderedPair(Node* p1, Node* p2) {
if (p1->_idx < p2->_idx) {
_p1 = p1; _p2 = p2;
} else {
_p1 = p2; _p2 = p1;
}
}

bool operator==(const OrderedPair &rhs) {
return _p1 == rhs._p1 && _p2 == rhs._p2;
}
void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); }

static const OrderedPair initial;
};

// -----------------------------SuperWord---------------------------------
// Transforms scalar operations into packed (superword) operations.
class SuperWord : public ResourceObj {
Expand Down Expand Up @@ -528,4 +504,29 @@ class SWPointer VALUE_OBJ_CLASS_SPEC {
void print();
};


//------------------------------OrderedPair---------------------------
// Ordered pair of Node*.
class OrderedPair VALUE_OBJ_CLASS_SPEC {
protected:
Node* _p1;
Node* _p2;
public:
OrderedPair() : _p1(NULL), _p2(NULL) {}
OrderedPair(Node* p1, Node* p2) {
if (p1->_idx < p2->_idx) {
_p1 = p1; _p2 = p2;
} else {
_p1 = p2; _p2 = p1;
}
}

bool operator==(const OrderedPair &rhs) {
return _p1 == rhs._p1 && _p2 == rhs._p2;
}
void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); }

static const OrderedPair initial;
};

#endif // SHARE_VM_OPTO_SUPERWORD_HPP
1 change: 1 addition & 0 deletions src/share/vm/prims/jvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ JVM_ENTRY(jobject, JVM_GetProtectionDomain(JNIEnv *env, jclass cls))
return (jobject) JNIHandles::make_local(env, pd);
JVM_END


static bool is_authorized(Handle context, instanceKlassHandle klass, TRAPS) {
// If there is a security manager and protection domain, check the access
// in the protection domain, otherwise it is authorized.
Expand Down
1 change: 0 additions & 1 deletion src/share/vm/runtime/compilationPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ bool CompilationPolicy::must_be_compiled(methodHandle m, int comp_level) {
if (ReplayCompiles) return false;

if (m->has_compiled_code()) return false; // already compiled

if (!can_be_compiled(m, comp_level)) return false;

return !UseInterpreter || // must compile all methods
Expand Down
1 change: 0 additions & 1 deletion src/share/vm/runtime/deoptimization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ Deoptimization::UnrollBlock* Deoptimization::fetch_unroll_info_helper(JavaThread
// Create a growable array of VFrames where each VFrame represents an inlined
// Java frame. This storage is allocated with the usual system arena.
assert(deoptee.is_compiled_frame(), "Wrong frame type");

GrowableArray<compiledVFrame*>* chunk = new GrowableArray<compiledVFrame*>(10);
vframe* vf = vframe::new_vframe(&deoptee, &map, thread);
while (!vf->is_top()) {
Expand Down
1 change: 1 addition & 0 deletions src/share/vm/runtime/mutexLocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ void mutex_init() {
def(JfrStream_lock , Mutex, nonleaf+2, true);
def(JfrStacktrace_lock , Mutex, special, true );
#endif

}

GCMutexLocker::GCMutexLocker(Monitor * mutex) {
Expand Down
4 changes: 2 additions & 2 deletions src/share/vm/runtime/vmStructs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@
#ifdef TARGET_OS_ARCH_bsd_zero
# include "vmStructs_bsd_zero.hpp"
#endif

#if INCLUDE_ALL_GCS
#include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp"
#include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp"
Expand Down Expand Up @@ -404,8 +403,8 @@ typedef BinaryTreeDictionary<Metablock, FreeList<Metablock> > MetablockTreeDicti
nonstatic_field(ObjArrayKlass, _element_klass, Klass*) \
nonstatic_field(ObjArrayKlass, _bottom_klass, Klass*) \
volatile_nonstatic_field(Symbol, _refcount, short) \
nonstatic_field(Symbol, _length, unsigned short) \
nonstatic_field(Symbol, _identity_hash, int) \
nonstatic_field(Symbol, _length, unsigned short) \
unchecked_nonstatic_field(Symbol, _body, sizeof(jbyte)) /* NOTE: no type */ \
nonstatic_field(Symbol, _body[0], jbyte) \
nonstatic_field(TypeArrayKlass, _max_length, int) \
Expand Down Expand Up @@ -1346,6 +1345,7 @@ typedef BinaryTreeDictionary<Metablock, FreeList<Metablock> > MetablockTreeDicti
nonstatic_field(FreeList<Metablock>, _count, ssize_t) \
nonstatic_field(MetablockTreeDictionary, _total_size, size_t)


//--------------------------------------------------------------------------------
// VM_TYPES
//
Expand Down

0 comments on commit e39c287

Please sign in to comment.