8225048: Shenandoah x86_32 support

Reviewed-by: erikj, rkennke
This commit is contained in:
Aleksey Shipilev 2019-06-02 10:08:39 +02:00
parent d4dca25c8f
commit 769993939e
6 changed files with 190 additions and 64 deletions

View File

@ -341,7 +341,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
# Only enable Shenandoah on supported arches # Only enable Shenandoah on supported arches
AC_MSG_CHECKING([if shenandoah can be built]) AC_MSG_CHECKING([if shenandoah can be built])
if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc" DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"

View File

@ -31,7 +31,8 @@
#define __ masm->masm()-> #define __ masm->masm()->
void LIR_OpShenandoahCompareAndSwap::emit_code(LIR_Assembler* masm) { void LIR_OpShenandoahCompareAndSwap::emit_code(LIR_Assembler* masm) {
Register addr = _addr->as_register_lo(); NOT_LP64(assert(_addr->is_single_cpu(), "must be single");)
Register addr = _addr->is_single_cpu() ? _addr->as_register() : _addr->as_register_lo();
Register newval = _new_value->as_register(); Register newval = _new_value->as_register();
Register cmpval = _cmp_value->as_register(); Register cmpval = _cmp_value->as_register();
Register tmp1 = _tmp1->as_register(); Register tmp1 = _tmp1->as_register();

View File

@ -71,6 +71,7 @@ void ShenandoahBarrierSetAssembler::arraycopy_prologue(MacroAssembler* masm, Dec
if (ShenandoahSATBBarrier && !dest_uninitialized && !ShenandoahHeap::heap()->heuristics()->can_do_traversal_gc()) { if (ShenandoahSATBBarrier && !dest_uninitialized && !ShenandoahHeap::heap()->heuristics()->can_do_traversal_gc()) {
Register thread = NOT_LP64(rax) LP64_ONLY(r15_thread); Register thread = NOT_LP64(rax) LP64_ONLY(r15_thread);
assert_different_registers(dst, count, thread); // we don't care about src here?
#ifndef _LP64 #ifndef _LP64
__ push(thread); __ push(thread);
__ get_thread(thread); __ get_thread(thread);
@ -144,6 +145,8 @@ void ShenandoahBarrierSetAssembler::arraycopy_epilogue(MacroAssembler* masm, Dec
#endif #endif
Register thread = NOT_LP64(rax) LP64_ONLY(r15_thread); Register thread = NOT_LP64(rax) LP64_ONLY(r15_thread);
assert_different_registers(dst, thread); // do we care about src at all here?
#ifndef _LP64 #ifndef _LP64
__ push(thread); __ push(thread);
__ get_thread(thread); __ get_thread(thread);
@ -340,7 +343,7 @@ void ShenandoahBarrierSetAssembler::resolve_forward_pointer_not_null(MacroAssemb
bool borrow_reg = (tmp == noreg); bool borrow_reg = (tmp == noreg);
if (borrow_reg) { if (borrow_reg) {
// No free registers available. Make one useful. // No free registers available. Make one useful.
tmp = rscratch1; tmp = LP64_ONLY(rscratch1) NOT_LP64(rdx);
__ push(tmp); __ push(tmp);
} }
@ -362,10 +365,22 @@ void ShenandoahBarrierSetAssembler::resolve_forward_pointer_not_null(MacroAssemb
void ShenandoahBarrierSetAssembler::load_reference_barrier_not_null(MacroAssembler* masm, Register dst) { void ShenandoahBarrierSetAssembler::load_reference_barrier_not_null(MacroAssembler* masm, Register dst) {
assert(ShenandoahLoadRefBarrier, "Should be enabled"); assert(ShenandoahLoadRefBarrier, "Should be enabled");
#ifdef _LP64
Label done; Label done;
Address gc_state(r15_thread, in_bytes(ShenandoahThreadLocalData::gc_state_offset())); #ifdef _LP64
Register thread = r15_thread;
#else
Register thread = rcx;
if (thread == dst) {
thread = rbx;
}
__ push(thread);
__ get_thread(thread);
#endif
assert_different_registers(dst, thread);
Address gc_state(thread, in_bytes(ShenandoahThreadLocalData::gc_state_offset()));
__ testb(gc_state, ShenandoahHeap::HAS_FORWARDED); __ testb(gc_state, ShenandoahHeap::HAS_FORWARDED);
__ jccb(Assembler::zero, done); __ jccb(Assembler::zero, done);
@ -380,8 +395,9 @@ void ShenandoahBarrierSetAssembler::load_reference_barrier_not_null(MacroAssembl
} }
__ bind(done); __ bind(done);
#else
Unimplemented(); #ifndef _LP64
__ pop(thread);
#endif #endif
} }
@ -396,7 +412,6 @@ void ShenandoahBarrierSetAssembler::storeval_barrier_impl(MacroAssembler* masm,
if (dst == noreg) return; if (dst == noreg) return;
#ifdef _LP64
if (ShenandoahStoreValEnqueueBarrier) { if (ShenandoahStoreValEnqueueBarrier) {
// The set of registers to be saved+restored is the same as in the write-barrier above. // The set of registers to be saved+restored is the same as in the write-barrier above.
// Those are the commonly used registers in the interpreter. // Those are the commonly used registers in the interpreter.
@ -405,15 +420,26 @@ void ShenandoahBarrierSetAssembler::storeval_barrier_impl(MacroAssembler* masm,
__ subptr(rsp, 2 * Interpreter::stackElementSize); __ subptr(rsp, 2 * Interpreter::stackElementSize);
__ movdbl(Address(rsp, 0), xmm0); __ movdbl(Address(rsp, 0), xmm0);
satb_write_barrier_pre(masm, noreg, dst, r15_thread, tmp, true, false); #ifdef _LP64
Register thread = r15_thread;
#else
Register thread = rcx;
if (thread == dst || thread == tmp) {
thread = rdi;
}
if (thread == dst || thread == tmp) {
thread = rbx;
}
__ get_thread(thread);
#endif
assert_different_registers(dst, tmp, thread);
satb_write_barrier_pre(masm, noreg, dst, thread, tmp, true, false);
__ movdbl(xmm0, Address(rsp, 0)); __ movdbl(xmm0, Address(rsp, 0));
__ addptr(rsp, 2 * Interpreter::stackElementSize); __ addptr(rsp, 2 * Interpreter::stackElementSize);
//__ pop_callee_saved_registers(); //__ pop_callee_saved_registers();
__ popa(); __ popa();
} }
#else
Unimplemented();
#endif
} }
void ShenandoahBarrierSetAssembler::load_reference_barrier(MacroAssembler* masm, Register dst) { void ShenandoahBarrierSetAssembler::load_reference_barrier(MacroAssembler* masm, Register dst) {
@ -438,6 +464,7 @@ void ShenandoahBarrierSetAssembler::load_at(MacroAssembler* masm, DecoratorSet d
if (ShenandoahKeepAliveBarrier && on_reference) { if (ShenandoahKeepAliveBarrier && on_reference) {
const Register thread = NOT_LP64(tmp_thread) LP64_ONLY(r15_thread); const Register thread = NOT_LP64(tmp_thread) LP64_ONLY(r15_thread);
assert_different_registers(dst, tmp1, tmp_thread);
NOT_LP64(__ get_thread(thread)); NOT_LP64(__ get_thread(thread));
// Generate the SATB pre-barrier code to log the value of // Generate the SATB pre-barrier code to log the value of
// the referent field in an SATB buffer. // the referent field in an SATB buffer.
@ -473,12 +500,13 @@ void ShenandoahBarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet
__ lea(tmp1, dst); __ lea(tmp1, dst);
} }
#ifndef _LP64 assert_different_registers(val, tmp1, tmp2, tmp3, rthread);
InterpreterMacroAssembler *imasm = static_cast<InterpreterMacroAssembler*>(masm);
#endif
NOT_LP64(__ get_thread(rcx)); #ifndef _LP64
NOT_LP64(imasm->save_bcp()); __ get_thread(rthread);
InterpreterMacroAssembler *imasm = static_cast<InterpreterMacroAssembler*>(masm);
imasm->save_bcp();
#endif
if (needs_pre_barrier) { if (needs_pre_barrier) {
shenandoah_write_barrier_pre(masm /*masm*/, shenandoah_write_barrier_pre(masm /*masm*/,
@ -503,14 +531,6 @@ void ShenandoahBarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet
// Special Shenandoah CAS implementation that handles false negatives // Special Shenandoah CAS implementation that handles false negatives
// due to concurrent evacuation. // due to concurrent evacuation.
#ifndef _LP64
void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
Register res, Address addr, Register oldval, Register newval,
bool exchange, Register tmp1, Register tmp2) {
// Shenandoah has no 32-bit version for this.
Unimplemented();
}
#else
void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm, void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
Register res, Address addr, Register oldval, Register newval, Register res, Address addr, Register oldval, Register newval,
bool exchange, Register tmp1, Register tmp2) { bool exchange, Register tmp1, Register tmp2) {
@ -520,18 +540,24 @@ void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
Label retry, done; Label retry, done;
// Remember oldval for retry logic below // Remember oldval for retry logic below
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ movl(tmp1, oldval); __ movl(tmp1, oldval);
} else { } else
#endif
{
__ movptr(tmp1, oldval); __ movptr(tmp1, oldval);
} }
// Step 1. Try to CAS with given arguments. If successful, then we are done, // Step 1. Try to CAS with given arguments. If successful, then we are done,
// and can safely return. // and can safely return.
if (os::is_MP()) __ lock(); if (os::is_MP()) __ lock();
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ cmpxchgl(newval, addr); __ cmpxchgl(newval, addr);
} else { } else
#endif
{
__ cmpxchgptr(newval, addr); __ cmpxchgptr(newval, addr);
} }
__ jcc(Assembler::equal, done, true); __ jcc(Assembler::equal, done, true);
@ -543,15 +569,20 @@ void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
// oldval and the value from memory -- this will give both to-space pointers. // oldval and the value from memory -- this will give both to-space pointers.
// If they mismatch, then it was a legitimate failure. // If they mismatch, then it was a legitimate failure.
// //
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ decode_heap_oop(tmp1); __ decode_heap_oop(tmp1);
} }
#endif
resolve_forward_pointer(masm, tmp1); resolve_forward_pointer(masm, tmp1);
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ movl(tmp2, oldval); __ movl(tmp2, oldval);
__ decode_heap_oop(tmp2); __ decode_heap_oop(tmp2);
} else { } else
#endif
{
__ movptr(tmp2, oldval); __ movptr(tmp2, oldval);
} }
resolve_forward_pointer(masm, tmp2); resolve_forward_pointer(masm, tmp2);
@ -567,17 +598,23 @@ void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
// witness. // witness.
__ bind(retry); __ bind(retry);
if (os::is_MP()) __ lock(); if (os::is_MP()) __ lock();
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ cmpxchgl(newval, addr); __ cmpxchgl(newval, addr);
} else { } else
#endif
{
__ cmpxchgptr(newval, addr); __ cmpxchgptr(newval, addr);
} }
__ jcc(Assembler::equal, done, true); __ jcc(Assembler::equal, done, true);
#ifdef _LP64
if (UseCompressedOops) { if (UseCompressedOops) {
__ movl(tmp2, oldval); __ movl(tmp2, oldval);
__ decode_heap_oop(tmp2); __ decode_heap_oop(tmp2);
} else { } else
#endif
{
__ movptr(tmp2, oldval); __ movptr(tmp2, oldval);
} }
resolve_forward_pointer(masm, tmp2); resolve_forward_pointer(masm, tmp2);
@ -591,11 +628,21 @@ void ShenandoahBarrierSetAssembler::cmpxchg_oop(MacroAssembler* masm,
__ bind(done); __ bind(done);
if (!exchange) { if (!exchange) {
assert(res != NULL, "need result register"); assert(res != NULL, "need result register");
#ifdef _LP64
__ setb(Assembler::equal, res); __ setb(Assembler::equal, res);
__ movzbl(res, res); __ movzbl(res, res);
#else
// Need something else to clean the result, because some registers
// do not have byte encoding that movzbl wants. Cannot do the xor first,
// because it modifies the flags.
Label res_non_zero;
__ movptr(res, 1);
__ jcc(Assembler::equal, res_non_zero, true);
__ xorptr(res, res);
__ bind(res_non_zero);
#endif
} }
} }
#endif // LP64
void ShenandoahBarrierSetAssembler::save_vector_registers(MacroAssembler* masm) { void ShenandoahBarrierSetAssembler::save_vector_registers(MacroAssembler* masm) {
int num_xmm_regs = LP64_ONLY(16) NOT_LP64(8); int num_xmm_regs = LP64_ONLY(16) NOT_LP64(8);
@ -828,51 +875,53 @@ address ShenandoahBarrierSetAssembler::generate_shenandoah_lrb(StubCodeGenerator
StubCodeMark mark(cgen, "StubRoutines", "shenandoah_lrb"); StubCodeMark mark(cgen, "StubRoutines", "shenandoah_lrb");
address start = __ pc(); address start = __ pc();
#ifdef _LP64
Label resolve_oop, slow_path; Label resolve_oop, slow_path;
// We use RDI, which also serves as argument register for slow call. // We use RDI, which also serves as argument register for slow call.
// RAX always holds the src object ptr, except after the slow call and // RAX always holds the src object ptr, except after the slow call and
// the cmpxchg, then it holds the result. // the cmpxchg, then it holds the result. R8/RBX is used as temporary register.
// R8 and RCX are used as temporary registers.
__ push(rdi);
__ push(r8);
// Check for object beeing in the collection set. Register tmp1 = rdi;
Register tmp2 = LP64_ONLY(r8) NOT_LP64(rbx);
__ push(tmp1);
__ push(tmp2);
// Check for object being in the collection set.
// TODO: Can we use only 1 register here? // TODO: Can we use only 1 register here?
// The source object arrives here in rax. // The source object arrives here in rax.
// live: rax // live: rax
// live: rdi // live: tmp1
__ mov(rdi, rax); __ mov(tmp1, rax);
__ shrptr(rdi, ShenandoahHeapRegion::region_size_bytes_shift_jint()); __ shrptr(tmp1, ShenandoahHeapRegion::region_size_bytes_shift_jint());
// live: r8 // live: tmp2
__ movptr(r8, (intptr_t) ShenandoahHeap::in_cset_fast_test_addr()); __ movptr(tmp2, (intptr_t) ShenandoahHeap::in_cset_fast_test_addr());
__ movbool(r8, Address(r8, rdi, Address::times_1)); __ movbool(tmp2, Address(tmp2, tmp1, Address::times_1));
// unlive: rdi // unlive: tmp1
__ testbool(r8); __ testbool(tmp2);
// unlive: r8 // unlive: tmp2
__ jccb(Assembler::notZero, resolve_oop); __ jccb(Assembler::notZero, resolve_oop);
__ pop(r8); __ pop(tmp2);
__ pop(rdi); __ pop(tmp1);
__ ret(0); __ ret(0);
__ bind(resolve_oop); __ bind(resolve_oop);
__ movptr(r8, Address(rax, oopDesc::mark_offset_in_bytes())); __ movptr(tmp2, Address(rax, oopDesc::mark_offset_in_bytes()));
// Test if both lowest bits are set. We trick it by negating the bits // Test if both lowest bits are set. We trick it by negating the bits
// then test for both bits clear. // then test for both bits clear.
__ notptr(r8); __ notptr(tmp2);
__ testb(r8, markOopDesc::marked_value); __ testb(tmp2, markOopDesc::marked_value);
__ jccb(Assembler::notZero, slow_path); __ jccb(Assembler::notZero, slow_path);
// Clear both lower bits. It's still inverted, so set them, and then invert back. // Clear both lower bits. It's still inverted, so set them, and then invert back.
__ orptr(r8, markOopDesc::marked_value); __ orptr(tmp2, markOopDesc::marked_value);
__ notptr(r8); __ notptr(tmp2);
// At this point, r8 contains the decoded forwarding pointer. // At this point, tmp2 contains the decoded forwarding pointer.
__ mov(rax, r8); __ mov(rax, tmp2);
__ pop(r8); __ pop(tmp2);
__ pop(rdi); __ pop(tmp1);
__ ret(0); __ ret(0);
__ bind(slow_path); __ bind(slow_path);
@ -881,6 +930,7 @@ address ShenandoahBarrierSetAssembler::generate_shenandoah_lrb(StubCodeGenerator
__ push(rdx); __ push(rdx);
__ push(rdi); __ push(rdi);
__ push(rsi); __ push(rsi);
#ifdef _LP64
__ push(r8); __ push(r8);
__ push(r9); __ push(r9);
__ push(r10); __ push(r10);
@ -889,10 +939,14 @@ address ShenandoahBarrierSetAssembler::generate_shenandoah_lrb(StubCodeGenerator
__ push(r13); __ push(r13);
__ push(r14); __ push(r14);
__ push(r15); __ push(r15);
#endif
save_vector_registers(cgen->assembler()); save_vector_registers(cgen->assembler());
__ movptr(rdi, rax); __ movptr(rdi, rax);
__ call_VM_leaf(CAST_FROM_FN_PTR(address, ShenandoahRuntime::load_reference_barrier_JRT), rdi); __ call_VM_leaf(CAST_FROM_FN_PTR(address, ShenandoahRuntime::load_reference_barrier_JRT), rdi);
restore_vector_registers(cgen->assembler()); restore_vector_registers(cgen->assembler());
#ifdef _LP64
__ pop(r15); __ pop(r15);
__ pop(r14); __ pop(r14);
__ pop(r13); __ pop(r13);
@ -901,17 +955,16 @@ address ShenandoahBarrierSetAssembler::generate_shenandoah_lrb(StubCodeGenerator
__ pop(r10); __ pop(r10);
__ pop(r9); __ pop(r9);
__ pop(r8); __ pop(r8);
#endif
__ pop(rsi); __ pop(rsi);
__ pop(rdi); __ pop(rdi);
__ pop(rdx); __ pop(rdx);
__ pop(rcx); __ pop(rcx);
__ pop(r8); __ pop(tmp2);
__ pop(rdi); __ pop(tmp1);
__ ret(0); __ ret(0);
#else
ShouldNotReachHere();
#endif
return start; return start;
} }

View File

@ -0,0 +1,70 @@
//
// Copyright (c) 2018, Red Hat, Inc. All rights reserved.
//
// 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.
//
//
source_hpp %{
#include "gc/shenandoah/shenandoahBarrierSetAssembler.hpp"
#include "gc/shenandoah/c2/shenandoahSupport.hpp"
%}
instruct compareAndSwapP_shenandoah(rRegI res,
memory mem_ptr,
eRegP tmp1, eRegP tmp2,
eAXRegP oldval, eRegP newval,
eFlagsReg cr)
%{
match(Set res (ShenandoahCompareAndSwapP mem_ptr (Binary oldval newval)));
match(Set res (ShenandoahWeakCompareAndSwapP mem_ptr (Binary oldval newval)));
effect(TEMP tmp1, TEMP tmp2, KILL cr, KILL oldval);
format %{ "shenandoah_cas_oop $mem_ptr,$newval" %}
ins_encode %{
ShenandoahBarrierSet::assembler()->cmpxchg_oop(&_masm,
$res$$Register, $mem_ptr$$Address, $oldval$$Register, $newval$$Register,
false, // swap
$tmp1$$Register, $tmp2$$Register
);
%}
ins_pipe( pipe_cmpxchg );
%}
instruct compareAndExchangeP_shenandoah(memory mem_ptr,
eAXRegP oldval, eRegP newval,
eRegP tmp1, eRegP tmp2,
eFlagsReg cr)
%{
match(Set oldval (ShenandoahCompareAndExchangeP mem_ptr (Binary oldval newval)));
effect(KILL cr, TEMP tmp1, TEMP tmp2);
ins_cost(1000);
format %{ "shenandoah_cas_oop $mem_ptr,$newval" %}
ins_encode %{
ShenandoahBarrierSet::assembler()->cmpxchg_oop(&_masm,
NULL, $mem_ptr$$Address, $oldval$$Register, $newval$$Register,
true, // exchange
$tmp1$$Register, $tmp2$$Register
);
%}
ins_pipe( pipe_cmpxchg );
%}

View File

@ -2977,10 +2977,11 @@ void MemoryGraphFixer::fix_memory_uses(Node* mem, Node* replacement, Node* rep_p
u->Opcode() == Op_Rethrow || u->Opcode() == Op_Rethrow ||
u->Opcode() == Op_Return || u->Opcode() == Op_Return ||
u->Opcode() == Op_SafePoint || u->Opcode() == Op_SafePoint ||
u->Opcode() == Op_StoreIConditional ||
u->Opcode() == Op_StoreLConditional || u->Opcode() == Op_StoreLConditional ||
(u->is_CallStaticJava() && u->as_CallStaticJava()->uncommon_trap_request() != 0) || (u->is_CallStaticJava() && u->as_CallStaticJava()->uncommon_trap_request() != 0) ||
(u->is_CallStaticJava() && u->as_CallStaticJava()->_entry_point == OptoRuntime::rethrow_stub()) || (u->is_CallStaticJava() && u->as_CallStaticJava()->_entry_point == OptoRuntime::rethrow_stub()) ||
u->Opcode() == Op_CallLeaf, ""); u->Opcode() == Op_CallLeaf, "%s", u->Name());
if (ShenandoahBarrierC2Support::is_dominator(rep_ctrl, _phase->ctrl_or_self(u), replacement, u, _phase)) { if (ShenandoahBarrierC2Support::is_dominator(rep_ctrl, _phase->ctrl_or_self(u), replacement, u, _phase)) {
if (mm == NULL) { if (mm == NULL) {
mm = allocate_merge_mem(mem, rep_proj, rep_ctrl); mm = allocate_merge_mem(mem, rep_proj, rep_ctrl);
@ -3200,6 +3201,7 @@ ShenandoahLoadReferenceBarrierNode::Strength ShenandoahLoadReferenceBarrierNode:
case Op_StoreL: case Op_StoreL:
case Op_StoreLConditional: case Op_StoreLConditional:
case Op_StoreI: case Op_StoreI:
case Op_StoreIConditional:
case Op_StoreVector: case Op_StoreVector:
case Op_StrInflatedCopy: case Op_StrInflatedCopy:
case Op_StrCompressedCopy: case Op_StrCompressedCopy:

View File

@ -36,7 +36,7 @@ void ShenandoahArguments::initialize() {
vm_exit_during_initialization("Shenandoah GC is not supported on this platform."); vm_exit_during_initialization("Shenandoah GC is not supported on this platform.");
#endif #endif
#ifdef IA32 #if 0 // leave this block as stepping stone for future platforms
log_warning(gc)("Shenandoah GC is not fully supported on this platform:"); log_warning(gc)("Shenandoah GC is not fully supported on this platform:");
log_warning(gc)(" concurrent modes are not supported, only STW cycles are enabled;"); log_warning(gc)(" concurrent modes are not supported, only STW cycles are enabled;");
log_warning(gc)(" arch-specific barrier code is not implemented, disabling barriers;"); log_warning(gc)(" arch-specific barrier code is not implemented, disabling barriers;");