Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/aarch64/vm/aarch64Test.cpp
32285 views
/*1* Copyright (c) 2014, 2020, Red Hat Inc.2* All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19*/2021#include <stdlib.h>2223#include "precompiled.hpp"24#include "code/codeBlob.hpp"25#include "asm/macroAssembler.hpp"2627// hook routine called during JVM bootstrap to test AArch64 assembler2829extern "C" void entry(CodeBuffer*);3031#ifdef ASSERT32void aarch64TestHook()33{34BufferBlob* b = BufferBlob::create("aarch64Test", 500000);35CodeBuffer code(b);36entry(&code);37BufferBlob::free(b);38}39#endif404142